|
The Network Simulator provides the option to define your own IOS Commands and add the required script files to a device in the device tree. New IOS commands cannot be added to individual devices in the network area or to devices in the template tree.
The script files can be defined using the SNMP and CLI script API methods provided in the scriptinterface. The CLI and SNMP script API methods are provided under <simulator home>/examples/javadocs directory. The name of the Script API file is CLI_SimScrIntf.html
1. Right-click on the CLI device in the device tree and select the option IOS Command Configurator. The IOS Script Configuration dialog is displayed, wherein you have to specify the device details and command details.
Specifying Device Details
The name of the selected device, database name and the configuration name is displayed and is not configurable.
Specify any of the following options
Add command to device only : Adds the IOS command only to the selected device type in the device tree.
Add command to selected network: Adds the IOS commands to the devices of same type, in the network selected in the network tree.
Specifying Command Details
Mode : Select the command mode in which the IOS command must be added, from the list displayed.
Command : Specify the exact command to be added. For example : route <WORD>, host <Hostname or A.B.C.D> <WORD>, snmp-server community <WORD>
Command Description : Specify the description of the command
Script File : Browse and select the script file to be configured for the command.
2. Click Add to add the command to the device in the device tree.
|