How to: Enter different commands onto each device
Previous  Top  Next


If you want to configure each of the selected devices in a different way, there are two ways to achieve this.

1. Create a separate Device.CLI.Send commands activity for each device and set the commands to be entered in the options tab.

This method involves having a separate scheduled activity for each device you want to modify.


2. Create a single Device.CLI.Send commands activity and select all the devices you want to modify. Then use the Or, read commands from file option and specify the %BaseFile% value as part of the file name. Then create a separate text file for each device that contains the commands you want to have entered into the config.

For example.

Specify a filename of C:\CatTools\%BaseFile%.txt

The list of devices might be...


Device name
Base filename
Config commands filename
CiscoRouter1
CiscoRouter1
C:\CatTools\CiscoRouter1.txt
CiscoRouter2
CiscoRouter2
C:\CatTools\CiscoRouter1.txt
Sales Switch
Sales_Switch
C:\CatTools\Sales_Switch.txt


* Note that any spaces and invalid characters are replaced by and underscore (_) in the base filename.

In each of the text files, enter a list of commands that you want to enter.

For example, in the file: C:\CatTools\CiscoRouter1.txt, enter the commands...

Interface s 0/0
Description New WAN link to head office
No shutdown

Enter different commands in each text file and then run the activity. Kiwi CatTools will automatically match the correct text file with the device based on the %BaseFile% value.