This explains an example agent which implements single index, multiple index, implied index and External Index implementation for SNMP v1/v2c Agents.
Overview:
In this example we have developed an Agent for the TABLE MIB in the AdventNet\JavaAgent\mibs directory.
In this example integerIndexTable will have integer as index data type, multiple-index table will have integer and display string as index data types, impliedIndexTable will have octet string as index data type and external index table will have an external index from integerIndexTable.
Source files:
In main file request handler for all the tables will be instantiated.
IntegerIndexTableRequestHandler.java file will processes the request for
the IntegerIndexTable.
MultipleIndexTableRequestHandler.java file will process the request for MultipleIndexTable.
ImpliedIndexTableRequestHandler.java file will process the request for ImpliedIndexTable.
ExternalIndexTableRequestHandler.java file will process the request for ExternalIndexTable.
Compilation:
1. Go to the respective directory:
"<Installation Directory>\AdventNet\JavaAgent\examples\snmp\tablehandling\tables\agent\bin" to compile the source.
2. Compile the source by executing,
sh compile.sh (for Linux users) OR
compile (for Windows Users)
Starting the Agent:
1. Go to "<Installation Directory>\AdventNet\JavaAgent\examples\snmp\tablehandling\tables\agent\bin" directory and type:
sh run.sh <options>(OR)
run <options>
where, <options> specify the options in which you run the
Agent.

Copyright (c) 1996-2004 AdventNet, Inc. All Rights Reserved.