Sends a trap using SNMP V2 trap format.
The trap is sent to the specified
SnmpPeer destination.
The community string used is the one located in the
SnmpPeer parameters (
SnmpParameters.getRdCommunity() ).
The variable list included in the outgoing trap is composed of the following items:
sysUpTime.0 with the value specified by time snmpTrapOid.0 with the value specified by trapOid all the (oid,values) from the specified varBindList
@param peer The
SnmpPeer destination of the trap.
@param trapOid The OID identifying the trap.
@param varBindList A list of
SnmpVarBind instances or null.
@param time The time stamp (overwrite the current time).
@exception IOException An I/O error occurred while sending the trap.
@exception SnmpStatusException If the trap exceeds the limitdefined by
bufferSize.
@since 1.5