Doing Snmp Get on Table with 2 index columns
Amit Gupta <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OF8C1ED270.42513CFF-ON652571E0.003BBFB0-652571E0.003CAAFB@hsc.com> |
Hi, I have implemented a table using NetSnmp toolkit that is indexed by two values - one integer value(componentType) and one string(componentId). I am able to perform an snmpwalk and snmpgetnext successfully, but when I perform an snmpget, I am unable to retrieve the value of the parameter. I have tried the following commands - snmpget -c public localhost .1.3.6.1.4.1.303.3.3.42.6.3.3.1.3.1."PNU-1" snmpget -c public localhost .1.3.6.1.4.1.303.3.3.42.6.3.3.1.3.1.PNU-1 and each time I receive the response .1.3.6.1.4.1.303.3.3.42.6.3.3.1.2.1.PNU-1: Unknown Object Identifier (Index out of range: PNU-1 (componentID)) But When I perform an snmpwalk the following result is obtained - snmpgetnext -c public localhost .1.3.6.1.4.1.303.3.3.42.6.3.3 MY-MIB::componentID.pnu."PNU-1" = STRING: "PNU-1" When I perform and snmpgetnext the following result is obtained snmpgetnext -c public localhost .1.3.6.1.4.1.303.3.3.42.6.3.3.1.3.1 MY-MIB::componentID.pnu."PNU-1" = STRING: "PNU-1" Please suggest me what could be the problem with my implementation or the way i am performing snmpget. Regards, - Amit ------------------------------------------------------------------------- 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