EasyManua.ls Logo

Dell PowerVault Storage Area Network - Page 61

Dell PowerVault Storage Area Network
63 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
61 Setting up NetVault Backup Native Virtual Tape Library on the Dell™ DR4X00 Disk Backup
Appliance
:_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

Other manuals for Dell PowerVault Storage Area Network

Related product manuals