Tivoli Header

Tivoli Storage Manager for Windows Backup-Archive Clients Installation and User's Guide

Postschedulecmd/Postnschedulecmd

The postschedulecmd option specifies a command that the client program processes after it runs a schedule. The client program waits for the command to complete before it continues with other processing.

If you do not want to wait, specify postnschedulecmd.

Notes:

  1. If the postschedulecmd command does not complete with return code 0, the client will report that the scheduled event completed with return code 8 (unless the scheduled operation encounters a more severe error yielding a higher return code). If you do not want the postschedulecmd command to be governed by this rule, you can create a script or batch file that invokes the command and exits with return code 0. Then configure postschedulecmd to invoke the script or batch file. The return code for the postschedulecmd command is not tracked, and does not influence the return code of the scheduled event.

  2. The Tivoli Storage Manager Client API does not support this option.

  3. The server can also define the postschedulecmd option (and the postnschedulecmd option).

Supported Clients

This option is valid for all Windows clients.

Options File

Place this option in the client options file dsm.opt.

Syntax

>>-+-POSTSchedulecmd--+-- "cmdstring"--------------------------><
   '-POSTNschedulecmd-'
 
 

Parameters

"cmdstring"
Specifies the command to process. You can enter a command to be executed after a schedule with this option. Use only one postschedulecmd option.

Use a blank, or null, string for cmdstring if you want to prevent any commands from running that the administrator uses for postschedulecmd or preschedulecmd. If you specify a blank or null string on either option, it prevents the administrator from using a command on both options.

If your administrator uses a blank or null string on the postschedulecmd option, you cannot run a post-schedule command.

If the command string contains blanks, enclose the command string in double quotes. If you placed double quotes within the command string, then enclose the entire command string in single quotes.

Examples

Options file:
postschedulecmd "restart database"

The command string is a valid command for restarting your database.

Command line: (Initial command line only)
-postschedulecmd "restart database"


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]