Question for Dartware or others that have crossed this bridge? Has anyone had
any experience using IM to decode BITS syntax MIB entries?
This is a SNMP variable that has a series of bits that relates to a condition of
the device. Those bits are lined up and returned to the SNMP client in the form
of hex. We need to parse it down and alarm on each bit.
Here is an example:
CardAlarmStatus OBJECT-TYPE
SYNTAX BITS {
underRepair(0),
critical(1),
major(2),
minor(3),
alarmOutstanding(4) }
The SNMP agent maps these 5 conditions into the first 5 bits of a 8 bit
response. So under normal conditions its:
0000 0000, or the response is 0x00
If underRepair is true, the first bit is set to 1:
1000 0000, or the hex response is 0x80. (The left most is most significant).
If underRepair and Critical are true:
1100 0000, or the hex response is 0xC0.
Anyone crossed the bridge of parsing this stuff?
Thanks,
Tony
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]