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

SNMPv3 issues with ProCurve device #436

Closed
grepmyps opened this issue Apr 5, 2023 · 1 comment
Closed

SNMPv3 issues with ProCurve device #436

grepmyps opened this issue Apr 5, 2023 · 1 comment

Comments

@grepmyps
Copy link

grepmyps commented Apr 5, 2023

Howdy,

Running pysnmp 4.4.11, and trying to communicate with a slightly older HP ProCurve switch via SNMPv3, AES/SHA.

Issue: When pysnmp sends out the initial get-next-request message to the switch, the switch responds back with the following: report 1.3.6.1.6.3.15.1.1.3.0, which is SNMP-USER-BASED-SM-MIB::usmStatsUnknownUserNames.0.

pysnmp seems to ignore this and eventually errors out with "No SNMP response received before timeout"

I did a network trace using the NET-SNMP version: 5.6.2.1 tools, which works as expected. The response by the switch is 1.3.6.1.6.3.15.1.1.4.0 SNMP-USER-BASED-SM-MIB::usmStatsUnknownEngineIDs.0

The only difference I found between the NET-SNMP tools and pysnmp is that the msgFlags field of the SNMP request is set to 0x00 for pysnmp, and its set to 0x04 with NET-SNMP. This is the "Reportable" flag.

I did a quick test and setting this flag indeed causes the switch to respond differently.
msgFlag == 0x00, the response from the switch is usmStatsUnknownUserNames
msgFlag == 0x04, the response from the switch is usmStatsUnknownEngineIDs

I did this test by sending a raw UDP packet to the switch, where I changed only the flags field and I noted the difference in the response.

Question: where in the pysnmp code can I force the msgFlags value to set the Reportable flag so I can query my ProCurve switch fleet using pysnmp? Seems pysnmp is waiting for the usmStatsUnknownEngineIDs response, but it only ever gets usmStatsUnknownUserNames, so it times out.

Thanks,
-Walt

@grepmyps grepmyps closed this as completed Apr 5, 2023
@grepmyps
Copy link
Author

grepmyps commented Apr 5, 2023

never mind; ya'll fixed it in 4.4.12. D'oh!

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