This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Report on drops errors on interfaces

The purpose of this script is to compile a list of the 'Total output drops' on the device interfaces as this data is not currently included in the error report table.

It works in the following way;
Create a Device.CLI.Send Commands activity. On the option tab in the drop down list box select 'Include output as body text'.
In the commands box enter the following commands;
Show interface
%ctRunExternalScript("C:\Program Files\CatTools3\UserScripts\ParseCLIOutputDrops.txt)

When the activity runs the output from the 'show int' command is stored in a local file which this script then parses to strip out the interfaces and the number of drops on the interface.

If you only want to report on interfaces where the number of drops is above a certain threshold level then this can be included as a variable in the function call. The example below will only report on interfaces where the number of drops is greater than 0.
%ctRunExternalScript("C:\Program Files\CatTools3\UserScripts\ParseCLIOutputDrops.txt,"0")

The basic principle could be modified to obtain other specific items of data as required.

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

Aruba.ArubaOS.General
Cisco.Router.General
Cisco.Switch.IOS


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

http://www.kiwisyslog.com/help/cattools/act_devclisendcmd_runextscrpt.htm

ErrorDrops.zip