Cisco Systems 15.3.00P1 Network Router User Manual


 
43
Release Notes for the Cisco WAN Manager, Release 15.3.00 P1
OL-11190-01, Rev. C0
Creating a CWM Auto-Restart Shell Script
Step 9 When prompted, follow the application instructions.
Step 10 When you have finished installing the RTM Proxy Patch software, exit from root.
Uninstalling Patch 1
The patch installation process installs an uninstall script in the /usr/users/svplus directory for the CWM
and in the /usr/users/wandest directory for WANDEST.
When you access the uninstall wizard, you are asked for the backup file location that you provided when
you installed the CWM or WANDEST initially.
Creating a CWM Auto-Restart Shell Script
This section describes how to create and configure a shell script that automatically starts the CWM core
after a reboot. To create this shell script, you need to use a text editor to create a new file containing the
commands that you want the script to execute.
Use this procedure to create a script that uses the vi editor and shell commands to automatically restart
the CWM core after the workstation has been rebooted.
Note Several minor errors that existed in the past in the CWM Auto restart shell script have been corrected in
the script that follows.
Step 1 Log in to the CWM as user root:
$su
Step 2 Change to directory /etc/rc3.d:
# cd /etc/rc3.d
Step 3 Create a shell script of the form: Snn <filename>, where nn is the relative sequence number for starting
the job under /etc/rc3.d by entering this command:
# vi /etc/rc3.d/S99init_sv
Since this script does not currently exist, the vi editor will open on a blank line,
waiting for you to enter the script commands.
Step 4 Create the shell script by entering these lines:
******************************************************************
#!/bin/sh
# Check if Informix configuration is going on
while [ ! -z "`ps -ef | grep S98init_db | grep -v grep`" ]
do
echo "Informix initialization in progress...." >>
/usr/users/svplus/log/.start_stopCWM.log
sleep 5
done
# Start Orbix E2A ... as svplus
echo "Starting Orbix E2A ..." >> /usr/users/svplus/log/.start_stopCWM.log
su - svplus -c /usr/users/svplus/scripts/startorbix2000 >>
/usr/users/svplus/log/.start_stopCWM.log
sleep 5