snmpget invalid data using multiple oids to tables.
Greg Robillard <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am not getting accurate data returned when posting multiple snmpget requests to table data. When I send the following snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.2.4 enterprises.103.1.9.2.5.1.3.4 enterprises.103.1.9.2.5.1.5.4, I receive the following. SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 1 SNMPv2-SMI::enterprises.103.1.9.2.5.1.3.4 = INTEGER: 4 SNMPv2-SMI::enterprises.103.1.9.2.5.1.5.4 = INTEGER: 4 The first value is correct, the second and third are simply the index values. I am using the request loop. for (request = requests; request; request = request->next I have inserted debug before and after the loop and am only entering the loop once and running the loop once. When I enter the command with individual oid requests the values return correctly. snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.2.4 SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 1 snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.3.4 SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 0 snmpget -v2c -c public localhost enterprises.103.1.9.2.5.1.5.4 SNMPv2-SMI::enterprises.103.1.9.2.5.1.2.4 = INTEGER: 0 Any assistance with this problem would be greatly appreciated. Is there some debug that I can insert that will assist? When I send multiple requests to anything other than tables, the returned data is accurate. Thanks. --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze.