AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systems

Scheduling events using the command-line client

This task guides you through the steps to schedule events using the command-line client.

About this task

You must be a system administrator to configure Tivoli® Storage Manager to use the command-line client interface to handle scheduled events. The command-line tools must be installed to enable this function.

Note: If you run the client scheduler on the command line, the scheduler does not run as a background service.

Before starting the client scheduler using the client acceptor daemon, you must complete the following steps:

Procedure

  1. Ensure that the managedservices option includes schedule in the client systems options (dsm.sys) file.
  2. Set the passwordaccess option to generate in the client systems options (dsm.sys) file.

Results

If you include files for encryption processing, ensure that you select the Save Encryption Key Password Locally option in the Authorization Preferences window so that the client scheduler can perform unattended scheduled services without prompting the user for the encryption key. If the encryption key has not been previously saved, you must perform an attended backup of at least one file so that the encryption prompt is given and the key is saved.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTo start the client scheduler on your client node and connect to the server schedule:

  1. Change to the Tivoli Storage Manager installation directory and enter the following command:
    dsmc schedule

    When you start the client scheduler, it runs continuously until you close the window, end the process, or log off your system.

  2. If the Tivoli Storage Manager client executable directory is not in your PATH environment variable, change to the installation directory and enter the following command: AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systems
    ./dsmc schedule
  3. AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTo run the schedule command in the background and to keep the client scheduler running, even if you log off your system, enter the following:
    nohup dsmc schedule 2> /dev/null &

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsIf a Tivoli Storage Manager password is required for your workstation and you want to run the schedule command in the background, enter the password with the command.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsRoot User: To start the client scheduler automatically, ensure that the passwordaccess option is set to generate in dsm.sys, then follow the procedure for your operating system:

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTo start each client scheduler automatically, add an entry to the /etc/inittab file. Typically, the run level to use is 2, 3, 4, 5, or 6, depending on the operating system and its configuration. Consult documentation for your operating system for details on run levels.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsVerify the correct syntax for the entry by consulting documentation for your operating system.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsHere are some examples:

AIX operating systemsFor AIX®, add the following entry to the /etc/inittab file:

AIX operating systems
itsm:2:once:/usr/bin/dsmc sched > /dev/null 2>&1 # TSM scheduler

AIX operating systemsIn this example, the run level is set to 2.

HP-UX operating systemsFor HP-UX, add the following entry to the /etc/inittab file:

HP-UX operating systems
itsm:3456:once:/usr/bin/dsmc sched > /dev/null 2>&1 # TSM scheduler

HP-UX operating systemsIn this example, the run level is set to 3, 4, 5, and 6.

Oracle Solaris operating systemsFor Solaris, add the following entry to the /etc/inittab file:

Oracle Solaris operating systems
itsm:23:once:/usr/bin/dsmc sched > /dev/null 2>&1 # TSM scheduler

Oracle Solaris operating systemsIn this example, the run level is set to 2 and 3.

Note: You must include the redirection to /dev/null in the command.

Mac OS X operating systemsFor Mac OS X:

Mac OS X operating systemsThe system administrator must generate a password so that Tivoli Storage Manager can store the password in the TSM.PWD file. This can be done either with TSM Tools for Administrators or with the command line.

Mac OS X operating systemsA system administrator must use either of the following methods to enable the Tivoli Storage Manager client acceptor daemon to launch the command-line client in schedule mode to handle scheduled events when you start the system.

Mac OS X operating systems
Method 1 (preferred)
  • Use TSM Tools for Administrators and Start the TSM Connect Agent applications. This installs the client acceptor daemon as a system startup item so the client acceptor daemon starts after system restarts. The client acceptor daemon is also started immediately, so you do not need to restart the system to handle scheduled events.
Method 2
  • Use the shell script in "/Library/Application Support/tivoli/tsm/client/ba/bin" to install the client acceptor daemon as a startup item. The script name is StartCad.sh.

Mac OS X operating systemsComplete the following steps to start the client acceptor daemon manually, and to check that it is running.

  1. To check whether the client acceptor daemon is running, enter the following command:
      sudo ps -x | grep dsmcad

    If the client acceptor daemon is running, one of the processes listed has the path /usr/bin/dsmcad.

  2. To start the client acceptor daemon manually, enter the following command in a terminal window:
      sudo /sbin/SystemStarter start dsmcad

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsThe client scheduler can fail to properly initialize at system startup because TCP/IP is not fully initialized. You might need to delay the scheduler service start up to allow time for TCP/IP to initialize.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTivoli Storage Manager does not recognize changes made to the dsm.opt or the dsm.sys file while the client scheduler is running. If you make changes to these files while the client scheduler is running, and you want to use the new values immediately, stop the client scheduler and restart it. For example, if you change the inclexcl option in your dsm.sys file to point to a different include-exclude options file, you must stop the client scheduler and restart it before Tivoli Storage Manager uses the new file.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTo manually stop the client scheduler, use the kill command if the client scheduler is running in the background, or press q or Ctrl+C if it is running in the foreground. To restart the client scheduler, enter the schedule command again.

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsTape prompting does not occur during a scheduled event regardless of the tapeprompt option setting in your options file.