Does anybody have any luck using a BITS enumeration in their MIB along 
with code generated by mib2c -c mib2c.mfd.conf (i.e., mibs for dummies).

When I do a snmpget on my oid, I get something like:

        $ snmpget localhost .1.3.6.1.4.1.1458.100.25.1.4.1
         AMCC-RAID-MIB::amccRaidSlotStatus.1 = BITS: 00 00 00 90 FF 24 
27 32 33 34 35 36 37 38 39

The MIB entry looks like:

        amccRaidSlotStatus OBJECT-TYPE
            SYNTAX     BITS {SlotInserted(0), SlotInsertReady(1), 
SlotRemoveReady(2), SlotActivated(3) }
            MAX-ACCESS  read-only
            STATUS      current
            DESCRIPTION "Slot status."
        ::= { amccRaidSlotEntry 4 }

Mfd generates a #defines for the bits, and the ones that are set are:

        #define AMCCRAIDSLOTSTATUS_SLOTINSERTED  (1 << (31-0))
        #define AMCCRAIDSLOTSTATUS_SLOTACTIVATED  (1 << (31-3))

With looks a lot like the, "90" in the above bits. However snmpget isn't 
printing the enumeration names. In some cases it does - it seems kind of 
random.

Also, a perl script using Net::SNMP returns 0x000090ff for the above 
value. It's like it's lost trying to figure out where the octet string 
starts.

Does anyone else have "BITS" syntax working? Is it me or net-snmp???

Thanx, carlos
--------------------------------------------------------

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and contains information that is 
confidential and proprietary to Applied Micro Circuits Corporation or its 
subsidiaries. It is to be used solely for the purpose of furthering the 
parties' business relationship. All unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.

-------------------------------------------------------------------------
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