Query:
Set-SwisObject $swis -Uri 'swis://hostname/Orion/Orion.Nodes/NodeID=2' -Properties @{ ObjectSubType='SNMP';SNMPVersion='2';AgentPort='162';Allow64BitCounters='True';Community='public';RWCommunity='public' }
Error:
Set-SwisObject : Invalid column name 'SNMPV3Username'.
Invalid column name 'SNMPV3PrivMethod'.
Invalid column name 'SNMPV3PrivKey'.
Invalid column name 'SNMPV3AuthMethod'.
Invalid column name 'SNMPV3AuthKey'.
At E:\Pulkit\EditSNMP.ps1:8 char:1
+ Set-SwisObject $swis -Uri 'swis://hostname/Orion/Orion.Nodes/No ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Set-SwisObject], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject
Note:- For other properties this query is working fine, even if a set "AgentPort" alone it works fine but when i set the property "ObjectSubType" or "Community" this error occurs.
Please help!