Open System Services Management and Operations Guide (G06.30+, H06.08+, J06.03+)

5. After the last fileset stops, stop the OSS Monitor process:
If the OSS Monitor is running as a standard process, enter the following at a TACL prompt:
STOP $ZPMON
If the OSS Monitor is running as a persistent process, enter the following at an SCF
prompt:
ABORT PROCESS $ZZKRN.#ZPMON
NOTE: The process device identifier #ZPMON is the convention used throughout this
guide; your site might use another naming convention such as #OSMON or #OSSMN.
The process name $ZPMON is required by the OSS Monitor process itself; however, the
process device identifier used within the Kernel subsystem is not required to be #ZPMON.
Sending Warnings to Users
Use the OSS shell wall command or an OSS shell script to warn users of the OSS shell about a
shutdown. Follow your site’s broadcast message procedures to warn users of Guardian environment
processes that might be using OSS files.
The shell script in Example 1 (page 49) gathers the terminal names for all logged-in users into the
shell variable named list, then echoes a message to each terminal name in list. The message
is displayed on all terminals with an active OSS shell.
Alternatively, you can capture the message in a file and use the OSS shell wall command to
broadcast it to all logged-in users. For example, if you capture the message portion of the script
from Example 1 into a file named warn.msg in your current working directory, then, to send that
message to all logged-in users of the OSS shell, you would enter:
/bin/wall warn.msg
Example 1 Sample Broadcast Message for Stopping the OSS File System
#!/bin/sh
list=`who | awk '{print $2}'`
for T in $list
do
(
echo "*****************************************"
echo "* Broadcast message at `eval date` *"
echo "* WARNING! *"
echo "* OSS environment *"
echo "* stopping in five minutes. *"
echo "* Please save your files and exit. *"
echo "*****************************************"
) > $T
done
You can also put commands such as the script in Example 2 (page 50) in the /etc/profile file
to warn users who are starting an OSS shell. In Example 2, time is the time you put the message
into the /etc/profile file. The message is displayed every time a user logs in. Remember to
remove the message after you restart the OSS file system.
Starting and Stopping the OSS Environment 49