Thursday, July 2, 2009

TSM commands (quickie)

Some commands gathered during my stint as a tsm administrator. a very short stint. Anyways assumptions are:
library name is 3494lib.
physical tape media is B00001
for finer details just add f=d at the end of the commands. e.g. q mount f=d..
not all commands works and be careful when executing especially when updating status of private to scratch.

1. to update tape in private status to scratch status
tsm: ADSM> update libvol 3494lib B00001 status=scr

2. to check status of tape last written/read
tsm: ADSM> q vol B00001 f=d

3. to check the content of tape
tsm: ADSM> q con B00001

4. check which tape is mounted for during operation
tsm: ADSM> q mount

5. to check whether the session of tsm has started
tsm: ADSM> q session

6. to check the sotrage pool operation
tsm: ADSM> q vol * stgpool=3494lib

7. to erase the content of data on tape and turn it to scratch
tsm: ADSM> del vol B00001 discarddata=yes

8. To update the path to drive1:
TSM>upd path ADSM 3590DRIVE1 srct=server destt=drive online=yes libr=3494lib autod=yes

9.To check the volume mounted:
TSM>q mount

10. to update the path
tsm: ADSM>update drive 3494lib 3590drive3 online=yes

11. to check the activity log from 3 days ago until today
tsm: ADSM>q actlog begind=today-3

12 to check status of path in finer details
tsm: ADSM>q path f=d

13. to check schedule of works in TSM
tsm: ADSM> q sched t=a

No comments:

Post a Comment