Starting and Stopping the Agent

 



Overview

 

In the topic, Simulating Default Values, you have learnt that the agent is simulated as soon as you load the MIB file(s) and simulate default data for the loaded MIB. Any variation on this basic simulation is created in the SNMP Agent Simulator by Configuring Values.

 

When you have finished configuring the agent with the required values, behavior scripts and traps, you can test the simulated agent for the required behavior, after starting the agent.  The agent can be started at the specified port from the SNMP Agent Simulator or from Command line.

 

Starting the Agent

 

a. From UI

 

To start the simulated agent from the UI, do the following :

  1. Click on the start icon or choose Operations --> Start Agent from the menu bar.

  2. You will get a message in the text area "Agent started at port 8001". The port number might vary based on the port you choose to run the simulator.

Note: For evaluation copy, the agent will respond only for the first two groups queried.

 

b. From Command Line

 

To start the simulated agent form command Line, refer to the topic Starting the SNMP Agent from Command Line.

 

c. By executing Jython scripts

 

You can start the SNMP Agent by executing the SNMP script interface method startAgent() inside the jython script file.  The javadocs of the methods defined in the script interface can be accessed from <SimulatorHome>/examples/javadocs directory.

 

Stopping the Agent

 

a. From UI

b. By executing Jython scripts

 

You can stop the SNMP Agent by executing the SNMP script interface method stopAgent() inside the jython script file. The javadocs of the methods defined in the script interface can be accessed from <SimulatorHome>/examples/javadocs directory.

 

c. From Command Line

 

You can stop SNMP agents at your will from command line, by executing the StopSnmpAgent.bat/sh file in <SimulatorHome>/bin/ cmdline directory. For example, to stop the SNMP agent running at port 8001 and ip address 190.191.1,2, specify the following command.

 

StopSnmpAgent -h 190.191.1.2 -p 8001 -c public

 

Refer to the topic Stopping the Remote Agent for more information.

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.