Simulated agents are configured in the SIMULATOR_HOME/conf/devices.conf.xml file.
The initial version of the file (with a single agent running on port 163) is provided by the installation package.
Important | An alternate location of devices.conf.xml can be defined via SIMULATOR_CONFIG_FILE variable in simulator.conf. |
Each simulated agent is configured by a <device> tag. The <type> tag groups devices of the same type, i.e., having identical response file. A sample file is shown below:
<?xml version="1.0" encoding="UTF-8"?> <simulator.veraxsystems.com> <types> <type filepath="../device/cisco/cisco4900.txt"> <devices> <device ip="192.168.112.8" netmask="24" port="161"></device> </devices> </type> </type> </types> </simulator.veraxsystem.com>
The following type attributes are available:
Attribute | Meaning |
---|---|
filepath | Path to SNMP record file (it is recommended to use absolute path). In essence, the record files contain SNMP OIDs and response values for the simulated agents. On Windows, replace all “/” with “\\” in path specifications for a proper operation. Do not use file and directory names with space (‘ ‘) characters. |
The following device attributes are available:
Attribute | Meaning |
---|---|
ip | IP address for which the simulator will run simulated devices (defined as ranges or comma separated values), e.g., “127.0.0.1”. |
port | Port on which the simulator is listening for SNMP requests (make sure the port is not used any other applications such as the standard SNMP agent). If port is omitted the default value of 161 is used (the standard SNMP agent port). |
netmask | Network mask (integer representation), e.g., “24”. |