Multiple OID's to a table.
"Robillard, Greg L" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
OS Linux 7.3 NET-SNMP version: 5.3.1 When using the for (request = requests; request; request = request->next) within a table handler, I am only able to extract correctly the first value when sending multiple OID's in the same snmpget command. snmpget -v2c -m /skyline/bin/commgate.my -d -c public localhost enterprises.103.1.9.2.5.1.3.1 enterprises.103.1.9.2.5.1.3.2 enterprises.103.1.9.2.5.1.3.3 The subsequent messages were returning the index value. Further analysis showed that the multiple OID's were being inserted into the Variable list correctly, but there was only a single request being created and sent to the handler. The variable list contained all of the correct information, but there was no request->next to loop through. Instead, I created a different loop, for(var = request->requestvb; var; var = var->next_variable). This loop works the request, but shifts the variable list through all of the OID's sent to the handler. This appears to resolve the problem in my application, but there is a defect in that if multiple column values are sent within the request, the default column value is the first OID. I am not certain if there is a different work around or any other piece that I am missing. Any input would be greatly appreciated. Thanks Greg L Robillard ------------------------------------------------------------------------- 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