Air Cleaner User Manual

Post-Installation Scripts
The post-installation scripts can perform any commands available to the restored
system. They can also perform remote commands, but only to the server from
which the system was installed. There are several environment variables available
to the post-installation scripts. They are as follows:
CLIENTIP IP address of the restored system, if installed from a network
install server. Note that this must be used in place of the
HOSTNAME variable since the hostname is not defined at this
time.
DEVICE Local tape drive names such as /dev/rmt0 or remote tape drive
name or filename.
GATEIP IP address of the gateway machine, if any.
NETDEV Device name of the network adapter (ent*, tok*, or fddi*), if booted
or installed from a network installation server.
POLICY Indicates the sequential or parallel backup policy (S/P) if multiple
local tape devices are used.
REL AIX Release level of the restored system
REMOTE Set to 1 if the installation was performed from a network install
server. Otherwise, this variable is not set. If set, the /etc/hosts file
on the client contains the instserver alias, which can be used
with either the sbclient or other TCP commands to access the
install server.
SERVERIP IP address of the installation server, if any. You cannot use the
servers hostname because it is not defined at this time.
SUBNET Subnet mask, if any.
VER AIX Version of the restored system.
VGINFO Filename of the temporary volume group information file. See the
mkvginfoon page A-49 for the contents.
You can use these environment variables to access the local or remote installation
devices.
Sample Scripts
There are a few sample scripts in the /usr/lpp/sysback/scripts directory. These can
be modified as desired and enabled by changing the name of the sample script to
the appropriate file name described above.
Note: The sample scripts provided are available to assist users in creating their
own custom backup and installation scripts and are not supported by IBM.
The following sample scripts are contained in this directory:
fsback.pre_killusers
This sample script, when enabled, informs all users on the system that a
system backup will start in 5 minutes. It resends the message each minute
until the 5 minutes expire and then ends all user processes, except for the
root users. The system backup continues only after the user processes
have been terminated.
Appendix D. Creating Scripts for Customizing the System Backup and Install Process D-3