All Packages Class Hierarchy This Package Previous Next Index
Class examples.snmp.manager.AsyncManager
java.lang.Object
|
+----examples.snmp.manager.AsyncManager
- public class AsyncManager
- extends Object
The class shows how to:
- use the Mibstore generated by mibgen;
- write and use a
SnmpHandlerIf;
- deal with asynchronous requests.
- listen to traps sent by an agent
- See Also:
- SnmpHandlerIf, AsyncRspHandler
-
AsyncManager()
-
-
main(String[])
- Main entry point.
-
usage()
- Return usage of the program.
AsyncManager
public AsyncManager()
main
public static void main(String argv[])
- Main entry point.
When calling the program, you must specify:
- host: hostname of the SNMP agent you want to query.
- port: port number to use.
As a reminder, if you wish to query the SNMP
agent example provided
as part of JDMK, use port 8085.
In order to get traces from the SNMP Manager API, invoke the program as follows:
java -DDEBUG examples.snmp.manager.AsyncManager sky 8085
usage
public static void usage()
- Return usage of the program.
All Packages Class Hierarchy This Package Previous Next Index