snmpd -verify if the mibs are loaded.

If you are setting up the snmpd server and have added your own mibs and do not really know if the mibs are loaded or not then simply go to the directory:

/var/lib/net-snmp/mib-indexes

This can save you a lot of time, if you are not getting results with snmpwalk. You can even use snmpwalk as :

snmpwalk -v  -c

Well, these little things can save you a lot of time 🙂

Enhanced by Zemanta

Using snmp trap receiver on Fedora (Linux)

First off install the net-snmp things:

sudo yum install net-snmp net-snmp-utils

After that it will run out of the box with the command:

sudo snmptrapd -A -d -n -Lf trap.log

Some interesting links:

http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Configuring_snmptrapd#Matching_SNMPv2_OIDs
http://www.net-snmp.org/tutorial/tutorial-5/commands/snmptrap.html