public class SendTrap
extends java.lang.Object
The SendTrap application sends a trap, using the TrapPduv2.
The host, port, oid and community name can be configured in the properties file. The value for sysUpTime and snmpTrapOID are hard coded.
The name of the properties file can be passed as first argument to
this application. If there is no such argument, it will look for
SendTrap.properties
. If this file does not exist, the
application will use default parameters.
TrapPduv2
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
authenticationFailure |
static java.lang.String |
coldStart |
static java.lang.String |
egpNeighborLoss |
static java.lang.String |
linkDown |
static java.lang.String |
linkUp |
static java.lang.String |
snmpTrapOID
The authoritative identification of the notification currently
being sent.
|
static java.lang.String |
sysContact |
static java.lang.String |
sysUpTime |
static java.lang.String |
warmStart |
Constructor and Description |
---|
SendTrap(java.lang.String propertiesFilename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
init() |
static void |
main(java.lang.String[] args) |
public static final java.lang.String sysUpTime
public static final java.lang.String sysContact
public static final java.lang.String snmpTrapOID
public static final java.lang.String coldStart
public static final java.lang.String warmStart
public static final java.lang.String linkDown
public static final java.lang.String linkUp
public static final java.lang.String authenticationFailure
public static final java.lang.String egpNeighborLoss