Dell PowerVault Storage Area Network Manual page 61

Best practices for setting up netvault backup native virtual tape liprary (nvtl) on a dr disk backup appliance
Hide thumbs Also See for PowerVault Storage Area Network:
Table of Contents

Advertisement

:_expire
@echo ===========================================
@echo Expire Media with Label %ML%
@echo Expire Media with Label %ML% >> "%logfile%"
@echo ===========================================
"%nvutil%\nvreusemedia.exe" -barcode "%ML%"
goto :eof
Linux /Unix Platform
#!/bin/bash
# !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*
# Specify the beginning of the barcodes of the
# media you wish to work with here.
# !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*
# !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*
# Gather Input from user
# !*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*
echo -n "Enter Media Label Prefix to Expire: "
read name
while read media_prefix
do
if [[ -z "${media_prefix}" ]]
then
echo "That was empty, try again."
else
if [ $media_prefix = "." ]
then
echo "Exiting..."
exit 0
fi
echo "Executing now...with $media_prefix"
break
fi
done
# End of the loop
nv_home=`head -n -1 /etc/.nv6_home`
nvutil=$nv_home/util
logfile=/tmp/logddclean.log
rm -rf /tmp/mediareuse
# ================================================
# Grab media info on tapes in the VTL
# ================================================
$nvutil/nvreport -class media -format "%label %mediagroup %barcode" -sort "%label" | grep $media_prefix > /tmp/mediareuse
echo "===================================="
echo "Processing the following media list:"
echo "===================================="
cat /tmp/mediareuse|awk '{print $1}'
read expired_media < /tmp/mediareuse
# ================================================
# Create an array and throw data into it
# Run commands against the data in the array
# ================================================
#Open file for reading
exec 10</tmp/mediareuse
let count=0
while read LINE <&10; do
61
Setting up NetVault Backup Native Virtual Tape Library on the Dell™ DR4X00 Disk Backup
Appliance

Advertisement

Table of Contents
loading

Table of Contents