You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a few user reports, including #2772, that seemed to indicate data was missing for devices that only support SNMPv1, we had to do a thorough inspection, and can confirm the following:
SNMPv1 profile connectivity checks from SeedDB work just fine (using the synchronous SNMP library)
SNMPv1 communication from ipdevpoll, naventity and navoidverifydoes not work.
To Reproduce
Steps to reproduce the behavior:
Add a device X that supports SNMPv1 to NAV using SeedDB
Attach an SNMPv1 profile to X, and double-check connectivity with the connectivity check button.
Open a terminal on your NAV server and run the command ipdevpoll -J snmpcheck -n X (where X is your device)
See ipdevpoll reporting the device as being SNMP-unreachable.
Expected behavior
SNMPv1 communication should work.
Environment (please complete the following information):
NAV version installed: 5.8.2
The text was updated successfully, but these errors were encountered:
Packet inspection reveals that even though a device is configured with an SNMPv1 profile, ipdevpoll, naventity and navoidverify will send SNMPv2c packets to it.
Furthermore, this seems to happen even when the parameters of the generated AgentProxy instance are correct (i.e. snmpVersion='1').
Finally, it turns out the issue is with how AgentProxy works internally in the pynetsnmp library. The snmpVersion argument is actually expected to be a string that is prefixed with the letter v, as in v1, v2c or v3. The AgentProxy uses a dict to map these strings to an internal Net-SNMP value for SNMP version, and if the string doesn't match any of the known version strings, the AgentProxysilently defaults to v2c, leaving the user none the wiser.
Describe the bug
After a few user reports, including #2772, that seemed to indicate data was missing for devices that only support SNMPv1, we had to do a thorough inspection, and can confirm the following:
ipdevpoll
,naventity
andnavoidverify
does not work.To Reproduce
Steps to reproduce the behavior:
X
that supports SNMPv1 to NAV using SeedDBX
, and double-check connectivity with the connectivity check button.ipdevpoll -J snmpcheck -n X
(where X is your device)Expected behavior
SNMPv1 communication should work.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: