Documentation forKiwi CatTools

How to enter different commands onto each device for Device.CLI.Send

Configuring each of your selected devices in a different way can be achieved in two ways:

  1. Create an individual Device.CLI.Send commands activity for each device and set the commands to be entered for each 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.
    1. Use the Or, read commands from file option and specify the %BaseFile% value as part of the file name.
    2. Create a separate text file for each device that contains the commands you want to have entered into the config.

Example

  1. Specify a filename of C:\CatTools\%BaseFile%.txt. A list of devices might be:
    Device nameBase filenameConfig commands filename
    CiscoRouter1CiscoRouter1C:\CatTools\CiscoRouter1.txt
    CiscoRouter2CiscoRouter2C:\CatTools\CiscoRouter1.txt
    Sales SwitchSales_SwitchC:\CatTools\Sales_Switch.txt

    Any spaces and invalid characters are replaced by and underscore (_) in the base filename.

  2. 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:
  3. 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. CatTools automatically matches the correct text file with the device based on the %BaseFile% value.

    Any spaces and invalid characters are replaced by and underscore (_) in the base filename.

  4. 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
  5. Enter different commands in each text file and then run the activity. CatTools automatically matches the correct text file with the device based on the %BaseFile% value.