|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.examplev3.SendInform
The SendInform application sends an inform using the InformPdu.
All parameters 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
SendInform.properties
. If this file does not exist, the
application will use default parameters.
Note: The stack so far only supports sending an Inform. Receiving an Inform and replying with a Response is NOT yet supported!
InformPdu
Field Summary | |
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 Summary | |
SendInform(java.lang.String propertiesFilename)
Constructor. |
Method Summary | |
void |
init()
|
static void |
main(java.lang.String[] args)
|
void |
update(java.util.Observable obs,
java.lang.Object ov)
Implementing the Observer interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public SendInform(java.lang.String propertiesFilename)
propertiesFilename
- The name of the properties file. Can be
null.Method Detail |
public void init()
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
obs
- the InformPdu variableov
- the varbindInformPdu
,
varbind
,
SnmpConstants.SNMP_VAR_ENDOFMIBVIEW
public static void main(java.lang.String[] args)
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |