-----------------------------------------------------------------------

	"@(#)README 3.4 99/03/23 SMI"

	Copyright (c) 03/23/99, by Sun Microsystems, Inc.
	All rights reserved.

-----------------------------------------------------------------------

			SNMP Manager Example
			====================


-----------------------------------------------------------------------
1. Example overview
-----------------------------------------------------------------------
This example shows how to build an SNMP manager.
This example must be run with the SNMP agent example provided
under the <JAW_HOME>/examples/snmp/agent directory.

The current directory contains the following source files:
   * AsyncManager.java:
	- Uses the MibStore object generated by mibgen.
	- Deals with asynchronous requests.

   * AsyncRspHandler.java:
	- Implements the SnmpHandlerIf for receiving asynchronous responses.

   * SimpleManager.java:
	- Initializes the SNMP manager API.
	- Uses services provided by the SNMP manager API to query an
	  SNMP agent.

   * TrapListenerImpl.java:
	- Receives valid PDU traps sent from the Snmp Agent
	  (implements the SnmpTrapListener interface)


-----------------------------------------------------------------------
2. Building and running the example
-----------------------------------------------------------------------
To build the snmp manager example, copy the example source files to your
working directory and type the following commands:

   cd <WORKING_DIR>

   # Copy the MIB files from the <JAW_HOME>/examples/snmp/agent directory
   # to your working directory and start mibgen:

   mibgen -mo -d . mib_II.txt mib_core.txt

   javac -d . *.java


To run the version of the example you have just built, type the
following commands:

   # Make sure that no agents are already running and start the 
   # SNMP agent provided in the examples under the 
   # <JAW_HOME>/examples/snmp/agent directory.
   # It binds to port 8085:

   java Agent

   # Start the manager, specifying the host and the port:

   java SimpleManager <host> <port>
-or-
   java AsyncManager <host> <port> 
