Executing Local Commands
You can execute a user-defined local command on selected events by running a user-defined script.
The script will be run one time for each event that is selected.
The event's attributes are passed on to the script as environment variables. The name of the
attribute environment variables can be referenced by using the non-formatted attribute name.
The full list of non-formatted attribute names is contained in the SLOTS environment variable, which
is passed on to the script.
Perform the following steps to execute a local command:
- From the Event Viewer, click
Selected > Local Command from the pull-down menu.
A file browser dialog box titled Run is displayed. You may optionally right-click
in the event table in the Event Viewer dialog box and select Local Command.
- From the Run dialog box, use the file browser to browse to the location of the script to execute.
- Click Run to run the script.
Assumptions and Prerequisites:
- Windows NT will only execute files with .exe, .cmd, .bat
extensions.
- To prevent errors, it is preferable to use the file browser dialog box to select the script name.
See Also
- The IBM Tivoli Enterprise Console Command and Task Reference for details about environment variables
available to tasks