trehn / hnmp

High-level Python SNMP library
ISC License
49 stars 16 forks source link

Some clarifications for examples. #6

Closed mjuenema closed 2 years ago

mjuenema commented 9 years ago

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 commented 9 years ago

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

trehn commented 9 years ago

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