|
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 |
community name - Specify the agent community name. This will be used by the Proxy agent to forward the SNMP requests.
configuration file name with path - the configuration file <filename_mail.xml> which contains the simulated agent configurations of the agents. This file must be created using SNMP Agent Simulator or Network Simulator
agent id - a unique reference number
|
xxx=c:/simulator/multiple_agent/conf1_main.xml|1 |
Sample conf file for Linux and Solaris OS
|
aaa=/home/simulator/multiple_agent/confi4_main.xml|5 |
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 :
-pc <conf file name> : The conf file which contains the mapping information. This option is mandatory.
-p <port number> : The port number where the Proxy Agent must be started.
-ip <agent IP address> : The IP address of the Proxy Agent.
Example
|
StartSnmpProxyAgent.bat -pc conf.txt -p 8005 -ip 200.201.202.1 |
Testing the Proxy Agent Simulation
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..
Create the conf file as specified in Creating the conf file. It must contain the details of the configuration file, created in Step 1.
Start the SNMP Proxy Agent with the required options . This will start the multiple SNMP agents with the specified configurations.
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.
|