\ The Logical Operator I How it Works
Flow of Operation
Occasionally the programmable operator must send messages to another virtual
machine. To ensure that the programmable operator will function properly, a user
(a virtual machine other than the programmable operator virtual machine on the
local system or in a distributed system) is identified to the programmable operator
to receive these messages. This user is called the logical operator, as opposed to theCP system ·operator. When the programmable operator is started (in the CP sys
tem operator virtual machine, for example), the logical operator virtual machine
receives an initiation message. The logical operator also receives error messages
for severe errors, such as logging errors, and receives all messages routed to the log
ical operator explicitly or by default.
The programmable operator facility runs in a CMS virtual machine. Although it
can run in any virtual machine, because of its programmed capability to log, handle,
or redirect messages, it is most commonly run in theCP system operator's virtual
machine.
The programmable operator facility compares all messages directed to it against
entries listed in a routing table (a CMS file). When a match occurs, the prescribed
action is performed. Any messages that require a real operator's response or action
are sent on to the defined operator (system, network, etc.) at another virtual
machine console, a"logical" operator's console. If the logical operator's virtual
machine is in the same system, the programmable operator sends the messages with
either theCP MESSAGE or CP MSGNOH command. If the logical operator's vir
tual machine is in a different system (network node), a host system for example, it
sends the messages via RSCS Networking.
Consider this example:
TheSYSOPR macro in DMKSYS specifies the userid OPERI for the CP system
operator. Set up the programmable operator to run in theOPERI virtual machine
and establish another virtual machine with useridOPERX. In the routing table
file(s), specifyOPERX as the logical operator. Now any CP or user messages sent
to the system operator virtual machine can be handled or filtered by the program
mable operator or routed to useridOPERX. When the programmable operator facility is running in a virtual machine, CP inter
cepts all messages intended for that virtual machine console.CP then passes these
messages to the programmable operator facility viaIUCV. The messages are
logged in a CMS file. The programmable operator facility then uses the active rout
ing table to analyze the message and determine if further action is needed. Based
on the contents of the routing table (such as message texts, message types, and user
authorizations), the message can be passed to some specified action routine for fur
ther action. If the message is to be routed to the logical operator, and that person
is on another virtual machine in the same physical machine, the programmable
operator facility routes the message directly to the logical operator via the CPMSGNOH command or the CP MESSAGE command depending on the classifica
tion of the programmable operator virtual machine. If the logical operator is on a
different physical machine, the programmable operator facility prefaces the mes
sage with the appropriate tag information and sends the message to RSCS Net
working via theCP SMSG command.
The Programmable Operator Facility 423
Flow of Operation
Occasionally the programmable operator must send messages to another virtual
machine. To ensure that the programmable operator will function properly, a user
(a virtual machine other than the programmable operator virtual machine on the
local system or in a distributed system) is identified to the programmable operator
to receive these messages. This user is called the logical operator, as opposed to the
tem operator virtual machine, for example), the logical operator virtual machine
receives an initiation message. The logical operator also receives error messages
for severe errors, such as logging errors, and receives all messages routed to the log
ical operator explicitly or by default.
The programmable operator facility runs in a CMS virtual machine. Although it
can run in any virtual machine, because of its programmed capability to log, handle,
or redirect messages, it is most commonly run in the
machine.
The programmable operator facility compares all messages directed to it against
entries listed in a routing table (a CMS file). When a match occurs, the prescribed
action is performed. Any messages that require a real operator's response or action
are sent on to the defined operator (system, network, etc.) at another virtual
machine console, a
machine is in the same system, the programmable operator sends the messages with
either the
tual machine is in a different system (network node), a host system for example, it
sends the messages via RSCS Networking.
Consider this example:
The
operator. Set up the programmable operator to run in the
and establish another virtual machine with userid
file(s), specify
to the system operator virtual machine can be handled or filtered by the program
mable operator or routed to userid
cepts all messages intended for that virtual machine console.
messages to the programmable operator facility via
logged in a CMS file. The programmable operator facility then uses the active rout
ing table to analyze the message and determine if further action is needed. Based
on the contents of the routing table (such as message texts, message types, and user
authorizations), the message can be passed to some specified action routine for fur
ther action. If the message is to be routed to the logical operator, and that person
is on another virtual machine in the same physical machine, the programmable
operator facility routes the message directly to the logical operator via the CP
tion of the programmable operator virtual machine. If the logical operator is on a
different physical machine, the programmable operator facility prefaces the mes
sage with the appropriate tag information and sends the message to RSCS Net
working via the
The Programmable Operator Facility 423