NET-SNMP snmpwalk simple example

NET-SNMP snmpwalk simple example

The NET-SNMP snmpwalk command is a really good tool , but it has a really big help output, to simplify things just use one of the below examples and, if needed add the adequate parameters:

SNMP v1:

snmpwalk -v1 -c <community> <ipaddress>[:<dest_port>] <oid>

example:
snmpwalk -v1 -cpublic 127.0.0.1:161 system

SNMP v2:

snmpwalk -v2c -c <community> <ipaddress>[:<dest_port>] [oid]

example:
snmpwalk -v2c -c public 127.0.0.1:161 system

SNMP v3:

snmpwalk -v3  -l <noAuthNoPriv|authNoPriv|authPriv> -u <username> [-a ] [-A <authphrase>]  [-x DES] [-X <privaphrase>] <ipaddress>[:<dest_port>] [oid]

example:
snmpwalk -v3  -l authPriv -u snmpadmin -a MD5 -A PaSSword  -x DES -X PRIvPassWord 127.0.0.1:161 system