Perl getnext returning insufficient index portion

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-05-2005
Shane Dawalt
 
Posts: n/a
Default Perl getnext returning insufficient index portion

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:00 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0