Using net-snmp, I've setup my snmp.conf to see vendor MIBs and I can walk them via "snmpwalk -Cc -v 2c -c <community> <device> <MIB name>
". Is it possible to get snmpwalk to auto-walk the vendor MIBs when I walk a device without calling out the vendor MIB specifically?
Linux – Possible to get snmpwalk to auto-walk vendor MIBs
linuxmibsnmp
Best Answer
It doesn't look like it. The default OID to use as the root of the walk is hard coded into the application.
I would recommend creating a small wrapper shell script.
For example.
vendor-snmpwalk.sh:
Then you just call your wrapper script instead of
snmpwalk
directlyFor reference, here's the relevant code that handles the root OID that the walk starts from (from the net-snmp code repository):
...