Snmp-differentChecks
Jump to navigation
Jump to search
Using MIBS
/usr/bin/snmpbulkwalk -v2c -c public -OQUs -m Q-BRIDGE-MIB -M /opt/observium/mibs udp:asus03.iwillfearnoevil.com:161
/usr/bin/snmpbulkwalk -v2c -c public -OQUs -m Q-BRIDGE-MIB -M /opt/observium/mibs udp:asus03.iwillfearnoevil.com:161 dot1qVlanCurrentEgressPorts
dot1qVlanCurrentEgressPorts = No Such Object available on this agent at this OID
Normal No-MIBS
snmpwalk -v2c -c public 192.168.15.58 -On 1.3.6.1.2.1.1
snmpwalk -v2c -c monk2net 192.168.15.202
Notes and thoughts
If we are ever going to have to use the MIBs, the above is how it is done. This assumes there are not errors sitting in the MIB file.
- -On disables all non-numeric returns so we only have integers
- the -M /path/to/mibs
- the -m is the mibfile to use
- -OQUs remove type (Q) do not print units (U) show mob object name (s)
- man snmpcmd has the details and options...