Pathway/XM System Management Manual

Managing a Pathway/XM Environment
Compaq NonStop™ Pathway/XM System Management Manual426761-001
7-6
Using PXMCOM in Noninteractive Mode
Using PXMCOM in Noninteractive Mode
If you are specifying lengthy configurations, you probably want to create a command
file or a TACL routine that contains your PXMCOM commands. This method permits
PXMCOM to read and act upon the commands very quickly.
You enter your PXMCOM commands into the command file before starting PXMCOM.
When you are ready to start PXMCOM, you specify the name of the file that you want
PXMCOM to read. A command file can be an IN file or an OBEY file: the only
difference lies in how you execute the file.
IN Command
You specify the IN command when you start PXMCOM. For example, the following
command starts PXMCOM and directs PXMCOM to read commands from a file named
PWCMD and list them on the device $S.#LP:
11> PXMCOM /IN PWCMD, OUT $S.#LP, CPU 1, NOWAIT/ SCTL1
When PXMCOM runs, it reads the configuration statements and executes them in
sequence. When it encounters an end of file it terminates.
OBEY Command
You specify the OBEY command from within PXMCOM. For example, the following
command directs PXMCOM to read commands from a command file named PWCMD:
8> PXMCOM SCTL1
PXMCOM - T0223D48 - (31MAR2000)
COPYRIGHT 2000 COMPAQ COMPUTER CORPORATION
>> OBEY PWCMD
Using DEFINEs
You can use DEFINEs to specify names for the files that PXMCOM uses directly as
command files. For example:
12> ADD DEFINE =CMD-FILE, CLASS MAP, FILE $DATA.PW.CONFIG
13> ADD DEFINE =OUT-FILE, CLASS SPOOL,LOC $S, REPORT “CONFIG”
14> PXMCOM/IN =CMD-FILE, OUT =OUT-FILE/ $PMX
In the preceding example, PXMCOM reads commands from the command file specified
by the DEFINE =CMD-FILE ($DATA.PW.CONFIG) and lists them on the device
specified by the DEFINE =OUT-FILE ($S).
For detailed information about DEFINEs, see the TACL Reference Manual and the
Guardian User’s Guide.
Logging Status and Error Information
At the beginning of your PXMCOM session, it is recommended that you establish
PXMCOM operational settings to allow automatic logging of information about your