|
The Network Automation Wizard gives you the ability to automate the most common tasks performed by the network devices. You can configure tasks to be performed on any device in the network and set triggers to instigate each task. Based on the tasks configured, the simulator automatically generates scripts that schedule and trigger the activities. The automated network can be started from command line.
This feature eliminates repetitive jobs and is useful in test case automation. Scripts are automatically generated and hence no knowledge on scripting is required to automate the network.
Start Agent
The "Start Agent" action can be configured on a device to be executed periodically on a daily or hourly basis. The agent will be started at the specified time or the current time when the network automation is started and will repeatedly get executed on a hourly/daily basis.
Stop Agent
The "Stop Agent" action can be configured on a device to be executed periodically on a daily or hourly basis. The agent will be stopped at the specified time or at the current time when the network automation is started and will repeatedly get executed on a hourly/daily basis.
Send Traps
The "Send Trap" action can be configured on a device to be executed periodically on a daily or hourly basis. Only the traps that are configured in the Trap Configuration wizard can be automated. In case of multiple traps, the traps are identified based on the Associated Variable.
The traps will be sent at the specified time or at the current time when the network automation is started and will repeatedly get executed on a hourly/daily basis.
The steps to automate the given network :
Select Tools -> Automate Network option. The Automatic Network Configuration dialog is displayed.
Click Add to add the details of the actions to be performed. The Automation Wizard is displayed wherein you specify the actions to be performed, the time-interval and the device for which the configuration is made.
Select the required Action to be executed from the Action list box.
Select the Repeat parameter as either to repeat the actions hourly or daily and specify the time at which the action has to be performed. .
Select the device name from the list. All the devices in the network are displayed here.
If the Send Trap action is selected, the associated variable of all the traps configured in the Trap Configuration dialog is listed. Select the required Associated Variable.
Click OK to add the entry to the list. The text file in the name <networkname>.txt will be generated in the <SimulatorHome>/networks/<network name>/ directory. This file contains the configuration details. The same text file can be reloaded by the automation dialog and hence the actions can be changed as required.
To modify an entry in the list, select the entry to be modified and click Modify.
To delete an entry from the list, select the entry to be deleted and click Delete.
To run the automated network simulator execute StartAutomatedNetwork.bat/sh file in <SimulatorHome>/bin/cmdline directory, with the following options. All the options are mandatory
-net <network name>: The Network name in <SimulatorHome>/networks/ directory, that has to be started.
-txt <Auto Text file> : The text file in <SimulatorHome>/networks/<network name> which defines the way in which the network has to function
-time <specified/current>:
specified - If the actions are to be executed according to the timings specified in the text file,
current - Considers the present time as the time for executing the first action and executes all the actions continuously.
|
|
Note:
|
|