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

SNMP V3 Unhandled Exception: System.InvalidCastException: Value should be from 0 to 7 #101

Closed
sweetpants opened this issue Jan 16, 2019 · 3 comments
Labels

Comments

@sweetpants
Copy link
Contributor

sweetpants commented Jan 16, 2019

When using SNMP V3 discovery on a Cisco ASA 5510 firewall, this device returns MsgFlags = 8, but the library only handles 0-7. When using a Cisco C2960 switch, which returns MsgFlags = 0, everything is working fine. Attached a pcap of the two devices (10.252.0.1 = ASA, 192.168.128.13 = Switch)
asa_vs_switch_discovery.pcap.zip

BTW, Net::SNMP works fine on the same ASA device

@sweetpants
Copy link
Contributor Author

sweetpants commented Jan 16, 2019

The error is generated from OctetString.cs line 163 (public Levels ToLevels()) Is it possible to do a logical AND with 0x7 ? RFC3412 is clear that only the 3 lowest bits are used. Getting Cisco to change this in their code will be a lengthy process i presume.

@lextm
Copy link
Collaborator

lextm commented Jan 16, 2019

Related to #73.

@lextm
Copy link
Collaborator

lextm commented Jan 16, 2019

Closed via #102

@lextm lextm closed this as completed Jan 16, 2019
@lextm lextm removed the in progress label Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants