First page Back Continue Last page Overview Graphics

Demo Of Net-SNMP Commands


Notes:

I. snmpwalk
i. Another valueable command that `walks` the OID tree to the end of its branches.
ii. snmpwalk -v2c -c public localhost .iso.org.dod.internet.mgmt
iii. When using snmpwalk, I often had to use snmptranslate to convert the OID outputs from numeric to text, from the “MIB::end OID value” format to the full format, or vice-versa.
a) snmptranslate -On IPV6-MIB::ipv6IfOperStatus.2
b) snmptranslate -Tl .1.3.6.1.2.1.55
J. snmpnetstat -n -c public localhost
i. Cool way of seeing what network sockets are in use on a host.
K. snmptrap -v2c -c public localhost '' .iso.org.dod.internet.private.enterprises.ucdavis.prTable.prEntry prMin i 2
i. This is how one can send a trap via the command line for testing purposes or for inclusion in a shell script.
L. traptoemail
i. I couldn't get it to work and it had no man page for me to learn how to use it.