[SunHELP] NetBackup Scripts

T Salley sunhelp at sunhelp.org
Thu Feb 8 07:12:21 CST 2001


Paul,
I started modifying the script for my environment and noticed that there is 
a /usr/openv/scripts/veritas.ini file sourced. Any ideas on what is defined 
in there?
Thanks,
Teresa


From: "P Nutton" <Paul.Nutton at awe.co.uk>
Reply-To: sunhelp at sunhelp.org
To: sunhelp at sunhelp.org, unixgal at hotmail.com
Subject: RE: [SunHELP] NetBackup Scripts
Date: Thu, 8 Feb 2001 10:26:01 -0000

 >  From: "T Salley" <unixgal at hotmail.com>
 > To: sunhelp at sunhelp.org
 > Date: Wed, 07 Feb 2001 14:35:41 -0000
 > Subject: [SunHELP] NetBackup Scripts
 > Reply-To: sunhelp at sunhelp.org
 >
 > I am running Veritas NetBackup on Solaris 2.6. It has a nice gui but I am
 > trying to get reports sent to me confirming backups (this is no problem)
 > and
 > telling me specifics about the backup (quite a bit harder). I need to get
 > the names of the tapes that a specific class (my weekly class) write to 
so
 >
 > that my operators can take the tapes out for off site storage.
 > Can anyone help?
 > Thanks
 > Teresa
 > _________________________________________________________________
 > Get your FREE download of MSN Explorer at http://explorer.msn.com
 >
	Hope this script helps, it is what we use for a similar function
(edited version, it also had HSM bits). We do have a Veritas Expert (tm)
lurking on the list, so I expect he may be able to help as well...

	Paul Nutton, SysAdmin, AWE plc

	#!/bin/ksh
	#
	# Script to identify second copy tapes which are held in the SILO
	# These tapes need to be removed for Disaster Recovery reasons.
	#


PATH=/usr/bin:/usr/sbin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netback
up/bin:/usr/openv/volmgr/bin:/usr/openv/hsm/bin

	. /usr/openv/scripts/veritas.ini

	hoursago=${1:-$NBU_HOURS}

	echo "Please remove The following tapes from the Silo"
	echo
	printf "%-10s %s\n" "Set" "Tape"
	printf "%-10s %s\n" "--------" "------"

	bpimagelist -hoursago ${hoursago} -media | sort -n | \
	while read tape host lwrite nwrite kwrite retention
	do
	    # Tapes that are in the Silo have a robot type of ACS and if
they
	    # are one of ours are in a pool.
	    vmquery -bx -m $tape | grep "COPY2" | awk /$tape/' { print
$3,$14 }' | read robot pool

	    if [ "$robot" != "NONE"  -a "$pool" != "" ]
	    then
	        if [ "$retention" = "9" ] ; then
	            printf "%-10s %s\n" "Periodic" ${tape}
	        else
	            printf "%-10s %s\n" "Normal" ${tape}
	        fi
	    fi
	done

	echo
	echo "When Finished Please update the inventory on `uname -n` with
the command:"echo
	echo "          tapes update"
	echo
	echo "Thank You"
	#
--
_______________________________________________________________________________

The information in this email and in any attachment(s) is commercial in 
confidence. If you are not the named addressee(s) or if you receive this 
email in error then any distribution, copying or use of this communication 
or the information in it is strictly prohibited.  Please notify us 
immediately by email at intadmin at awe.co.uk, and then delete this message 
from your computer.  While attachments are virus checked, AWE plc does not 
accept any liability in respect of any virus which is not detected.
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com




More information about the SunHELP mailing list