This is a discussion on Perl getnext returning insufficient index portion within the SNMP Users forums, part of the Networking and Network Related category; I'm hoping someone can tell me if I'm out of my mind or confirm my suspicions. I'm ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm hoping someone can tell me if I'm out of my mind or confirm my
suspicions. I'm using NetSNMP 5.1.2 (RPM on RHEL v.3). It seems getnext() isn't properly ripping the index from the OID when it returns with an object. I'm working with a Cisco proprietary MIB (CISCO-PORT-SECURITY-MIB). I am concentrating on the cpsSecureMacAddressTable table. The index for this table is ifIndex.cpsSecureMacAddress. I'm trying to perform a getnext() on the table entry cpsSecureMacAddressTable.cpsSecureMacAddressEntry. cpsSecureMacAddrType which is at OID .1.3.6.1.4.1.9.9.315.1.2.2.1.2. If we assume there exists an ifIndex 99 and a MAC address 0.1.2.3.4.5 then I would expect a getnext() on the given OID to return: OID = .1.3.6.1.4.1.9.9.315.1.2.2.1.2 , iid = 99.0.1.2.3.4.5 but what I get back is: OID = .1.3.6.1.4.1.9.9.315.1.2.2.1.2.99.0.1.2.3.4 , iid = 5 which I don't quite agree with. Shouldn't getnext() return an iid of 99.0.1.2.3.4.5 in this example? Have I missed something in the documentation? A search of the bug database didn't show anything. (I've used tkmib to view this table ... so I know the hardware is returning useful information that tkmib can handle.) Shane ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|