Sample command files

Sample command files are provided.

AIX

This is an example of the AIX domarc.smp file.

#!/bin/ksh
#
#  ===================================================================
#   domarc.smp command file
#
#   Command file containing commands to do a scheduled archivelog
#   command to IBM Storage Protect.
#
#   This file is meant to be executed by the IBM Storage Protect
#   central scheduler in response to a defined schedule on the 
#   IBM Storage Protect server.
#
#   Complete paths must be given for all file names and non-system
#   commands.
#  ===================================================================
#   Update DOM_ID with your Domino Server UNIX_ID
#  ===================================================================

DOM_ID=notes

export DOM_ID_DIR=/usr/tivoli/tsm/client/domino/bin64/domdsmc_${DOM_ID}

#  ===================================================================
#   Put a date and time stamp in a log file for yourself.
#
#   Note: You can change "domsched.log.arc" to whatever you prefer
#  ===================================================================
date >> ${DOM_ID_DIR}/domsched.log.arc

#  ===================================================================
#   Now call the commandline to do the backups.
#
#   Notes:
#   1) You can change "domarc.log" to whatever you prefer.
#   2) domdsmc must be run by the Domino Server ID. If the scheduler
#      is started from /etc/initab, root is the id that will be running
#      this script. For this situation, we need to "su" to the Server
#      ID before running domdsmc.
#
#  ===================================================================

iam=`whoami`

if [ ${iam} = "root" ]
then
     su - ${DOM_ID} "-c /opt/lotus/bin/domdsmc_${DOM_ID} archivelog 
     -adsmoptfile=${DOM_ID_DIR}/dsm.schd.opt 
     -logfile=${DOM_ID_DIR}/domarc.log" 
     >> ${DOM_ID_DIR}/domsched.log.arc &
else
     /opt/lotus/bin/domdsmc_${DOM_ID} archivelog 
    -adsmoptfile=${DOM_ID_DIR}/dsm.schd.opt 
    -logfile=${DOM_ID_DIR}/domarc.log 
    >>${DOM_ID_DIR}/domsched.log.arc &
fi

Linux

This is an example of the Linux domarc.smp file.

#!/bin/bash
#
#  ===================================================================
#   domarc.smp command file
#
#   Command file containing commands to do a scheduled archivelog
#   command to IBM Storage Protect.
#
#   This file is meant to be executed by the IBM Storage Protect
#   central scheduler in response to a defined schedule on the IBM Tivoli
#   Storage Manager server.
#
#   Complete paths must be given for all file names and non-system
#   commands.
#  ===================================================================
#   Update DOM_ID with your Domino Server ID
#  ===================================================================

DOM_ID=notes

export DOM_ID_DIR=/opt/tivoli/tsm/client/domino/bin/domdsmc_${DOM_ID}

#  ===================================================================
#   Put a date and time stamp in a log file for yourself.
#
#   Note: You can change "domsched.log.arc" to whatever you prefer
#  ===================================================================
date >> ${DOM_ID_DIR}/domsched.log.arc

#  ===================================================================
#   Now call the commandline to do the backups.
#
#   Notes:
#     1) You can change "domarc.log" to whatever you prefer.
#     2) domdsmc must be run by the Domino Server ID. If the scheduler
#        is started from /etc/initab, root is the id that will be running
#        this script. For this situation, we need to "su" to the Server
#        ID before running domdsmc.
#
#  ===================================================================

iam=`whoami`

if [ ${iam} = "root" ]
then
     su - ${DOM_ID} -c "/opt/lotus/bin/domdsmc_${DOM_ID} archivelog 
-adsmoptfile=${DOM_ID_DIR}/dsm.schd.opt 
-logfile=${DOM_ID_DIR}/domarc.log" 
>> ${DOM_ID_DIR}/domsched.log.arc &
else
     /opt/lotus/bin/domdsmc_${DOM_ID} archivelog 
-adsmoptfile=${DOM_ID_DIR}/dsm.schd.opt 
-logfile=${DOM_ID_DIR}/domarc.log 
>>${DOM_ID_DIR}/domsched.log.arc &
fi