MCR SYSMAN DO — VMS 5.4-3
Executes a DCL command or DCL command procedure on all nodes in
the current environment.
Requires the privileges of the DCL command being executed.
Format
DO [command-line]
Additional information available:
Parameter
command-line Specifies a command string that SYSMAN passes to the DCL for execution. For complete information on DCL command syntax, refer to the VMS DCL Dictionary.
Qualifier
Additional information available:
/OUTPUT
/OUTPUT[=filespec]
Records output from the command in the specified file, which is
located on the node from which you are executing SYSMAN. Position
the qualifier immediately after the DO command. The default file
specification is SYSMAN.LIS in the current device and directory.
SYSMAN prefaces output with the message "%SYSMAN-I-OUTPUT, command
execution on node xxxxxx."
Examples
1. SYSMAN> SET ENVIRONMENT/CLUSTER/NODE=NONAME
SYSMAN> DO/OUTPUT SHOW DEVICE
The first command in this example defines the management
environment to be the cluster where NONAME is a member. The
second command executes a DCL command on each node in the
cluster. Output goes to the file SYSMAN.LIS rather than to the
terminal.
2. SYSMAN> SET PROFILE /PRIVILEGES=(CMKRNL,SYSPRV) /DEFAULT=SYS$SYSTEM
SYSMAN> DO INSTALL ADD /OPEN/SHARED WRKD$:[MAIN]STATSHR
SYSMAN> DO MCR AUTHORIZE ADD JONES/PASSWORD=COLUMBINE/DEVICE=WORK1 -
_SYSMAN> /DIRECTORY=[JONES]
The first command in this example adds CMKRNL and SYSPRV
privileges to the current privileges because they are required
by the INSTALL and the AUTHORIZE utility. The next command
installs the file STATSHR. The last command sets up an account
for user JONES, specifying a password as well as a default
device and directory.
The MCR command in the last line of the example allows you to
invoke the Authorize Utility from SYS$SYSTEM and add a record
to the UAF in one command string.
3. SYSMAN> SET ENVIRONMENT/NODE=LONDON
SYSMAN> SET PROFILE /DEFAULT=[CJ.PROGRAMS] /PRIVILEGES=NOSYSPRV
SYSMAN> DO/OUTPUT @PROCESS_INFO
The commands in this example define the environment to be a
single node and adjust the current privileges and directory.
The DO command executes the command procedure PROCESS_INFO.COM,
located in directory [CJ.PROGRAMS] and writes any output to
SYSMAN.LIS in the directory from which SYSMAN is running.