[SNMP4J] FW: Sending Trap for a table.

Shraddha Herlekar shraddha.herlekar at hds.com
Fri Oct 11 18:38:18 CEST 2013


Hi,
Not sure if my mail was posted in the forum.
Re-posting the question.

Thanks,
Shraddha.

From: Shraddha Herlekar
Sent: Monday, September 30, 2013 5:06 PM
To: 'snmp4j at agentpp.org'
Subject: Sending Trap for a table.

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