User Guide - HP Data Protector A.06.11 User Manual

Media operations
Hide thumbs Also See for Data Protector A.06.11:
Table of Contents

Advertisement

UNIX: mount.sh
#!/sbin/sh
THIS=${0}USER=${1}
GROUP=${2}
HOSTNAME=${3}
STARTPID=${4}
DEVNAME=${5}
DEVHOST=${6}
DEVFILE=${7}
DEVCLASS=${8}
DEVCLASSNAME=${9}
shift 9;
MEDID=${1}
MEDLABEL=${2}
MEDLOC=${3}
POOLNAME=${4}
POLICY=${5}
MEDCLASS=${6}
MEDCLASSNAME=${7}
SESSIONKEY=${8}
MOSERVER="motestserver"
CELLSERVER="dptestserver"
MOUSER="test"
MOPWD="test"
JAVACMD="/opt/java/bin/java"
RCTMOUNT_JAR="/opt/omni/bin/reactivemount.jar"
INFO=/tmp/media_info
if [ "X${MEDID}" != "X" ]
then
/opt/omni/bin/omnimm -media_info ${MEDID} -detail >${INFO}
type=`grep "type" ${INFO} | awk '{print $4}'`
if [ "X${type}" = "XHASCOPY" ]
then
echo "The Medium has the following copies:" >${INFO}
/opt/omni/bin/omnimm -list_copy ${MEDID} >>${INFO}
cat $INFO | sed 's/Medium Label/LABEL/'|\
sed 's/MediumID/ID/'|\
sed 's/Pool Name/POOL/' >${INFO}.tmp
else
echo "" >${INFO}.tmp
fi
fi
echo "
# unix login of user who started the backup
# unix group of user who started the backup
# host where the backup was started
# pid of the backup process
# logical device that generated mount request
# host to which the device is attached
# pathname of the physical device
# device type number
# device type name
# medium id of the reqested medium
# label of the requested medium
# location of the requested medium
# pool name to which requested medium belongs
# media allocation policy
# media type number
# media type name
# sessionkey of the running session

User guide

153

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Data Protector A.06.11 and is the answer not in the manual?

Questions and answers

Table of Contents