Previous Topic: Creating a Dialog ScriptNext Topic: Understanding ENS


Using Scripts

A script is a sequence of monitor commands designed to perform a specific function. It allows a file containing valid monitor interface commands to be invoked at the monitor interface command line. You may want to set up scripts for use on several serviced systems. When you enter a command in the monitor interface that is not one of the valid monitor interface commands shown in the table in Monitor Interface Commands, earlier in this chapter, a file search is performed for a script file with the name you have entered. If a script file is found, each monitor interface command contained in it is executed as if you had entered it directly at the monitor interface command line.

The filename used for the script file is as follows:

CONSOLE$command.SCRIPT

Where command is the name you give to the file, and enter at the monitor interface command line.

The following example executes the file CONSOLE$SETUP.SCRIPT on a Console Manager host:

Command: SETUP

In this example, the CONSOLE$SETUP.SCRIPT could contain the following set of commands:

ONE (1)
VIEW PEPPER (2)
NEW (3)
VIEW SALT (4)
DIALOG DIALOG.TXT SALT (5)
  1. Set the monitor interface up with one log window.
  2. View the system PEPPER in the log window.
  3. Add a new log window to the display.
  4. View the system SALT in the new log window.
  5. Perform the dialog contained in the file dialog.txt to the system, SALT.