On 26 July 2012 11:46, <[email protected]> wrote:
> I want to convert a port instance internal name to its corresponding port
> number.
>
> for example when I query a get Bulk for OID name ="fcsPortState"
You need to consult the MIB file that defines the tables
and other objects that you are looking at.
For example, it appears that you are retrieving
CISCO-FCS-MIB::fcsPortState
which is part of the fcsPortTable.
One entry of this is:
fcsPortPhyPortNum OBJECT-TYPE
SYNTAX Integer32 (1..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The physical number corresponding to this port entry."
::= { fcsPortEntry 5 }
Which appears to be the information you are looking for.
Dave
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders