#!/usr/bin/ksh # Wrolf Courtney 6/11/98 # Environment variables for OpenView . /opt/OV/bin/ov.envvars.sh PATH=$OV_BIN:$PATH date +"%a %x %X $0 started" # rewind tape - just in case mt -t /dev/rmt/0mnb rewind date +"%a %x %X tape rewound" # shut down any currently running ovw processes. kill -s HUP `UNIX95= ps -C ovw | tail -1 | cut -f 1 -d ' '` date +"%a %x %X ovw processes shut down" ovstop netmon ovtopofix -a | grep -v '^ Updating' date +"%a %x %X ovtopofix -a completed" ovmapcount -u date +"%a %x %X ovmapcount -u completed" ovstop ovtopmd ovtopofix -C date +"%a %x %X ovtopofix -C completed" # per "Brown, Gerald (GEIS)" from the # ovforum@ovforum.org list, only need to stop netmon, snmpCollect, # ovtopmd, and ovwdb to do backup. netmon and ovtopmd are already # stopped, so... ovstop snmpCollect ovwdb date +"%a %x %X Completed checking OpenView databases" date +"%a %x %X Started full backup of `uname -n`" # Full backup, exclude unnecessary and inappropriate directories # Backup is not required for: # /opt/arl/Logs - contains logs from the Raptor firewall for analysis. # /home/*/.netscape/cache - users' Netscape caches # /opt/crash - system dump area for crashes (may not be configured right anyway.) /usr/sbin/fbackup -0 -f /dev/rmt/0m -g /usr/local/lib/openview_full_backup.graph date +"%a %x %X Completed full backup of `uname -n`" ovstart date +"%a %x %X Completed restarting OpenView daemons" # starts up ovw on main display # assumes "xhost +localhost" or similar command in .profile of # user logged on. # Ideally should start with user id of that user. DISPLAY=:0 nohup ovw& date +"%a %x %X Restarted OpenView GUI" # Full directory listing of tape date +"%a %x %X /usr/sbin/frecover -r -f /dev/rmt/0m -N -v" /usr/sbin/frecover -r -f /dev/rmt/0m -N -v date +"%a %x %X Full directory listing of tape completed"