On 9/8/10, Lee <ler...@gmail.com> wrote: > 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
I finally tried adding this bit to my snmp.conf: showMibErrors yes mibWarningLevel 2 and got loads of "Warning: string too long", "XXX MACRO (lines NN..NN parsed and ignored)." as well as Warning: No known translation for type (CcmCLIHistoryCommandEntry): At line 613 in /usr/local/share/snmp/mibs/cisco/CISCO-CONFIG-MAN-MIB.my Would "No known translation for type ..." cause net-snmp to search thru all the files in $MIBDIRS looking for a translation? & if so, is there an easy fix? ccmCLIHistoryCommandEntry OBJECT-TYPE SYNTAX CcmCLIHistoryCommandEntry <---- line 613 MAX-ACCESS not-accessible STATUS current DESCRIPTION "Information about the CLI commands that took effect during the configuration event pointed by ccmCLIHistoryEventIndex. A set of rows in this table having the first index as ccmHistoryEventIndex will store the CLI commands entered during the corresponding configuration event in ccmHistoryEventTable. An entry will be created in this table only if the corresponding entry in ccmHistoryEventTable has a value of 'commandLine' for ccmHistoryEventCommandSource." INDEX { ccmHistoryEventIndex, ccmCLIHistoryCommandIndex } ::= { ccmCLIHistoryCommandTable 1 } CcmCLIHistoryCommandEntry ::= SEQUENCE { ccmCLIHistoryCommandIndex Unsigned32, ccmCLIHistoryCommand DisplayString } Thanks, Lee > > 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 > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users