Skip to content
Marco van Gaal edited this page Aug 5, 2015 · 10 revisions

.NAME

Invoke-SnmpWalk

.SYNOPSIS

Invoke-SnmpWalk returnes all object within the subtree from snmp

.PARAMETERS

 -Community <String>
     
     Required?                    false
     Position?                    named
     Default value                public
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Force [<SwitchParameter>]
     This lets the Walk operation break out of the subtree and returns all OID's until node returns NULL
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -IpAddress <String[]>
     This parameter contains the node address 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?                    false
     Position?                    2
     Default value                1.3.6.1
     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

.INPUTS

System.String

.OUTPUTS

.EXAMPLES

 -------------------------- EXAMPLE 1 --------------------------
 
 PS C:\>| Invoke-SnmpWalk -IpAddress 192.168.1.100 -OID 1.3.6.1.2.1.1 | 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.100 1.3.6.1.2.1.1.2.0 ObjectId    1.3.6.1.4.1.11.2.3.9.1                                                     
             
 192.168.1.100 1.3.6.1.2.1.1.3.0 TimeTicks   9d 0h 11m 24s 730ms
 
 
 
 
 
 -------------------------- EXAMPLE 2 --------------------------
 
 PS C:\>"192.168.1.100", "192.168.1.104", "192.168.1.94" | Invoke-SnmpWalk -OID 1.3.6.1.2.1.1.1 | 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

.RELATED LINKS

http://www.proxx.nl

Clone this wiki locally