Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)
2. Identify and stop all applications currently using the OSS environment:
a. To identify all executing OSS processes, enter the OSS shell command:
ps -e
The output includes:
• The process file pathname (of the program file or shell script being run) so you can
probably map a specific process to an application
• The OSS process ID (PID) for each process
b. Perform application-specific procedures to stop each process, reentering the ps -e
command periodically to determine how many processes remain to shut down:
• If the application supports a shutdown command, use that command to stop all its
processes. This might involve Guardian PATHCOM or another command interpreter
instead of a command in the application itself.
• If the application does not support a shutdown command, its processes might have
been coded to terminate gracefully (performing data cleanup, normal file closes,
and state cleanup) when normal shutdown signals are received. Shutdown signals
can vary from application to application; however, the most commonly used signal
can be sent by entering the OSS shell command:
kill PID1 PID2 PID3 ...
where PID1, PID2, and PID3 are OSS process IDs displayed by the ps command.
To avoid specifying the individual PIDs, which can make command entry a lengthy
and potentially error-prone step, write an OSS shell script to extract the PID numbers
from the ps command output and pipe those numbers into the kill command.
• When an application process ignores normal shutdown signals, you can use force
shutdown by entering:
kill -s KILL PID1 PID2 PID3 ...
where PID1, PID2, and PID3 are OSS process IDs displayed by the ps command.
For more information about the ps and kill commands, see the ps(1) and
kill(1) reference pages either online or in the Open System Services Shell and
Utilities Reference Manual.
3. Stop all servers managed by the OSS Monitor by entering the following Subsystem Control
Facility (SCF) commands:
ASSUME PROCESS $ZPMON
STOP SERVER *
4. Stop (unmount) all filesets mounted on the root fileset and the root fileset itself by entering the
following SCF commands:
ASSUME PROCESS $ZPMON
STOP FILESET *
The wildcard form of the STOP FILESET command stops all filesets in the reverse of the order
that they were started (mounted).
48 Operating the OSS Environment