Bulk Addition of Scripts

 



 

Overview

 

In the topic "Configuring Network Behavior", you learned to set up the desired network environment by defining the behavior of SNMP and TL1 devices in the network. This is done by configuring Jypthon scripts for each device in the network. In some cases, it is necessary to define the same Behavior across all the devices in the network. This can be achieved through Bulk Addition of Scripts. This feature enables you to configure the same script file to the specified range of IP address in the network.  

 

Note:  This feature is supported only for SNMP Devices.

 

 

Configuring Bulk Addition of Scripts

 

The Network Designer provides an intuitive UI to configure bulk scripts. To invoke the dialog and configure bulk scripts, follow the steps given below:

Example for Request-Based Bulk Addition of Scripts

 

There are 20 devices in network_1 with IP address 192.168.1.1 to 192.168.1.20. The script file Sendv1Trap.py is configured for devices with ip address starting from 192.168.1.10 to 192.168.1.20. The condition to execute the script is "After processing a Get request on node sysUpTime of the RFC1213-Mib.

 

When a Get request is made on the node sysUpTime of RFC1213-MIB, the script file Sendv1Trap.py will be executed on the devices with IP address from 192.168.1.10 to 192.168.1.20.

 

Example for Timer-Based Bulk Addition of Scripts

 

There are 20 devices in network_1 with IP address 192.168.1.1 to 192.168.1.20. The script file Sendv1Trap.py is configured for devices with IP address starting from 192.168.1.10 to 192.168.1.20. The script is configured to be executed at the specified time. The option to execute the script on a periodical basis is selected with duration as once in 5 days.

 

The time interval is 5000 milliseconds and the number of times is 10.

 

Based on the above configuration, the script Sendv1trap.py will be executed at the specified time on the devices with ip address from 192.168.1.10 to 192.168.1.20. This configuration will generate 10 traps with a time interval of 5 seconds once in 5 days .

 

 



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