RE: Extracting index(es) from response OID

Jurkiewicz Jean-Marc <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi, Shane,

I guess you are talking about Indexes ( not indices).

The index is the last value after the last dot. i.e 1.2.3.4.5.6 = 123  , 6 is the index, 123 is the returned value
This index refers a table that is only valid for the MIB you are reading.
A same physical entity/interface ( i.e. a switch port), can be referenced by different indexes in different tables.
In the definition of the MIB you are reading you will find what table to use to finally ( maybe after several "correlation" ) find out the physical interface referenced.

Hope this helps
JM

-----Message d'origine-----
De : Shane [mailto:[email protected]] 
Envoyé : samedi, 20. septembre 2014 04:33
À : net-snmp-users
Objet : Extracting index(es) from response OID


    I must be missing something - I've spent hours trying to figure out what API call I should use.  I am trying to extract indices out of a response OID from a table MIB.  Does an API call exist for this operation?  Maybe I should just convert the OID to ASCII and then using string methods to extract the indices.  I really figured that the API would have some support for this.

    Shane


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
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

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.