[SNMP4J] SNMP4j-SMI-PRO Question

Ronald Braswell rpbraswell at gmail.com
Tue Oct 11 19:58:29 CEST 2016


I want to find out how many components (sub-identifiers) comprise an index
some some OID.   This info is in the table entry.   However, if the table
entry augments another table, the indexes are not given but the table entry
which is being augmented is available in the augments clause in the table
entry that augments it.   An example would be the ifXEntry augments ifEntry.

In snmp4j-smi-pro,  I don't see anything in SmiObjectType or SmiObject that
yields the augmented table.   Did I overlook this?

I want to find out given an arbitrary OID that may be included in a trap
how many sub-identifiers make up the prefix.   If the last sub-identifier
is not 0, then I guess I could remove the last until I get to a type of
OBJECT_TYPE_COLUMN.

But is this the best way?

Ron



More information about the SNMP4J mailing list