Command Script

<< Click to Display Table of Contents >>

Navigation:  ELM Console (MMC) > Viewing and Notifying > Filters and Methods Library > All Notification Methods >

Command Script

The Command Script Notification runs a script on the ELM Server.

The script runs in the security context of the account under which the ELM Server is running. The script can be a batch command script, an executable or command line application, or a script.

Event information is available to the command script through Environment Variables, allowing you to use information from the event, such as the computer name or the message details field in any batch files, scripts, or other programs.

ELM supports the Windows Script Host (cscript.exe), command line (cmd.exe), or any executable, including custom-written programs. To use another type of script (e.g., a Perl script, or PowerShell), enter the name of the script engine in the Type field (e.g., perl.exe, or powershell.exe).

Script Settings

Script Name - Enter a name for the script. The name is used for information purposes only.

Type - Select script engine processor executable filename. If the filename is in not the path of the account the ELM Server is running under, enter the full path to the executable file local to the ELM Server. If you are executing a VB Script, use cscript.exe. If you are executing a Perl script, enter perl.exe for Type. If you are using a custom program, enter the name of that executable file.

Timeout - Enter a value for the script. If the script does not complete within the timeout period, it will be considered a failed notification.

Script - Enter the text of the Script you want executed in this field. By default the field contains a sample script. The script text will be copied to a temporary file in the file system and then passed to the script engine as an argument on it's command line.

Use the Test button to test the script.

Caution
When you click the Test button, the script will be executed.

 

Scheduled Hours

The Schedule setting for this Notification. The Schedule allows you to control when the Notification is run.

Select the times that this Notification is active. By default, the schedule is set to ON for all hours and all days. Mouse clicks toggle each time period ON and OFF. Clicking on an individual square will toggle the active schedule for that hour. Clicking on an hour at the top of the grid, or on a day of the week at the left of the grid will toggle the entire column or row. Keyboard equivalents are the arrow keys and the space bar.