Technical data

Customizing the Operating System
5.2 Modifying Site-Specific Startup Command Procedures
Example
The following commands, executed in SYSTARTUP_VMS.COM, invoke SDA, save
and analyze the crash dump, and print a listing file:
$ ANALYZE/CRASH_DUMP SYS$SYSTEM:SYSDUMP.DMP
COPY SYS$SYSTEM:SAVEDUMP.DMP ! Save dump file
SET OUTPUT DISK1:SYSDUMP.LIS ! Create listing file
READ/EXECUTIVE ! Read in symbols for kernel
SHOW CRASH ! Display crash information
SHOW STACK ! Show current stack
SHOW SUMMARY ! List all active processes
SHOW PROCESS/PCB/PHD/REGISTERS ! Display current process
EXIT
5.2.7.9 Purging the Operator Log File
Each time you reboot the system, you create a new version of the operator log
file, OPERATOR.LOG. You should devise a plan for regular maintenance of the
versions of this file. Add the following command to SYSTARTUP_VMS.COM to
purge all but the last two versions of the operator log file:
$ PURGE/KEEP=2 SYS$MANAGER:OPERATOR.LOG
For more information about the operator log file, see Section 20.6.1.
5.2.7.10 Submitting Batch Jobs to Run at Startup Time
Your site might have batch jobs that you want to submit at system startup time.
To submit such batch jobs, add SUBMIT commands in the following format to
SYSTARTUP_VMS.COM:
$ SUBMIT [/qualier,...] SYS$MANAGER:le-spec
Example
The following example submits a batch job to run a command procedure each
time the system boots. The job is submitted at a high priority to make sure the
job is scheduled before any batch jobs users might submit. If possible, submit
startup batch jobs at high priority in this way before you start the batch queue.
$ SUBMIT/PRIORITY=255 SYS$MANAGER:SYSDISK_REBUILD
See Section 14.6.5.2 for information about scheduling of jobs. Refer to the
OpenVMS DCL Dictionary for information about the SUBMIT command.
5.2.7.11 Creating Systemwide Announcements
Usually, the last command in SYSTARTUP_VMS.COM announces to all terminals
that the system is up and running:
$ REPLY/ALL/BELL "OpenVMS Operating System at ANDROMEDA, INC. ready for use."
Before the procedure exits, you can provide site-specific definitions for one or
both of the logical names SYS$ANNOUNCE and SYS$WELCOME. Whenever
a user logs in, the user’s terminal screen displays the messages associated with
SYS$ANNOUNCE and SYS$WELCOME.
Defining SYS$ANNOUNCE
You can define SYS$ANNOUNCE to print an announcement at the beginning of
the login procedure for each user. The text prints immediately after a successful
dial-in, Ctrl/Y, or carriage return is received. It also prints on LAT terminals
when a user connects to a service using the CONNECT command. The text can
contain up to 63 characters. For longer messages, precede the name of a text-
containing file with an at sign (@) so that the login command procedure prints the
entire file as an announcement.
5–14 Customizing the Operating System