help using -m option
Lee <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hopefully I'm just missing something simple, but I can't seem to get the -m option to limit what mibs get read on an snmp get For example: snmpget -m CISCO-CONFIG-MAN-MIB -OqUtv \ $DEV CISCO-CONFIG-MAN-MIB::ccmHistoryRunningLastChanged.0 reads lots more than CISCO-CONFIG-MAN-MIB.my & the mibs it references. Same thing if using -mCISCO-CONFIG-MAN-MIB or -Ymibfile="$S/cisco/CISCO-CONFIG-MAN-MIB.my" Environment is Windows XP, cygwin, net-snmp 5.6.rc2 build from source using cygwin with the following environment variables set in a cygwin bash shell: export S="/usr/local/share/snmp/mibs" export MIBDIRS="$S;$S/cisco" export MIBS=ALL export SNMPCONFPATH="$HOME/.snmp" export SNMP_PERSISTENT_DIR="$HOME/.snmp" export SNMPSHAREPATH="/usr/local/share/snmp" The man page says the -m option is supposed to over-ride the MIBS envar, but I've also tried MIBS="" unset MIBS and it doesn't make any difference. Run the Sysinternals Process Monitor tool, set the filter to show file reads, do the snmp get and watch lots of files in $S/cisco being read (I've got almost 300 mib files there - I haven't counted how many process monitor shows being read) I suspect this is just something really simple I'm missing, but darn if I can figure it out :( Lee ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users