Pathway/iTS System Management Manual (G06.24+)
Examples of System Management Tasks
HP NonStop Pathway/iTS System Management Manual—426748-002
6-2
Configuring and Starting a Simple PATHMON
Environment (Task 1)
screen and server programs are intended as brief samples that are easy to use: brevity
and simplicity are emphasized more than standard design and coding practices. (The
screen program is written for terminals running in block mode. However, this program
could easily have been written for terminals operating in conversational mode.)
Steps 1 through 4 describe how to code and compile your source programs for the
application. Steps 5 through 11 describe how to configure, start, and stop your
PATHMON environment.
1. Code the screen program for the application. To do this, use your text editor to
create a source file named SC and enter the SCREEN COBOL code listed in
Example G-1 on page G-2.
2. Compile the screen program using the SCREEN COBOL compiler, as follows:
2> SCOBOLX /IN SC/
The compiler writes the object code, by default, to the files named POBJCOD and
POBJDIR in your current volume and subvolume.
3. Code the server program for the application. To do this, use your text editor to
create a source file named SV and enter the COBOL code listed in Example G-2
on page G-5.
4. Compile the server program using the COBOL85 compiler, directing the object
code output to a file named SVOBJ:
4> COBOL85 /IN SV/ SVOBJ
5. Using your text editor, create a file named COLD1 and enter the TACL commands
shown in Example 6-1:
You use this COLD1 file as a command file to configure your PATHMON
environment. The commands in the COLD1 file accomplish the following:
1. Create a log file named LOG1 for your PATHMON environment.
2. Create your PATHMON process, assign it the process name $AC1, and run its
primary process on CPU 1.
3. Start PATHCOM, which opens communication with your PATHMON process,
reads PATHCOM commands from a command file named CONFIG1, and
returns control to TACL.
4. Start PATHCOM again, so that you are prompted for a new PATHCOM
command.
Example 6-1. TACL Commands in the COLD1 File
PURGE LOG1
FUP CREATE LOG1,TYPE E, REC 132, EXT(100,100), MAXEXTENTS 100
PATHMON /NAME $AC1, CPU 1, OUT LOG1, NOWAIT/
PATHCOM /IN CONFIG1/ $AC1
PATHCOM $AC1