Library /sys$common/syshlp/sysmanhelp.hlb DO, Examples *Conan The Librarian (sorry for the slow response - running on an old VAX) |
1.SYSMAN> SET ENVIRONMENT/CLUSTER/NODE=NODE21 SYSMAN> DO/OUTPUT SHOW DEVICE The first command in this example defines the management environment to be the cluster where NODE21 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) - _SYSMAN> /DEFAULT=SYS$SYSTEM SYSMAN> DO INSTALL ADD /OPEN/SHARED WRKD$:[MAIN]STATSHR SYSMAN> DO MCR AUTHORIZE ADD JONES/PASSWORD=COLUMBINE - _SYSMAN> /DEVICE=WORK1 /DIRECTORY=[JONES] The first command in this example adds CMKRNL and SYSPRV privileges to the current profile because they are required by the INSTALL command and the AUTHORIZE command. 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 enables you to invoke the AUTHORIZE command from SYS$SYSTEM and add a record to the UAF in one command string. 3.SYSMAN> SET ENVIRONMENT/NODE=NODE21 SYSMAN> SET PROFILE /DEFAULT=[CJ.PROGRAMS] - _SYSMAN> /PRIVILEGES=NOSYSPRV SYSMAN> DO/OUTPUT @PROCESS_INFO The commands in this example define the environment as 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. 4.$ CREATE/NAME_TABLE/PARENT=LNM$SYSTEM_DIRECTORY SYSMAN$NODE_TABLE $ DEFINE/TABLE=SYSMAN$NODE_TABLE ALPHA_NODES NODE21,NODE22,NODE23 $ DEFINE/TABLE=SYSMAN$NODE_TABLE VAX_NODES NODE24,NODE25,NODE26 $ RUN SYS$SYSTEM:SYSMAN SYSMAN> SET ENVIRONMENT/NODE=ALPHA_NODES %SYSMAN-I-ENV, current command environment: Individual nodes: NODE21,NODE22,NODE23 Username BOUCHARD will be used on nonlocal nodes SYSMAN> DO INSTALL REPLACE SYS$LIBRARY:DCLTABLES.EXE %SYSMAN-I-OUTPUT, command execution on node NODE21 %SYSMAN-I-OUTPUT, command execution on node NODE22 %SYSMAN-I-OUTPUT, command execution on node NODE23 SYSMAN> DO INSTALL REPLACE SYS$SYSTEM: COM_FORTRAN.EXE %SYSMAN-I-OUTPUT, command execution on node NODE21 %SYSMAN-I-OUTPUT, command execution on node NODE22 %SYSMAN-I-OUTPUT, command execution on node NODE23 SYSMAN> SET ENVIRONMENT/NODE=VAX_NODES %SYSMAN-I-ENV, current command environment: Individual nodes: NODE24,NODE25,NODE26 Username BOUCHARD will be used on nonlocal nodes SYSMAN> DO INSTALL REPLACE SYS$LIBRARY:DCLTABLES.EXE %SYSMAN-I-OUTPUT, command execution on node NODE24 %SYSMAN-I-OUTPUT, command execution on node NODE25 %SYSMAN-I-OUTPUT, command execution on node NODE26 SYSMAN> DO INSTALL REPLACE SYS$SYSTEM:FORTRAN$MAIN.EXE %SYSMAN-I-OUTPUT, command execution on node NODE24 %SYSMAN-I-OUTPUT, command execution on node NODE25 %SYSMAN-I-OUTPUT, command execution on node NODE26 This example shows how you can define logical names for VAX and Alpha nodes in a dual-architecture heterogeneous cluster, so that you can use the DO command to install architecture- specific images. 5.$ MCR SYSMAN SYSMAN> SET ENVIRONMENT/CLUSTER %SYSMAN-I-ENV, current command environment: Clusterwide on local cluster Username STEIN will be used on nonlocal nodes SYSMAN> DO/CONFIRM SHOW TIME Execute command for node EXPERT? [N]: Y <Return> %SYSMAN-I-OUTPUT, command execution on node EXPERT 22-MAR-2000 09:40:28 Execute command for node MODERN? [N]: Y <Return> %SYSMAN-I-OUTPUT, command execution on node MODERN 22-MAR-2000 09:40:56 Execute command for node IMPOSE? [N]: N <Return> Execute command for node ADU26A? [N]: Y <Return> . . . The commands in this example show how to control whether the system displays time for each node in a cluster. 6.SYSMAN> DO/PAUSE SHOW TIME %SYSMAN-I-OUTPUT, command execution on node EXPERT 22-MAR-2000 09:40:13 Press return to continue <Return> %SYSMAN-I-OUTPUT, command execution on node MODER 22-MAR-2000 09:40:41 Press return to continue <Return> %SYSMAN-I-OUTPUT, command execution on node IMPOSE 22-MAR-2000 09:39:46 Press return to continue <Return> . . . The commands in this example show how you can control the rate at which information is displayed on your system.
|