NET/MASTER Network Control Language (NCL) Programmer's Guide

Overview of System-Level NCL Procedures
Developing System-Level NCL Procedures
17–4 106160 Tandem Computers Incorporated
NonStop NET/MASTER MS system. Accordingly, LOGPROC can act as a central
intelligence point to monitor events directed to the activity log. The procedure can
observe and react to unusual or critical conditions, and provide a platform for
automatic recovery action.
Defining a LOGPROC NCL Procedure
The SYSPARMS LOGPROC command is used to specify the name of a new LOGPROC
NCL procedure and to flush an existing LOGPROC NCL procedure. When defining a
new LOGPROC, the name you specify does not have to be LOGPROC; if it is not
LOGPROC, however, it is still referred to as LOGPROC or as a LOGPROC procedure.
The following command defines a LOGPROC procedure called LOGPROCA:
SYSPARMS LOGPROC=LOGPROCA
You can use the SHOW SYSPARMS command to display the name of the current
LOGPROC NCL procedure. You can use the STATUS command to determine
whether LOGPROC is running and the name of the current activity log file. The
following screen displays the name and status of LOGPROC and the name of the
current activity log file:
(14:21) --------------------- OPERATOR CONTROL SERVICES ----------------------
SYSPARMS LOGPROC=LOGPROCA
NNM0604 SYSPARMS LOGPROC=LOGPROCA OPERAND ACCEPTED
SHOW SYSPARMS=LOGPROC
NNM0601 SYSPARMS VALUE
NNM0602 LOGPROC LOGPROCA
NNM0999 *END*
STATUS
NNM0608 SYSTEM STATUS AS AT 14:21:16
NNM0608 NONSTOP KERNEL VERSION: D30
NNM0608 SYSTEM STATE: RUNNING
NNM0608 SYSTEM WAS INITIALISED ON WED 18-MAY-1994 AT 07:12:20
NNM0608 SYSTEM NAME: \SYS1
NNM0608 SYSTEM DOMAIN ID: SYS1
NNM0608 SYSTEM ID: SYS1
NNM0608 SYSTEM NETNAME: SYS1
NNM0608 CONTROL PROCESS NAME: $INNM, CPUS: 03 --
NNM0608 CONTROL PROCESS OBJECT FILE: $DATA4.INNM.NCP
NNM0608 CONTROL PROCESS HOMETERM: $TRM0.#A
NNM0608 CURRENT ACTIVITY LOG FILE = $DATA4.ZNNMDATA.ILGFILE1
NNM0608 LOGPROC LOGPROCA IS LOADED
NNM0608 EMSPROC EMSPROCA IS LOADED
AUTO HOLD ------------------ NonStop NET/MASTER D30 ---------------- --------
=>
Verbs Used by LOGPROC to Process Messages
LOGPROC uses the following three verbs to read, forward, and delete the messages it
receives. Only a LOGPROC NCL procedure can use these verbs. These verbs are
discussed later in this section.
LOGREAD
LOGCONT
LOGDEL