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

Consider adding a separate path for handling SNMPv3 synchronization problems #8

Open
lunkwill42 opened this issue May 2, 2024 · 0 comments

Comments

@lunkwill42
Copy link
Member

lunkwill42 commented May 2, 2024

The following part seems to ignore incoming SNMPv3 errors about synchronization issues, leaving it up to Net-SNMP to "fix" the problem when retrying:

if usmStatsOidStr == ".1.3.6.1.6.3.15.1.1.2.0":
# Some devices use usmStatsNotInTimeWindows as a normal part of the SNMPv3 handshake (JIRA-1565)
# net-snmp automatically retries the request with the previous request_id and the values for
# msgAuthoritativeEngineBoots and msgAuthoritativeEngineTime from this error packet
self._log.debug("Received a usmStatsNotInTimeWindows error. Some devices use usmStatsNotInTimeWindows as a normal part of the SNMPv3 handshake.")
return

However, if the problem persists (e.g. someone has re-used SNMP Engine IDs across multiple devices), the underlying error is actually masked by a TimeoutError being raised instead. Not very helpful when users are experiencing problems and are trying to get useful debug info.

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