![]() |
![]() |
This section provides the following:
This example illustrates the use of the Tivoli Storage Manager scheduler.
When the Tivoli Storage Manager backup-archive client is registered with a Tivoli Storage Manager server, the procedure involves the following steps:
The example below uses the following assumptions:
This method is flexible because you can define a command file with any set of commands you choose.
On the server:
def sched bacliwnt wnt_daily_incr desc="Daily Incremental Backup" priority=2 starttime=21:00 duration=15 durunits=minutes period=1 perunits=days dayofweek=any
Tivoli Storage Manager displays this message:
ANR2500I Schedule WNT_DAILY_INCR defined in policy domain BACLIWNT.
define association bacliwnt wnt_daily_incr mars
Tivoli Storage Manager displays this message:
ANR2510I Node MARS associated with schedule WNT_DAILY_INCR in policy domain BACLIWNT.
At this point, a schedule that performs an incremental backup is defined on the Tivoli Storage Manager server. The schedule starts around 9:00 pm. The schedule is re-executed once a day and can start on any day of the week.
On the backup-archive client:
This example assumes that you installed the Tivoli Storage Manager backup-archive client in the c:\program files\tivoli\tsm directory. It is also assumes that the options files in each of these directories are updated so that the communication parameters point to the Tivoli Storage Manager server.
cd /d c:\"program files"\tivoli\tsm\baclient
If the path contains a space, for example c:\program files\tivoli\tsm\baclient, enclose the name in double quotes.
dsmcutil inst /name:"TSM Client Scheduler" /node:mars /password:marspswd /clientdir:"c:\program files\ tivoli\tsm\baclient" /optfile:"c:\program files\tivoli\tsm\ baclient\dsm.opt" /autostart:yes
Your system is now ready to run automatic daily incremental backups. The /autostart:yes option specifies that the scheduler service starts automatically each time the system is rebooted. You can use the /startnow:[Yes|No] option to specify whether to start the scheduler service after executing the command; the default is Yes. If you specify /startnow:No you must start the service manually using the services control panel applet on NT, or issue the following command:
net start "TSM Client Scheduler"
For additional information about these options, see Dsmcutil Options.
If you see the following message:
A communications error occurred connecting to the TSM server
You should ensure that the options file contains entries that point to the correct Tivoli Storage Manager server. You should also ensure that the server is running. If you have to correct one of the installed scheduler services, issue the following command:
dsmcutil remove /name:"TSM Client Scheduler"
Then reissue the dsmcutil inst command.
Notes:
net stop "TSM Client Scheduler" net start "TSM Client Scheduler"
c:\program files\tivoli\tsm\baclient\dsmsched.log
You can override this file name by specifying the schedlogname option in the options file, dsm.opt.
When a scheduled command is processed the schedule log may contain the following entry:
Scheduled event eventname completed successfully
This is merely an indication that Tivoli Storage Manager successfully issued the scheduled command associated with the eventname. No attempt is made to determine the success or failure of the command. You should assess the success or failure of the command by evaluating the return code from the scheduled command in the schedule log. The schedule log entry for the command's return code is prefaced with the following text:
Finished command. Return code is:
The example below assumes that the scheduler service name is TSM Central Scheduler Service and the CAD service name is TSM Client Acceptor, which are the default names. You can use the dsmcutil /name option to specify different names. See Dsmcutil Commands and Dsmcutil Options for more information about dsmcutil commands and options.
To configure the CAD to manage an existing scheduler service:
dsmcutil stop /name:"tsm central scheduler service" dsmcutil stop /name:"tsm client acceptor"
dsmcutil update /name:"tsm central scheduler service" /autostart:no
dsmcutil update cad /name:"tsm client acceptor" /cadschedname:"tsm central scheduler service" /autostart:yes
To create a new scheduler and associate a CAD to manage the scheduler:
dsmcutil install /name:"NEW_SCHEDULE_NAME" /node:yournode /password:xxxxx /autostart:yes /startnow:no
dsmcutil install cad /node:yournode /password:xxxxx /autostart:yes /startnow:no
dsmcutil update cad /name:"tsm client acceptor" /cadschedname:"NEW_SCHEDULE_NAME"
dsmcutil start /name:"tsm client acceptor"