Editing the OpenVMS Site-Specific Startup Command Procedure
To edit the OpenVMS site-specific startup command procedure:
1. In a terminal emulator, select the desired OpenVMS server and type the appropriate user name and password. Proceed to a DCL prompt.
2. To edit the Site-Specific Startup Command Procedure, type the following:
edit/edt SYS$MANAGER:SYSTARTUP_VMS.COM
and press Enter.
For VMS Version 5.3 to 5.5, type edit/edt SYS$MANAGER:SYSTARTUP_V5.COM
3. After the * prompt, type 1:END to go to the end of the file.
4. Observe the number of the line with the EXIT command, which is at the en or near the end of the file. For example:
273
$ EXIT
5. Add the new lines to the file just before the $ EXIT line. For example, if 273 is the EXIT command line, you would type the following:
* I 273 <Enter>
[inserts a new line before line 273 when 273 exists]
DEFINE /SYSTEM CNXRMSE0 SYS$COMMON:[CONNX]CNXRMSE0.COM
<Ctrl> <Z>
* I 273 <Enter> [for this and all subsequent new lines, you repeat
273]
DEFINE /SYSTEM CNXRDBE0 SYS$COMMON:[CONNX]CNXRDBE0.COM
<Ctrl> <Z>
* I 273 <Enter>
DEFINE /SYSTEM CNXDBME0 SYS$COMMON:[CONNX]CNXDBME0.COM
<Ctrl> <Z>
* I 273 <Enter>
DEFINE /SYSTEM CNXSVR SYS$COMMON:[CONNX]CNXSVR.COM
<Ctrl> <Z>
* I 273 <Enter>
DEFINE /SYSTEM CNXDIR SYS$COMMON:[CONNX]
* I 273 <Enter>
@CNXSVR START
<Ctrl> <Z>
* EXIT [to save edit] –or– * QUIT [to not save edit]
$
6. Check your work. With the $ prompt displayed, press the up arrow key to re-type the following command:
edit/edt SYS$MANAGER:SYSTARTUP_VMS.COM
and press Enter.
7. After the * prompt, type 1:END to go to the end of the file.
8. Observe that the lines you typed are correct. To delete a line, type:
d line
and press Enter.
9. To change the port number, which by default is set to 6500, include the following before the EXIT command line:
Define/System CNXRUNPORT nnnn
where nnnn is the new port number. If you change the port number on the server, you must also change it on each client machine. See TCP/IP Connection Port in CONNX Registry File Settings for more information on changing the port number on client machines.
10. Delete and retype lines as necessary. When finished, type EXIT to save the changes.
11. Disconnect from the session and close your terminal emulator.