UNIX: mount.sh
#!/sbin/sh
THIS=${0}USER=${1}  # unix login of user who started the backup
GROUP=${2}          # unix group of user who started the backup
HOSTNAME=${3}       # host where the backup was started
STARTPID=${4}       # pid of the backup process
DEVNAME=${5}        # logical device that generated mount request
DEVHOST=${6}        # host to which the device is attached
DEVFILE=${7}        # pathname of the physical device
DEVCLASS=${8}       # device type number
DEVCLASSNAME=${9}   # device type name
shift 9;
MEDID=${1}          # medium id of the reqested medium
MEDLABEL=${2}       # label of the requested medium
MEDLOC=${3}         # location of the requested medium
POOLNAME=${4}       # pool name to which requested medium belongs
POLICY=${5}         # media allocation policy
MEDCLASS=${6}       # media type number
MEDCLASSNAME=${7}   # media type name
SESSIONKEY=${8}     # sessionkey of the running session
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 "
User guide 153