TS/MP Release Supplement

Introduction to PDMCOM
HP NonStop TS/MP Release Supplement546055-006
4-4
Using PDMCOM in Noninteractive Mode
TACL Routines
The TACL INLINE facility enables you to incorporate PDMCOM commands into a
TACL routine to manage multiple PATHMON environments. The following example
displays a few lines from a TACL routine that shuts down two PATHMON processes:
.
.
PDMCOM/inline,cpu 1/
[#loop |do|
#set count [#compute [count] + 1 ]
#OUTPUT OPENING $PM[COUNT]
+ open $PM[count]
+ shutdown2,mode im
#OUTPUT SHUTDOWN $PM[COUNT]
|until| [count] >= 2 ]
.
.
Using DEFINEs
You can use DEFINEs to specify names for the files that PDMCOM uses directly as
command files. For example:
12> ADD DEFINE =CMD-FILE,CLASS MAP,FILE$DATA.PW.CONFIG
13> ADD DEFINE =OUT-FILE,CLASS MAP,FILE$DATA.PW.OUTPUT
14> PDMCOM/IN =CMD-FILE,OUT =OUT-FILE/
In the preceding example, PDMCOM reads commands from the command file
specified by
DEFINE =CMD-FILE ($DATA.PW.CONFIG)
and lists them in the file specified by the
DEFINE =OUT-FILE($DATA.PW.OUTPUT).