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

Some clarifications for examples. #6

Closed
mjuenema opened this issue May 28, 2015 · 2 comments
Closed

Some clarifications for examples. #6

mjuenema opened this issue May 28, 2015 · 2 comments

Comments

@mjuenema
Copy link
Contributor

There are two things to be aware of that are not well explained in the example.

The argument for the snmp.table() method must be the OID of the entry (e.g. '1.3.6.1.2.1.2.2.1' for IF-MIB::ifEntry) and not the OID of the whole table (e.g. '1.3.6.1.2.1.2.2' for IF-MIB::ifTable).

The second thing that tripped me was that the columns indexes start at 1 and not at zero.

@mjuenema
Copy link
Contributor Author

mjuenema commented Jun 4, 2015

I just realised that the column indexes are derived from the index in the MIB.

@trehn
Copy link
Owner

trehn commented Jun 4, 2015

Yes, sorry for the slow response. I'll double check the ifEntry thing as soon as I get a chance.

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

2 participants