On Mon, 13 Aug 2007 16:55:19 -0700 Carlos wrote:
CC> Does anybody have any luck using a BITS enumeration in their MIB along 
CC> with code generated by mib2c -c mib2c.mfd.conf (i.e., mibs for dummies).
CC> 
CC> When I do a snmpget on my oid, I get something like:
CC> 
CC>         $ snmpget localhost .1.3.6.1.4.1.1458.100.25.1.4.1
CC>          AMCC-RAID-MIB::amccRaidSlotStatus.1 = BITS: 00 00 00 90 FF 24 
CC> 27 32 33 34 35 36 37 38 39

CC> Mfd generates a #defines for the bits, and the ones that are set are:
CC> 
CC>         #define AMCCRAIDSLOTSTATUS_SLOTINSERTED  (1 << (31-0))
CC>         #define AMCCRAIDSLOTSTATUS_SLOTACTIVATED  (1 << (31-3))
CC> 
CC> With looks a lot like the, "90" in the above bits. However snmpget isn't 
CC> printing the enumeration names. In some cases it does - it seems kind of 
CC> random.


What release did you have installed when you ran mib2c? It looks like the
length isn't getting set properly..

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to