Using sample scripts for monitoring (Windows)


PATROL for Scripting enables you to use custom scripts to monitor your environment, and BMC provides some basic scripts to help you get started with the monitoring. You can create realistic and customizable scripts through an external scripting tool, and then configure them from a local or a remote computer and start the monitoring. For details about how to configure scripts, see Configuring remote scripts and Configuring local scripts.

This topic provides descriptions of the scripts that are provided by BMC and instructions for managing these scripts. For instructions about defining the script output, see Defining the script output.

Note

When executing scripts, the KM requires the same user privileges as a real user would. For example: if you would normally require administrator-level privileges to access the monitored application, the KM requires the same level of privileges to run a script on that application.

The following topics are presented:

Provided scripts

Click to view a short video on how to configure BMC sample scripts to monitor Windows components by using TrueSight console.

icon-play.png https://youtu.be/zyILsUJp-oQ

The following scripts are provided and cannot be deleted or replaced without administrator permissions:

To view the list of available scripts

Note

Script attributes of scripts provided by BMC do not support non-English characters.

  1. Navigate to %PATROL_HOME%\TROMS\Conf\Scripts\Samples.
  2. To modify the list, click the relevant column heading to sort the list based on a specific column. 
    To sort in reverse order, click the column heading again.

To add custom scripts

  • You can use scripts located from on your remote or local device. 
  • If the script does not exist on the remote device and is located on your local monitoring system, the script will be automatically copied to the Scripts folder. (%PATROL_HOME%\TROMS\Conf\Scripts\DeviceName or %PATROL_HOME%\TROMS\Conf\Scripts)

To delete scripts from the list

Note

You cannot delete default scripts that are delivered with PATROL for Script KM. 

  1. Navigate to %PATROL_HOME%\TROMS\Conf/Scripts\DeviceName or %PATROL_HOME%\TROMS\Conf\Scripts and delete the script(s) you wish to delete. 
  2. Select one or multiple scripts to delete and click the Delete button. 
  3. Click Yes in the confirmation message.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*