2.4 Using OPCOM to Communicate with System Users
The operator communication manager (OPCOM) is a tool
for communicating with users and operators on the system.
OPCOM allows you to perform the following functions.
Function
For More
Information
Section 2.4.4
To record messages broadcast by OPCOM in a log
file
Section 18.6.3
To send requests to an operator
1
Section 2.4.5
To reply to operator requests
Figure 2-2 illustrates the function of OPCOM.
Component Description
For
More
Information
Section 2.4.1
Operator terminals Terminals designated to display messages
broadcast by OPCOM. Usually, the console
terminal (with the device name OPA0:) is
the operator terminal. However, you can
designate any user terminal as an operator
terminal.
Section 2.4.4
Operator log file A file that records messages broad-
cast by OPCOM. The file is named
SYS$MANAGER:OPERATOR.LOG.
Section 18.6
OPCOM messages Messages broadcast by OPCOM. These mes-
sages are displayed on operator terminals
and written to the operator log file. The mes-
sages might be general messages sent by
you, user requests, operator replies, or system
events.
Section 18.6.2
REPLY and REQUEST
commands
DCL commands that allow you to use and
control OPCOM.
Section 2.4.2,
Section 2.4.5,
and
Section 2.4.6
OPCOM Defaults
OPCOM uses the following defaults:
.
OPCOM is started by default on all systems.
.
Except for workstations in a VMScluster environ-
ment, OPCOM logs messages to OPA0:, which is en-
abled by default as an operator terminal. The log file
SYS$MANAGER:OPERATOR.LOG is opened, and all
OPCOM classes are enabled on both the operator termi-
nal and the log file.
Section 2.4.3 explains how to control the use of OPA0: as
an operator terminal. Section 18.6.3.2 explains how to
specify the default state of operator log files.
OPCOM Requirements
OPCOM has the following requirements:
.
To execute an OPCOM REPLY command, OPCOM
must be running, and you must enter the REPLY com-
mand from a terminal device designated as an operator
terminal.
.
The OPCOM REPLY command requires at least OPER
privilege. You must have SHARE privilege if another
process is logged in to the designated operator terminal.
To enable or disable the security class, you must have
SECURITY privilege.
.
To designate an operator terminal in batch or SYSTARTUP,
you must assign SYS$COMMAND to a valid terminal
device.
2.4.1 Starting OPCOM
The OPCOM process must be running to execute the
OPCOM REPLY command. The OPCOM process starts
automatically during system startup, unless it is disabled. You
might need to start OPCOM interactively if a software prob-
lem causes the process to fail and prevents OPCOM from
restarting automatically.
To start OPCOM, enter the following command from the
system manager's account (SYSTEM):
$ @SYS$SYSTEM:STARTUP OPCOM
If a software problem causes OPCOM to fail, submit
a software problem report (SPR) to report the prob-
lem to Digital. Include the process dump file named
SYS$SYSTEM:OPCOM.DMP. When OPCOM fails, it cre-
ates this file to allow Digital representatives to determine the
cause of the failure.
2.4.2 Sending Messages to Users
To broadcast a message to users, enter the REPLY command
as follows:
REPLY [/qualifier...] ["message-text"]
For example:
$ REPLY/ALL/BELL "Please log off"
Use the following qualifiers to control OPCOM messages:
Broadcasts the message to the speci-
fied terminals.
/URGENT Broadcasts a message beginning
``URGENT...''; if used with the
/BELL qualifier, rings two bells at
terminals receiving the message.
/USERNAME=( username [,...]) Broadcasts a message to all termi-
nals at which users are logged in
to the system (or VMScluster), or
only to the terminals of the specified
users.
For more information, see the OpenVMS DCL Dictionary .
The REPLY command in the following example sends a
message to the user logged in at terminal TTC1. When the
message is displayed, a bell rings at that terminal.
$ REPLY/BELL/TERMINAL=TTC1: "Your file has completed printing"
2.4.3 Controlling the Use of OPA0: as an Operator
Terminal
You can control the use of OPA0: as an operator terminal,
whether or not the node is part of a VMScluster system, by
defining the following logicals in SYS$MANAGER:SYLOGICALS.COM:
Logical Name Function
The logicals take effect the next time you boot the system.
Enabling Operator Terminals
To designate a terminal as an operator terminal, enter the
REPLY/ENABLE command at the terminal. For example:
$ REPLY/ENABLE
$
%%%%%%%%%%% OPCOM 13-JUL-1995 11:30:30.56 %%%%%%%%%%%
Operator _BHAK$FTA20: has been enabled, username SYSTEM
The REPLY/ENABLE command requires OPER privilege.
If your facility is very large, there may be several operators,
each of whom is assigned to specific tasks. If this is the case,
you can specify the classes of messages the operator termi-
nal receives and responds to when you enable the operator
terminal, as follows:
REPLY/ENABLE=(class[,...])
The following table describes each class of messages:
For example:
$ REPLY/ENABLE=(PRINTER,OPER3)
Disabling Operator Terminals
A terminal that you designate as an operator's terminal
remains enabled even when the operator logs out. To re-
turn the terminal to normal (nonoperator) status, enter the
REPLY/DISABLE command from the terminal.
Example
The following example designates terminal TTA3 as an op-
erator terminal, enabling it to receive messages concerning
printers, magnetic tapes and disks, and messages intended for
the central operator. Later, it relinquishes terminal TTA3's
ability to receive messages concerning tapes. The terminal
still receives and can respond to messages about disks and
printers and messages directed to CENTRAL.
$ REPLY/ENABLE=(PRINTER,DISKS,TAPES,CENTRAL)
$
%%%%%%%%%%% OPCOM 13-JUL-1995 11:37:09.52 %%%%%%%%%%%
Operator TTA3 has been enabled, username SYSTEM
$
%%%%%%%%%%% OPCOM 13-JUL-1995 11:37:09.53 %%%%%%%%%%%
Operator status for operator TTA3
CENTRAL, PRINTER, DISKS, TAPES
$ REPLY/DISABLE=TAPES
%%%%%%%%%%% OPCOM 13-JUL-1995 11:37:09.53 %%%%%%%%%%%
Operator status for operator TTA3
CENTRAL, PRINTER, DISKS
$ REPLY/DISABLE
%%%%%%%%%%% OPCOM 13-JUL-1995 11:38:50.68 %%%%%%%%%%%
Operator TTA3 has been disabled, username SYSTEM
2.4.5 Sending Requests to an Operator
In sites where operators are assigned to assist users by
mounting volumes and changing printer forms, users can
communicate with operators by entering REQUEST com-
mands and the following qualifiers:
Qualifier Description
The DCL commands MOUNT/ASSIST and BACKUP/ASSIST
also request operator assistance. For more information, see
the following sections:
.
For MOUNT requests, see Section 8.5.3.
.
For BACKUP requests, see Section 10.9.1.
Example
Assume an operator is monitoring an operator terminal
enabled for the PRINTER class. The following PRINT com-
mand submits an output job that requires a special print
form (/FORM=LETTER). The REQUEST command sends
a message to the operator. After completing the request, the
operator would send a reply, as explained in Section 2.4.6.
$ PRINT/COPIES=2/QUEUE=LQ_PRINT REPORT.OUT/FORM=LETTER
Job REPORT (queue LQA1, entry 401) pending
$ REQUEST/REPLY/TO=PRINTER -
_$ "Have queued job 401 as FORM=LETTER; can you print it?"
%OPCOM-S-OPRNOTIF, operator notified, waiting...10:42:16.10
%OPCOM-S-OPREPLY, AFTER 11:00
19-APR-1995 10:25:32.40, request 3 completed by operator OPA0
2.4.6 Replying to Operator Requests
In sites where operators are assigned to assist users by
mounting volumes and changing printer stock, operators can
reply to user requests using REPLY commands. Operators
can use the following qualifiers:
Qualifier Description
Replies to the request specified by the identifica-
tion number and cancels the request.
/PENDING Replies to the request specified by the identifica-
tion number and prevents the user from entering
other commands until the operator fulfills or
aborts the request. The current terminal must be
enabled as an operator terminal.
/STATUS Reports which classes are enabled, and all out-
standing user requests for the terminal from
which this command was entered. The cur-
rent terminal must be enabled as an operator
terminal.
/TO= id-number Replies to the request specified by the identifi-
cation number and completes the request. The
current terminal must be enabled as an operator
terminal.
Note that you can also use a variation of the
REPLY/TO command in response to a MOUNT
/ASSIST and BACKUP/ASSIST commands.
For more information, see Section 8.5 and
Section 10.9.1.
An operator working with magnetic tapes would also use ad-
ditional REPLY qualifiers specific to magnetic tape operations.
For more information, see Section 8.8.2.4. For detailed infor-
mation on the REPLY command and its qualifiers, see the
OpenVMS DCL Dictionary .
Example
In the following example, the REPLY/TO command replies to
operator request number 5, issued by user ROBINSON. The
MOUNT device is switched to DUA4, and the user is notified.
%%%%%%%%%% OPCOM, 19-APR-1995 10:20:50.39 %%%%%%%%%%%
request 5 from user ROBINSON
Please mount volume GRAPHIC_FILES in device _DUA11:
Shelf 4 - slot B
$ REPLY/TO=5 "SUBSTITUTE DUA4"