Here is the script and the instructions: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX #restore_defaults #This file will restore the analyzer to the default network and mode #settings. This is to be used as a last ditch method to recover the #analyzer from a state where the session manager cannot start a session. # #Copy this file(restore_defaults) to a floppy disc on your PC. #Boot the analyzer into single user mode # 1. Cycle power and keep depressing the ESC key until the boot process stops # 2. type: boot pri isl # 3. type: Y # 4. type: hpux -is # #When the analyzer is established in Single user mode(unknown> prompt) #Hit return several times to ensure you get a prompt #For OS versions 2.0 or greater: #Mount all of the file systems # 1. type: mount -a # #If a file system won't mount try to fix it with: # #fsck /dev/vg00/lvol<bad volume number> # #then retry the mount -a command # #To transfer the file to the analyzer insert the floppy into the analyzer #and issue the following commands(RESTOR~1 is an abbreviation #of your file name; use the filename you created on the PC): # # doscp /dev/floppy/c0t1d0:/RESTOR~1 /tmp/restore # dos2ux /tmp/restore > /tmp/restore_defaults # chmod +x /tmp/restore_defaults # cd /tmp # # #To run restore_defaults execute the following: # # ./restore_defaults # #Then reboot with the follwing command: # # reboot -r # #Doug Teigland 2/15/01 # # 9/18/06 #Added mount -a instructions #
#Clobber team mode
if [ -f /usr/sprockets/env/sprocAcct ] then mv /usr/sprockets/env/sprocAcct /usr/sprockets/env/sprocAcct.sav fi
cp /etc/rc.config.d/namesvrs /tmp sed -e s/NIS_CLIENT=1/NIS_CLIENT=0/ /tmp/namesvrs > /etc/rc.config.d/namesvrs
# Note the following: Uncomment the next sed line if you want networking # to come up enabled cp /usr/sprockets/os/netconf /etc/rc.config.d/netconf #sed -e s/save// /usr/sprockets/os/netconf > /etc/rc.config.d/netconf
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#restore_defaults
#This file will restore the analyzer to the default network and mode #settings. This is to be used as a last ditch method to recover the #analyzer from a state where the session manager cannot start a session.
#
#Copy this file(restore_defaults) to a floppy disc on your PC.
#Boot the analyzer into single user mode # 1. Cycle power and keep depressing the ESC key until the boot process stops # 2. type: boot pri isl # 3. type: Y # 4. type: hpux -is # #When the analyzer is established in Single user mode(unknown> prompt) #Hit return several times to ensure you get a prompt #For OS versions 2.0 or greater:
#Mount all of the file systems
# 1. type: mount -a
#
#If a file system won't mount try to fix it with:
#
#fsck /dev/vg00/lvol<bad volume number>
#
#then retry the mount -a command
#
#To transfer the file to the analyzer insert the floppy into the analyzer #and issue the following commands(RESTOR~1 is an abbreviation #of your file name; use the filename you created on the PC):
#
# doscp /dev/floppy/c0t1d0:/RESTOR~1 /tmp/restore
# dos2ux /tmp/restore > /tmp/restore_defaults
# chmod +x /tmp/restore_defaults
# cd /tmp
#
#
#To run restore_defaults execute the following:
#
# ./restore_defaults
#
#Then reboot with the follwing command:
#
# reboot -r
#
#Doug Teigland 2/15/01
#
# 9/18/06
#Added mount -a instructions
#
#Clobber team mode
if [ -f /usr/sprockets/env/sprocAcct ]
then
mv /usr/sprockets/env/sprocAcct /usr/sprockets/env/sprocAcct.sav
fi
cp /usr/sprockets/os/passwd /etc/passwd
cp /usr/sprockets/os/inittab /etc/inittab
cp /usr/sprockets/os/issue /etc/issue
cp /usr/sprockets/os/exports /etc/exports
cp /usr/sprockets/os/ftpusers /etc/ftpusers
cp /usr/sprockets/os/inetd.conf /etc/inetd.conf
cp /usr/sprockets/os/nsswitch.conf /etc/nsswitch.conf
chmod 444 /etc/inetd.conf
#Restore default network values
cp /usr/sprockets/os/hosts /etc/hosts
cp /etc/rc.config.d/namesvrs /tmp
sed -e s/NIS_CLIENT=1/NIS_CLIENT=0/ /tmp/namesvrs > /etc/rc.config.d/namesvrs
# Note the following: Uncomment the next sed line if you want networking # to come up enabled
cp /usr/sprockets/os/netconf /etc/rc.config.d/netconf
#sed -e s/save// /usr/sprockets/os/netconf > /etc/rc.config.d/netconf