Automate the Network

 



 

Overview

 

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.

 

Actions that can be Automated

 

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.

 

Steps to Automate the Network

 

The steps to automate the given network :

  1. Select Tools -> Automate Network option. The Automatic Network Configuration dialog is displayed.

  2. 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.

  3. To modify an entry in the list, select the entry to be modified and click Modify.

  4. To delete an entry from the list, select the entry to be deleted and click Delete.

Running the Automated Network

 

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

Note:

  1. When the automated network is started, the text file is parsed and two script files are generated in <SimulatorHome>/networks/<network name> directory. These script files will be executed by the automated network.

    • <networkname>_day.py: This script file will be executed by the automated network for the daily activities.

    • <networkname>_hour.py: This script file will be executed by the automated network for hourly activities.

  1. Both the script files will be executed in separate threads.  

  2. In case of traps, only the traps configured in the UI can be automated.

 



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