Friday, October 22, 2010

How to define and update script in TSM server

Here are some tips when managing scripts in TSM server.
  • Defining script in TSM:
DEFine SCRipt script_name command_line Line=number

Example:
tsm: TSMSERVER> DEFine SCRipt test_scrit "q sch t=a" Line=5

  • Updating script in TSM:

UPDate SCRipt script_name command_line Line=1 DESCription=description


List scripts in TSM:

tsm: TSMSERVER>q scr

Name                Description                                            Managing profile
---------------     --------------------------------------------------     --------------------
ARCH_MIGRATE        Migrate data from ARCH_DISK to ARCH_TAPE
BCK_MIGRATE         Migrate data from BCK_DISK to BCK_TAPE
BCK_RECLAIM         Reclamation tape media STG BCK_TAPE
DBBCK_FILE          Backup TSM DB on local filesystem
DBBCK_TAPE          Backup TSM DB on TAPE

Query details of one script:
tsm: TSMSERVER>q script BCK_RECLAIM FORMAT=Lines

Name           Line       Command
               Number
----------     ------     ------------------------------------------------------------
BCK_RECLA-     5          reclaim stg bck_tape th=60 du=240
 IM

Update script in TSM:
tsm: TSMSERVER>UPDate SCRipt BCK_RECLAIM "reclaim stg bck_tape th=55 du=240" Line=5
ANR1456I UPDATE SCRIPT: Command script BCK_RECLAIM updated.

Query details of one script after change:
tsm: TSMSERVER>q script BCK_RECLAIM FORMAT=Lines

Name           Line       Command
               Number
----------     ------     ------------------------------------------------------------
BCK_RECLA-     5          reclaim stg bck_tape th=55 du=240
 IM

No comments:

Post a Comment