Interactive versus Batch Mode [ HP Performance Collection Software User's Manual (for MPE Systems) ] MPE/iX 5.0 Documentation
HP Performance Collection Software User's Manual (for MPE Systems)
Interactive versus Batch Mode
The UTILITY and EXTRACT programs can run either interactively, from a
terminal or terminal emulator connected to the HP 3000, or as unattended
batch jobs.
The command syntax is the same in either mode: a command followed by one
or more parameters. Parameters can be entered in any order; if a
parameter has a value associated with it, the value must be entered
immediately after the corresponding parameter.
There are two types of parameters--required parameters (for which there
are no defaults) and optional parameters (for which defaults are
provided). How Performance Collection Software handles these parameters
depends on the mode in which it is running.
Parameters in Interactive Mode
If an optional parameter is not provided in interactive mode, the program
will display the default parameter and let you either confirm it or
override it.
If a required parameter is not provided in interactive mode, the program
will prompt you to enter the parameter.
Parameters in Batch Mode
If an optional parameter is not provided in batch mode, the program will
use the Performance Collection Software default.
If a required parameter is not provided in batch mode, the program will
terminate. For lists of required program parameters, refer to chapters
3-5.
Example
The following example shows the differences between how the UTILITY
program's RESIZE command works in batch mode and in interactive mode.
The RESIZE command lets you set the following parameters:
* Type of log file to be resized.
* Size of new file.
* Amount of empty space to be left in file.
* An action.
The following command resizes the global log file so that it will contain
a maximum of 120 days of data with empty space equal to 45 days:
RESIZE GLOBAL DAYS=120 EMPTY=45 YES
The results will be the same whether you enter this command interactively
or from a batch job.
The first parameter--GLOBAL--indicates the type of log file data to be
resized. If you do not supply this parameter, the consequent action for
interactive and batch users would be the following:
* Batch users.
The batch job would terminate because this parameter has no
default.
* Interactive users.
You would be prompted to choose which type of log file data to
resize to complete the command.
The last parameter--YES--indicates that resizing will be performed
unconditionally. If you do not supply this parameter, the consequent
action for interactive and batch users would be the following:
* Batch users.
Resizing would continue as before since YES is the default action.
* Interactive users.
You would be prompted to supply the action before resizing takes
place.
Chapters 4 and 5 contain information about commands and parameters and
their defaults. You can also use the online HELP command to check
command syntax.
MPE/iX 5.0 Documentation