Running and Testing the Application

 



Reading through this section will help you start the Agent and the Shopping Cart application and work on it directly. To know how we developed the Agent and the Application please refer to the "Steps Involved in Developing the Application" section.

 

Running the Agent

  1. Go to <Agent Toolkit Home>/reference/snmp/agent/bin directory from the command prompt.

  2. Set the JAVA_HOME path.

  3. Now execute run.bat/.sh file.

  4. This will start the Agent at default port 8001.

  5. Once the Agent is started, the Shopping Cart application UI also gets opened as follows :

  6.  

Testing the Agent with Default Values

 

The Shopping Cart Agent can be tested using the MIB Browser application. This application creates a Manager environment. By querying from the Manager side, you will be acting as a Shopkeeper where you can add rows/delete rows and so on. Whereas by placing orders using the application you become the customer and you are restricted to place orders only on the available stock. To test the Agent using MIB Browser,

Placing Orders for Pets 

 

Testing The Agent for Traps

 

For this Reference Implementation, the Agent has been configured such that it generates Traps when the stock level reaches 15 for any pet item. To test the same follow the steps given below. To know how Trap or Notification is implemented go through the steps mentioned in "Implemented SNMP Traps" section.

 

To view Traps from the Agent, follow the steps given below : -

 

To know more on Testing, please refer to Testing the Agent section in Building SNMP Agents of Product Help documentation. Further chapters will discuss the implementation details of Scalar group and Tabular group.

 



Copyright © 2009, ZOHO Corp. All Rights Reserved.