Hi Shraddha,

If you want to send a row within a trap, you should send the columnar object
instance with the most significance for the event.
That is, for an ifTable row, this could be the ifOperStatus value.
In a trap, you MUST always use instance OIDs. For scalars, that means
that the OID must end with a .0 suffix.
For columnar objects, you include the columns OID (table.1.<col>)
and append the index OID. Thus, in your case

1.3.6.1.2.1.2.2.1.8.999

where 1.3.6.1.2.1.2.2.1.8 is "ifOperStatus" and "999" the index OID of the
last row.

Best regards,
Frank

Am 11.10.2013 18:38, schrieb Shraddha Herlekar:
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: '[email protected]'
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.
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231

_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to