SNMP Proxy Agent Simulation

 



 

Overview

 

In real-time environment, a device having IP Address and SNMP Agent may be acting as a proxy for "non-SNMP" devices managing its own MIB. These non-SNMP devices will be addressed by the proxy agent using community string. The SNMP Agent Simulator supports to simulate such scenarios, where there are multiple SNMP agents with same IP Address, but with different community strings.  This feature is supported in command line.

 

Creating the Agent Configuration

 

The Proxy Agent takes the SNMP agent configuration file as input. Hence, each SNMP agent must have the configuration file with <filename>_main.xml extension, which contains the simulated agent configurations. The configuration files must be created using the AdventNet SNMP Agent Simulator .

 

Creating the Mapping Conf File

 

The mapping information required to access the simulated SNMP agents based on community name must be provided in a text file format. The Proxy Agent uses this information to route the messages to the appropriate agents.  The format of the text file is given below:

Format:

community name=configuration file name with path|agent id

 
where,  Sample conf file for Windows OS
 

xxx=c:/simulator/multiple_agent/conf1_main.xml|1
yyy=c:/simulator/multiple_agent/conf2_main.xml|2
zzz=c:/simulator/multiple_agent/conf3_main.xml|3
abc=c:/simulator/multiple_agent/conf3_main.xml|4

 

Sample conf file for Linux and Solaris OS

 

aaa=/home/simulator/multiple_agent/confi4_main.xml|5
bbb=/advent2/sim_3_1/community_agents/config5_main.xml|6

 

Starting the SNMP Proxy Agent from Command Line

 

After creating the configuration file, start the command line SNMP Proxy Agent by executing the StartSnmpProxyAgent.bat/.sh found inside the <Simulator_Home>/bin/cmdline directory, with the following options :

Example

 

  StartSnmpProxyAgent.bat -pc conf.txt -p 8005 -ip 200.201.202.1

 

Testing the Proxy Agent Simulation

  1. Create the SNMP Agent Simulator configurations (minimum two set of configuration)  with different community names. The configuration must be created in SNMP Agent Simulator or Network Simulator..

  2. Create the conf file as specified in Creating the conf file. It must contain the details of the configuration file, created in Step 1.

  3. Start the SNMP Proxy Agent  with the required options . This will start the multiple SNMP agents with the specified configurations.

  4. Query the SNMP Proxy Agent from the manager with the required community name and port number. The proxy agent will forward the request to the appropriate SNMP agent and provide the response.



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