Showing results for 
Search instead for 
Did you mean: 
Create Post

Modify Device.CLI.Send Commands output before saving / e-mailing

This script was originally developed for a customer who wanted to edit the output from the Device.CLI.Send Commands activity before it was e-mailed by CatTools to another member of his company.
The automated editting parsed the output into a suitable format for his colleague to use. This is a more generic example of the script to demonstrate the processes involved. You can easily customize it to suit your needs.

The below line should form the last entry in the list of commands for the Device.CLI.Send Commands activity.

%ctRunExternalScript("C:\Program Files\CatTools3\UserScripts\TrimCLIOutputFileGeneric.txt")

Alternatively it could entered in the below format;

%ctRunExternalScript("C:\Program Files\CatTools3\UserScripts\TrimCLIOutputFileGeneric.txt","password | keys")

Which will strip out any lines containing the words password or keys from the output. (Providing the appropriate sections in the script are uncommented.)

Please note that running external scripts is currently supported in the follwoing devices only;


For more information on running external scripts in CatTools see the link below;

Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎01-22-2009 12:00 AM
Updated by: