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

BUG: SNMPv3 requests not works with Mikrotik RouterOS devices #16

Closed
aversant opened this issue Oct 18, 2024 · 1 comment
Closed

BUG: SNMPv3 requests not works with Mikrotik RouterOS devices #16

aversant opened this issue Oct 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aversant
Copy link

Describe the issue:

With Mikrotic Router OS devices SNMPv3 request not worked - "Timeout Error", but with snmpget utility works.

Check request with tcpdump -vvvv:
gufoSNMP:

{ SNMPv3 { F=apr } { USM B=0 T=0 U="Network" } { ScopedPDU [!scoped PDU]d3_a9_14_37_52_01_11_f6_7b_9f_15_6a_b9_74_ff_80_35_be_2c_ad_f3_36_33_dc_2d_b6_ec_f4_ff_ed_83_21} }

<TIMEOUT>

snmpget

{ SNMPv3 { F=r } { USM B=0 T=0 U="" } { ScopedPDU E= C="" { GetRequest(14) R=1125633915  } } }

Response:
{ SNMPv3 { F=r } { USM B=0 T=0 U="" } { ScopedPDU E=_80_00_3a_8c_04 C="" { Report(32) R=1125633915  S:snmpUsmMIB.usmMIBObjects.usmStats.usmStatsUnknownEngineIDs.0=3754 } } }

Reproduce the code example:

from gufo.snmp.sync_client import SnmpSession
from gufo.snmp.user import User, Aes128Key, DesKey, Md5Key, Sha1Key, KeyType

u = User(name="Network", auth_key=Sha1Key("XXXX".encode()), key_type=KeyType.Password), priv_key=Aes128Key("YYYYY".encode(),  key_type=KeyType.Password))

s = SnmpSession(user=u, addr="172.16.20.20", timeout=3, version=SnmpVersion.v3)
s.refresh()

Error message:

No response

Python version information

3.11.6 (main, Jan 6 2024, 05:32:16) [GCC 10.2.1 20210110]

Gufo SNMP version information

0.5.1

Operation system version

cat /etc/debian_version
11.8

@aversant aversant added the bug Something isn't working label Oct 18, 2024
@dvolodin7
Copy link
Contributor

Fixed in 0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants