I'm attempting to query a Cisco switch, using the CISCO-STACK-MIB.

If I use snmpwalk on the command line, I get back something like:

CISCO-STACK-MIB::portAdditionalOperStatus.3.37 = BITS: 08 00 notConnected(4)

- it translates the BITS section to a human readable string.

However, if I try to do the same query using the perl SNMP module, I get back
just: "08 00 " - and yes, I have UseEnums set to 1.

So my question is thus - How can I get the human readable value back, as I
would with a normal enum? Is this simply a bug or oversight in the existing code?

I've only found one piece of information on this http://redirx.com/?gz4t -
same OID, from a few years ago, with no followup respose.

Here's the relevant portion of the mib. Thanks.

portAdditionalOperStatus OBJECT-TYPE
SYNTAX BITS { other(0), -- none of the following
connected(1),
standby(2),
faulty(3),
notConnected(4),
inactive(5),
shutdown(6),
dripDis(7),
disabled(8),
monitor(9),
errdisable(10),
linkFaulty(11),
onHook(12),
offHook(13),
reflector(14)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The current operational status of the port which is showing additional detailed information of the port."
::= { portEntry 23 }


-D
--
They're techno trousers, ex-NASA, fantastic for walkies!


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ 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

Reply via email to