IBM Tivoli Storage Manager, Version 7.1

Automating server operations

You can schedule administrative commands to tune server operations and to start functions that require significant server or system resources during times of low usage. Automating these operations allows the administrator to ensure that server resources are available when needed by clients.

About this task

An administrator can automate the process of issuing a sequence of commands by storing the commands in a server script. From the command line, the administrator can immediately process the script or schedule the script for processing.

Tivoli® Storage Manager includes a central scheduling component that allows the automatic processing of administrative commands during a specific time period when the schedule is activated. Schedules that are started by the scheduler can run in parallel. You can process scheduled commands sequentially by using scripts that contain a sequence of commands with WAIT=YES. You can also use a scheduler external to invoke the administrative client to start one or more administrative commands.

Each scheduled administrative command is called an event. The server tracks and records each scheduled event in the database. You can delete event records as needed to recover database space.

Scripts can be scheduled. For example:

Procedure

  1. Define a schedule named EXPPROC that invokes expiration processing every night at 2:00 a.m. For example:
    define schedule expproc type=administrative -
      cmd='expire inventory' active=yes starttime=02:00
    This schedule calls for a schedule window that:
    • Begins on the date the schedule is defined (the default) at 2:00 a.m.
    • Lasts for 1 hour (the default)
    • Is repeated every day
    • Takes effect immediately
    • Stays in effect indefinitely (the default)
  2. Because the EXPPROC schedule is to run daily, you can verify that the automation is working as it should on the day after you define the schedule. For example:
    query event expproc type=administrative begindate=today-1
    If the schedule ran successfully, the status is Completed.

What to do next



Feedback