The NET-SNMP snmpwalk and snmpget commands are a really good tool, but it has a really big help output, to simplify things just use one of the below examples. I always forget the syntax for snmpwalk/snmpget v3; so I write this document to remember.
SNMP v1:
snmpwalk -v1 -c <CommunityName> <ipaddress>[:<dest_port>] <oid>
Example:
snmpwalk -v1 -cpublic 192.168.123.88:161 system
SNMP v2:
snmpwalk -v2c -c < CommunityName> <ipaddress>[:<dest_port>] [oid]
Example:
snmpwalk -v2c -c aurlenmonitor 192.168.123.88:161 system
SNMP v3:
snmpwalk -v3 -l <noAuthNoPriv|authNoPriv|authPriv> -u <username> [-a <MD5|SHA>] [-A <authphrase>] [-x DES] [-X <privaphrase>] <ipaddress>[:<dest_port>] [oid]
Example:
The SNMP parameters configured in the device are:
Authentication Algorithm: HMAC_SHA
Encryption Algorithm: AES_128
User: snmpuarlen
Authentication password: B4!l2+autPw
Encryption password: En8315!3s6
snmpwalk -v3 -l authPriv -u snmpuarlen -a SHA -A 'B4!l2+autPw' -x AES -X' B4!l2+autPw' 192.168.123.88 system snmpget -v3 -l authPriv -u snmpuarlen -a SHA -A 'B4!l2+autPw' -x AES -X' B4!l2+autPw' 192.168.123.88 system.sysUpTime.0
Note: if the password uses special character you must use single quotes to escape it. As the example above.