TSM_Personal_Tutorial

TSM personal tutorial

I’m actually working on a personal tutorial for Tivoli Storage Manager based on my personal experience. In particular in this tutorial we have the basic commands from the Administrator Reference Guide.

Introduction

Starting with commands

Administrative commands

Schedule event missing

Introduction

TSM Tivoli Storage Manager is a data backup and recovery software. In this tutorial are listed some commands to administer TSM.


Starting with commands

  • To start a client administration session we use DSMADMC command on a terminal
  • We can also use dsmadmc -id=user -pass=password command
  • We can use dsmadmc -id=user -pass=password -consolemode To start an administrative client session in console mode
    • The command must entry in another session.

Administrative commands

Here are listed only an abstract of the commands and also the category. For more information refer to the Administrator Commands (chapter 2 from Administrator Reference Guide)


Commands ACCEPT


Commands ACTIVATE


Commands ASSIGN


Commands AUDIT

  • AUDIT LIBRARY (Audit and synchronize volume inventories in automated library)
    • audit library <library-name> checklabel=yes
      • audit library IBM-3200 checklabel=yes
    • audit library <library-name> checklabel=barcode
      • audit library IBM-3200 checklabel=barcode
  • AUDIT VOLUME (Check for inconsistencies between database information and storage pool volume)
    • audit volume <volume-name>
      • audit volume 008564L4
    • audit volume <volume-name> fix=yes
      • audit volume 008564L4 fix=yes
    • audit volume <volume-name> skipp=yes
      • audit volume 008564L4 skipp=yes

Commands BACKUP


Commands BEGIN


Commands CANCEL

  • CANCEL PROCESS (Cancel commands that genrate background processes)
    • cancel process <process-number> (check the command q pr to see the running process)
      • cancel pr 77

Commands CHECKIN

  • CHECKIN LIBVOLUME (Add a storage or cleaning volume tape to the server inventory for an automated library)
    • checkin libvolume <libvolume-name> search=Bulk Status=Scratch CheckLabel=Barcode WAITTime=0
      • checkin libvolume IBM-3200 search=Bulk Status=Scratch CheckLabel=Barcode WAITTime=0
    • checkin libvolume <libvolume-name> search=yes status=private checklabel=barcode
      • checkin libvolume IBM-3200 search=yes status=private checklabel=barcode

Commands CHECKOUT

  • CHECKOUT LIBVOLUME (Check a storage volume out of a library)
    • checkout libvolume <libvolume-name> CheckLabel=no remove=b force=y voll=<volume name>
      • checkout libvol ibm-3200 checkl=no remove=b force=y voll=009011L4

Commands CLEAN


COMMIT


Commands CONVERT


Commands COPY


Commands DEFINE


Commands DELETE

  • DELETE VOLUME (Delete a storage pool volume)
    • del vol <volume-name>
      • del vol 008956L4

Commands DISABLE


Commands DISMOUNT


Commands DISPLAY


Commands ENABLE


Commands END


ESTIMATE DBREORGSTATS


Commands EXPIRE


Commands EXPORT


Commands EXTEND


Commands GENERATE


Commands GRANT


HALT


HELP


Commands IMPORT


Commands INSERT


ISSUE MESSAGE


Commands LABEL


Commands LOCK


MACRO


MIGRATE STGPOOL


Commands MOVE

  • MOVE DATA (Move files from one storage pool volume to other storage pool volumes)
    • move data <volume-name>
      • move data 008956L4 wait=yes

Commands NOTIFY


PARALLEL


Commands PING


PREPARE


Commands QUERY

  • QUERY ACTLOG (Display messages generated by the server)
    • q actlog
    • q actlog begind=-3 endD=02/12/2009 endT=12:00:00
    • q actlog begind=02/12/2009 begint=11:00:00 endd=02/12/2009 endt=11:05:00
  • QUERY DRMEDIA (Query disaster recovery media)
    • q drmedia
    • q drmedia f=d (f=d is to see more details)
  • QUERY DRIVE (Display information about the drives associated with a library)
    • q drive
  • QUERY FILESPACE
    • q filesepace
  • QUERY LIBRARY (Display information about a library)
    • q library <library-name>
      • q library ibm-3200 f=d (f=d is to see more details)
  • QUERY LIBVOLUME (Display information about one or more volumes that are checked into an automated library)
    • q libvol
    • q libvol f=d (f=d is to see more details)
  • QUERY MOUNT (Display information about the status of one or more sequential access volumes that are mounted)
    • q mount <volume-name>
      • q mount
  • QUERY NODE (Display information about one or more registred nodes)
    • q node
    • q node <node-name> f=d (f=d is to see more details)
  • QUERY OCCUPANCY (Show where client file spaces are stored and how much space the occupy)
    • q occupancy
  • QUERY PATH (Display the path between source and destination)
    • q path
    • q path f=d (f=d is to see more details)
  • QUERY PROCESS (Display active background process information)
    • q pr
  • QUERY FILESPACE (Display information about filespace that belong to a client node)
    • q filespace
  • QUERY SCHEDULE (Display information about one or more schedules)
    • q schedule
    • q schedule f=d (f=d is to see more details)
    • q schedule type=administrative (Display information about administrative schedule)
  • QUERY SCRIPT (Display information about scripts)
    • q script
    • q script <script-name> f=d (f=d is to see more details)
  • QUERY STGPOOL (Display information about one or more storage pools)
    • q stgp
    • q stgp <storage-name> f=d
      • q stgp LTO4-BACKUP f=d (f=d is to see more details)
  • QUERY VOLUME (Display information about one or more storage pool volumes)
    • q vol
    • q vol * acc=unav (Display all unavailable volume)
    • q vol <volume-name>
      • q vol 008954L4 f=d
  • QUERY VOLUME HISTORY (Display sequential volume history information)
    • q volh
    • q volh | grep 008954L4

QUIT


Commands RECLAIM


Commands RECONCILIE


Commands REDUCE


Commands REDUCE


Commands REGISTER


Commands RENAME


REPLY


Commands RESET


RESTART EXPORT


Commands RESTORE

  • Restore client side
    • dsmc q b -ina /backup/file*(query the backup file before restoring, wildcard are accepted)
    • dsmc rest -ina /backup/file.txt (restore the desirated file)

Commands REVOKE


ROLLBACK


RUN (Use to run a TSM script)

  • run <script-name>
    • run tapein

SELECT


SERIAL


Commands SET


SETOPT


Commands SHRED


SUSPEND EXPORT


Commands UNDO


Commands UNLOCK


Commands UPDATE

  • UPDATE LIBRARY (Update a library definition)
    • update library <library-name> serial=autodetect
      • update library ibm-3200 serial=autodetect
  • UPDATE PATH (Update a path definition)
    • update path <source-name> <destination name> srctype=<type> destype=<Destionation-Type> device=<device> Library=<library-name> online=yes autodetect=yes
      • update path tsm1 ibm-3200-DR1 srctype=server destype=drive device=/dev/rmt1 Library=ibm-3200 online=yes autodetect=yes
      • use q path f=d to see the details all of the parameter
  • UPDATE STGPOOL (Change a storage pool)
    • update stgp <storage-pool-name> <param>=<value>
      • update stgp lto4-backup maxscratch=12
      • use q stgp f=d to see the details all of the parameter
  • UPDATE VOLUME (Change the access mode for volumes in a storage pool)
    • update vol <volume-name> access=readw
      • update vol 001049L4 acess=readw

Commands VALIDATE


Query event missing (schedule not active)

  • 1) QUERY SCHEDULE
    • query schedule type=administrative format=detailed (See if Active?: Yes)
  • 2) QUERY EVENT
    • query event * type=administrative (To see if the schedule exist)
  • 3) UPDATE SCHEDULE
    • update schedule SCHEDULE_NAME type=administrative active=yes
  • 4) QUERY EVENT
    • query event * type=administrative (The schedule must exist)
  • Useful link :