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

Why can't I instanciate: new ObjectIdentifier("1") #36

Closed
KarloX2 opened this issue Jun 17, 2017 · 1 comment
Closed

Why can't I instanciate: new ObjectIdentifier("1") #36

KarloX2 opened this issue Jun 17, 2017 · 1 comment
Labels

Comments

@KarloX2
Copy link
Contributor

KarloX2 commented Jun 17, 2017

Hi!

When I do this
new ObjectIdentifier("1")

(i.e. parsing the OID value string "1" which is what the "iso" node of the SNMPv2-SMI MIB refers to), I get an ArgumentException saying "The length of the shortest identifier is two".

Why? I think the OID "1" (and also "0") should be perfectly legal.

Thanks
Karlo

@lextm lextm added the question label Jun 17, 2017
@lextm
Copy link
Collaborator

lextm commented Jun 17, 2017

However, single digit OIDs are illegal,

https://blog.lextudio.com/snmp-pro-secrets-behind-object-identifier-ff242fd4474e

@lextm lextm closed this as completed Jun 17, 2017
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