-
Notifications
You must be signed in to change notification settings - Fork 0
Invoke SnmpGet
Marco van Gaal edited this page Aug 5, 2015
·
11 revisions
Invoke-SnmpGet
Invoke SnmpGet returnes a object with the results from snmp.
-Community <String>
Required? false
Position? named
Default value public
Accept pipeline input? false
Accept wildcard characters? false
-IpAddress <String[]>
This parameter contains the node adress of the agent.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-OID <String[]>
this variable contains the OID (Object IDentifier)
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Port <Int32>
Required? false
Position? named
Default value 161
Accept pipeline input? false
Accept wildcard characters? false
-Retry <Int32>
Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-TimeOut <Int32>
Required? false
Position? named
Default value 2000
Accept pipeline input? false
Accept wildcard characters? false
-Version <String>
Required? false
Position? named
Default value 2
Accept pipeline input? false
Accept wildcard characters? false
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\>Invoke-SnmpGet -IpAddress 192.168.1.100 -OID 1.3.6.1.2.1.1.1.0 | ft -AutoSize
OID Type Value
--- ---- -----
1.3.6.1.2.1.1.1.0 OctetString HP ETHERNET
-------------------------- EXAMPLE 2 --------------------------
PS C:\>"192.168.1.100", "192.168.1.104", "192.168.1.94"| Invoke-SnmpGet -OID 1.3.6.1.2.1.1.1.0 | ft -AutoSize
Node OID Type Value
---- --- ---- -----
192.168.1.100 1.3.6.1.2.1.1.1.0 OctetString HP ETHERNET
192.168.1.104 1.3.6.1.2.1.1.1.0 OctetString SonicWALL NSA
192.168.1.94 1.3.6.1.2.1.1.1.0 OctetString Digi Connect