[SNMP4J] Sending Trap for a table.

Shraddha Herlekar shraddha.herlekar at hds.com
Tue Oct 1 02:05:57 CEST 2013


Hi,
I have a MIB which has ifTable ( OID : 1.3.6.1.2.1.2.2) like table structure.
I want to send the last row of the table as a trap. Which OID VariableBinding should be used in my trap between ifTable, ifEntry( or any other)?

For example, for other standard field in MIB, I have a code like this:
PDU trap = new PDU();
trap.setType(PDU. TRAP);
trap.add(new VariableBinding(SnmpConstants.sysDescr, new OctetString("My Sys Description")));

Appreciate your help.

Thank You,
Shraddha.



More information about the SNMP4J mailing list