MCR SYSMAN DO — VMS 5.0
DO [/OUTPUT=filespec] command-line Executes the given DCL command line on all systems in the previously set environment.
Additional information available:
command-linequalifiersexamples
command-line
This is any valid DCL command that will be executed on all systems previously selected with the SET ENVIRONMENT command. This command line may specify a command procedure. The output is framed by messages of the form "%SYSMAN-I-DATA Output From Node xxxxxx".
qualifiers
Additional information available:
/OUTPUT
/OUTPUT[=filespec] Specifies that the output from the execution of this command is to written to the file specified, or to "[default_directory]SYSMAN.LIS" if no filespec is given.
examples
SYSMAN> DO show users
This command issues a the "SHOW USERS" on each selected node, and
returns output as shown below:
%SYSMAN-I-OUTPUT, command execution on node PARIS
VAX/VMS Interactive Users
8-OCT-1987 09:50:43.05
Total number of interactive users = 1
Username Process Name PID Terminal
VANGOGH Vincent 3AA000A1 VTA1: LTA1:
%SYSMAN-I-OUTPUT, command execution on node ROME
VAX/VMS Interactive Users
8-OCT-1987 09:50:45.84
Total number of interactive users = 2
Username Process Name PID Terminal
FERRARI Enzio 3A800168 VTA4: LTA3:
CELESTE Mama 3A800165 RTA1:
%SYSMAN-I-OUTPUT, command execution on node LONDON
VAX/VMS Interactive Users
8-OCT-1987 09:50:47.83
Total number of interactive users = 0
SYSMAN> set profile/privilege=sysnam
SYSMAN> do define/system documents user$disk:[docs]
These commands set SYSNAM privilege for the user on the selected
nodes, and then defines a system logical DOCUMENTS on all selected
systems. This command produces the output shown below:
%SYSMAN-I-OUTPUT, command execution on node LONDON
%SYSMAN-I-OUTPUT, command execution on node PARIS
%SYSMAN-I-OUTPUT, command execution on node ROME