Re: How do you get at a mib index?
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
>>>>> On Wed, 3 May 2006 12:40:28 +1000, "Peter Fitzgerald" <[email protected]> said: Peter> I thought that NetSNMP::OID may do the trick but the examples Peter> are a little sketchy for me and I cannot find anything to help Peter> out. That class will do the trick, in fact. If you create an NetSNMP::OID class, the get_indexes() clause will return the indexes. Command line example: % perl -l -MNetSNMP::OID -e 'my $obj = new NetSNMP::OID(".1.3.6.1.6.3.16.1.2.1.5.3.3.119.101.115"); print join(",",@{$obj->get_indexes()});' 3,wes Peter> Does anyone have some suggestions as to how I may get at these darn Peter> index's, keeping in mind that I have limited experience in Perl to start Peter> with. Peter> Any help appreciated. Peter> Thanks Peter> Peter Fitz. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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