Sample command file

Sample command files are provided.

Sample

This is an example of the domarc.smp file.

@ECHO OFF
rem  ==================================================================
rem   Sample Command File - domarc.smp
rem
rem   Sample command file containing commands to do a scheduled archive
rem   of transaction logs to an IBM Storage Protect server.
rem
rem   This file is meant to be executed by the IBM Storage Protect
rem   central scheduler in response to a defined schedule on the 
rem   IBM Storage Protect server.
rem
rem   Complete paths must be given for all file names and non-system
rem   commands.
rem
rem   Copy this file to domarc.cmd and edit it to match your
rem   local environment.
rem
rem  ==================================================================

rem  ==================================================================
rem   Replace "X:" with the drive where the Data Protection for IBM
rem   Domino is installed.
rem  ==================================================================

set dom_dir="X:\Program Files\Tivoli\TSM\domino"

cd /d %dom_dir%

rem  ==================================================================
rem   The 2 lines below put a date and time stamp in a log file for
rem   you.
rem
rem   Note: You can change "domarc.log" to whatever you prefer.
rem  ==================================================================
echo  Current date is: >> domarc.log
date  /t < NUL >> domarc.log
echo  Current time is: >> domarc.log
time  /t < NUL >> domarc.log
rem  ==================================================================
rem   Now call the command line to do the archive of the logs:
rem
rem   Note: You can change "domasch.log" to whatever you prefer.
rem  ==================================================================
start /B domdsmc archivelog /adsmoptfile=dsm.opt 
/logfile=domasch.log >> domarc.log