NonStop S-Series Operations Guide (G06.29+)
Starting and Stopping the System
HP NonStop S-Series Operations Guide—522459-009
16-24
Use Parallel Processing
Multiple-line commands in a command file increase execution time. By using single-
line commands, you can reduce the time required to execute a command file.
Avoid Manual Intervention
Write startup and shutdown files so that they execute correctly without requiring
manual intervention. Any time an operator must intervene, startup and shutdown time
increase. In addition, operator invention increases the possibility of human error that
could further delay startup and shutdown.
Use Parallel Processing
Using parallel processing can shorten the time required to start up or shut down your
system or application because startup and shutdown processes are distributed
throughout the processors in your system.
As an example, the following SCF command file uses parallel processing in four
processors to start several communications lines. The files START0, START1,
START2, and START3 contain the actual commands that start the communications
lines.
This command file uses a special technique intended to ensure that each process gets
started even if a given processor is out of service. The technique is to start each
process in two processors. If the first processor is down, the command file continues
to the next processor. If the first processor is up, and the process is started, the
command file still continues to the next processor but fails because the process name
($Sn) is in use by the process that was successfully started. As a result, a specified
process is started in whichever processor is running. Of course, if neither processor is
up, the attempt to start the process fails.
SCF /IN START0, NOWAIT, CPU 0, NAME $S0/
SCF /IN START0, NOWAIT, CPU 2, NAME $S0/
SCF /IN START1, NOWAIT, CPU 1, NAME $S1/
SCF /IN START1, NOWAIT, CPU 3, NAME $S1/
SCF /IN START2, NOWAIT, CPU 2, NAME $S2/
SCF /IN START2, NOWAIT, CPU 0, NAME $S2/
SCF /IN START3, NOWAIT, CPU 3, NAME $S3/
SCF /IN START3, NOWAIT, CPU 1, NAME $S3/
When using the technique shown in this command file, make sure to spread the
process workload across all available processors. If there are too many processes to
start in processors 0 and 1, queuing and memory-contention problems can result. For