Difference between revisions of "Rename OpenVMS Node"

From VSI OpenVMS Wiki
Jump to: navigation, search
(How to change OpenVMS host name)
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Rename OpenVMS node
 
Rename OpenVMS node
 +
 +
 
1. Edit systartup_vms.com to disable starting sys$batch.
 
1. Edit systartup_vms.com to disable starting sys$batch.
EDIT SYS$LOGIN:SYSTARTUP_VMS.COM
+
 
 +
EDIT SYS$MANAGER:SYSTARTUP_VMS.COM
 +
 
 
• Look (F1) for sys$batch and comment out
 
• Look (F1) for sys$batch and comment out
$ START /QUEUE SYS$BATCH
+
 
 +
$ START /QUEUE SYS$BATCH
 +
 
 
• to look like
 
• to look like
$! START /QUEUE SYS$BATCH
+
 
 +
$! START /QUEUE SYS$BATCH
 +
 
 
• ctrl-z
 
• ctrl-z
 +
 
• This is necessary for systartup_vms.com not to crash when the queue is missing.
 
• This is necessary for systartup_vms.com not to crash when the queue is missing.
 +
 
2. Remove all queues, like sys$batch.
 
2. Remove all queues, like sys$batch.
STOP/QUEUE/NEXT SYS$BATCH
+
 
DELETE/QUEUE SYS$BATCH
+
STOP/QUEUE/NEXT SYS$BATCH
3. Modify SCSNODE value in modparams.dat and run autogen.com.
+
 
EDIT SYS$SYSTEM:MODPARAMS.DAT
+
DELETE/QUEUE SYS$BATCH
 +
 
 +
3. Modify SCSNODE and SCSSYSTEMID values in modparams.dat and run autogen.com.
 +
 
 +
EDIT SYS$SYSTEM:MODPARAMS.DAT
 +
 
 
• ctrl-z
 
• ctrl-z
@DKA0:[VMS$COMMON.SYSUPD]AUTOGEN
+
 
 +
@DKA0:[VMS$COMMON.SYSUPD]AUTOGEN
 +
 
 
4. Rename node.
 
4. Rename node.
RUN SYS$SYSTEM:SYSGEN
+
 
SHOW SCSNODE
+
RUN SYS$SYSTEM:SYSGEN
SET SCSNODE “NEWNAME”
+
 
WRITE CURRENT
+
SHOW SCSNODE
EXIT
+
 
 +
SET SCSNODE “NEWNAME”
 +
 
 +
WRITE CURRENT
 +
 
 +
EXIT
 +
 
 
5. Rename identifier sys$node_oldname to sys$node_newname.
 
5. Rename identifier sys$node_oldname to sys$node_newname.
RUN SYS$SYSTEM:AUTHORIZE
+
 
RENAME/IDENTIFIER SYS$NODE_OLDNAME SYS$NODE_NEWNAME
+
RUN SYS$SYSTEM:AUTHORIZE
EXIT
+
 
 +
RENAME/IDENTIFIER SYS$NODE_OLDNAME SYS$NODE_NEWNAME
 +
 
 +
EXIT
 +
 
 
6. Reboot.
 
6. Reboot.
REBOOT
+
 
7. After the reboot, log in via serial console and configure TCPI/IP.
+
REBOOT
@SYS$LOGIN:TCPIP$CONFIG
+
 
 +
7. After the reboot, log in via serial console and configure TCP/IP.
 +
 
 +
@SYS$LOGIN:TCPIP$CONFIG
 +
 
 
• Follow the menus, best to configure options 1-4 by pressing “A”
 
• Follow the menus, best to configure options 1-4 by pressing “A”
• Do not start TCP/IP until it is fully confirued.
+
 
 +
• Do not start TCP/IP until it is fully configured.
 +
 
 
• Enable ssh client and server.
 
• Enable ssh client and server.
 +
 
8. Log in via ssh and ctrl-t to test new name. Recreate batches like sys$batch.
 
8. Log in via ssh and ctrl-t to test new name. Recreate batches like sys$batch.
INIT/QUEUE/BATCH SYS$BATCH
+
 
EDIT SYS$LOGIN:SYSTARTUP_VMS.COM
+
INIT/QUEUE/BATCH SYS$BATCH
 +
 
 +
EDIT SYS$MANAGER:SYSTARTUP_VMS.COM
 +
 
 
• Look (F1) for sys$batch and uncomment the line
 
• Look (F1) for sys$batch and uncomment the line
$! START /QUEUE SYS$BATCH
+
 
 +
$! START /QUEUE SYS$BATCH
 +
 
 
• to look like
 
• to look like
$ START /QUEUE SYS$BATCH
+
 
 +
$ START /QUEUE SYS$BATCH
 +
 
 
• ctrl-z
 
• ctrl-z

Latest revision as of 08:15, 13 April 2023

Rename OpenVMS node


1. Edit systartup_vms.com to disable starting sys$batch.

EDIT SYS$MANAGER:SYSTARTUP_VMS.COM

• Look (F1) for sys$batch and comment out

$ START /QUEUE SYS$BATCH

• to look like

$! START /QUEUE SYS$BATCH

• ctrl-z

• This is necessary for systartup_vms.com not to crash when the queue is missing.

2. Remove all queues, like sys$batch.

STOP/QUEUE/NEXT SYS$BATCH
DELETE/QUEUE SYS$BATCH

3. Modify SCSNODE and SCSSYSTEMID values in modparams.dat and run autogen.com.

EDIT SYS$SYSTEM:MODPARAMS.DAT

• ctrl-z

@DKA0:[VMS$COMMON.SYSUPD]AUTOGEN

4. Rename node.

RUN SYS$SYSTEM:SYSGEN
SHOW SCSNODE
SET SCSNODE “NEWNAME”
WRITE CURRENT
EXIT

5. Rename identifier sys$node_oldname to sys$node_newname.

RUN SYS$SYSTEM:AUTHORIZE
RENAME/IDENTIFIER SYS$NODE_OLDNAME SYS$NODE_NEWNAME
EXIT

6. Reboot.

REBOOT

7. After the reboot, log in via serial console and configure TCP/IP.

@SYS$LOGIN:TCPIP$CONFIG

• Follow the menus, best to configure options 1-4 by pressing “A”

• Do not start TCP/IP until it is fully configured.

• Enable ssh client and server.

8. Log in via ssh and ctrl-t to test new name. Recreate batches like sys$batch.

INIT/QUEUE/BATCH SYS$BATCH
EDIT SYS$MANAGER:SYSTARTUP_VMS.COM

• Look (F1) for sys$batch and uncomment the line

$! START /QUEUE SYS$BATCH

• to look like

$ START /QUEUE SYS$BATCH

• ctrl-z