SNMP Traps

Quick notes on testing, receiving and debugging SNMP traps. To send a test SNMP trap, do something like: #!/bin/bash #File: trapTest.sh #Change these values as needed: H=snmp.example.com C=public #Probably don't need to change these: V=2c O=1.3.6.1 sudo snmptrap -v$…

Calculating ifInOctets

SNMP is a great utility for systems monitoring. Some systems support SNMP better than others. I was working on an gateway product and ran into the limitations of OID 1.3.6.1.2.1.2.2.1.10 (ifInOctets). This also applies to 1.3.6.1.2.1.…