uk.co.westhawk.nothread.trap
Class SendTrap
java.lang.Object
|
+--uk.co.westhawk.nothread.trap.SendTrap
- public class SendTrap
- extends java.lang.Object
The SendTrap application sends a PassiveTrapPduv2 in an Oracle JServ
environment.
The host, port, oid, community name, etc, are passed by the Oracle
trigger to the method.
See
notes
on how to send traps in an Oracle JServer environment.
- Version:
- $Revision: 1.1 $ $Date: 2002/10/15 13:37:01 $
- Author:
- Birgit Arkesteijn
- See Also:
PassiveTrapPduv2
,
PassiveSnmpContextv2c
Method Summary |
static java.lang.String |
doSendTrap(java.lang.String host,
int port,
java.lang.String comm,
long upTime,
java.lang.String trapOid)
Sends one v2c trap. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sysUpTime
public static final java.lang.String sysUpTime
snmpTrapOID
public static final java.lang.String snmpTrapOID
coldStart
public static final java.lang.String coldStart
warmStart
public static final java.lang.String warmStart
linkDown
public static final java.lang.String linkDown
linkUp
public static final java.lang.String linkUp
authenticationFailure
public static final java.lang.String authenticationFailure
egpNeighborLoss
public static final java.lang.String egpNeighborLoss
SendTrap
public SendTrap()
doSendTrap
public static java.lang.String doSendTrap(java.lang.String host,
int port,
java.lang.String comm,
long upTime,
java.lang.String trapOid)
- Sends one v2c trap.
One can only call static methods from within Oracle. Sad, but true.
The parameters are passed via the Oracle trigger;
they are the insert values of the scott.trap table.
- Parameters:
host
- The hostnameport
- The port number, usually 162comm
- The community nameupTime
- The value for sysUpTime.0trapOid
- The value for snmpTrapOID.0- Returns:
- The result of the send.
OK
, if all went well,
an error message if not. This value will be stored in the
scott.trap.result field.