Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiQuery for several OIDs loosing results when previous "NoSucheInstance" response found #27

Open
computerphysicslab opened this issue Aug 14, 2020 · 0 comments

Comments

@computerphysicslab
Copy link

When calling snmp.GetRequest(oids) having previous OIDs resulting in "NoSucheInstance" seems to alter the result of next OIDs

When non-exiting OIDs are ordered at the end of the list, results are Ok

Shown in the following example:
snmp.GetRequest(oids)
{"Oid": "1.3.6.1.2.1.43.11.1.1.6.1.1", "Variable": {"Type": "OctetString", "Value": "TK-3190"}},
{"Oid": "1.3.6.1.2.1.43.11.1.1.8.1.1", "Variable": {"Type": "Integer", "Value": "25000"}},
{"Oid": "1.3.6.1.2.1.43.11.1.1.9.1.1", "Variable": {"Type": "Integer", "Value": "23750"}},
{"Oid": "1.3.6.1.2.1.43.11.1.1.6.1.2", "Variable": {"Type": "OctetString", "Value": "Waste Toner Box"}},
{"Oid": "1.3.6.1.2.1.43.11.1.1.6.1.3", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.6.1.4", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.8.1.1", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.8.1.2", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.8.1.3", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.8.1.4", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.9.1.1", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.9.1.2", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.9.1.3", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.43.11.1.1.9.1.4", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value does not exist
{"Oid": "1.3.6.1.2.1.25.3.2.1.3.1", "Variable": {"Type": "OctetString", "Value": "ECOSYS M3655idn"}},
{"Oid": "1.3.6.1.2.1.43.5.1.1.17.1", "Variable": {"Type": "NoSucheInstance", "Value": ""}}, <============== value exists, but snmp.GetRequest yields "NoSucheInstance"
{"Oid": "1.3.6.1.2.1.2.2.1.6.1", "Variable": {"Type": "OctetString", "Value": "00:17:c8:70:f5:99"}}]

// Direct command line query for missing OID:
$ snmpget -v2c -c public IP 1.3.6.1.2.1.43.5.1.1.17.1
iso.3.6.1.2.1.43.5.1.1.17.1 = STRING: "R4B9614011"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant