|
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.examplev2c.get_next
The get_next application does a MIB tree walk, using the GetNextPdu. It will start with the OID as configured in the properties file. This application uses SNMP v2c.
It walks the tree by creating a new GetNextPdu out off the previous one. All information will be printed to System.out.
The host, port, oid and community name can be configured
in the properties file.
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
get_next.properties
. If this file does not exist, the
application will use default parameters.
GetNextPdu
,
SnmpContextv2c
Constructor Summary | |
get_next(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 |
Constructor Detail |
public get_next(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)
'end of MIB view'
element.
update
in interface java.util.Observer
obs
- the GetNextPdu variableov
- the varbindGetNextPdu
,
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 |