Home Page Image


Valuable Monthly Info

ADSM.org

TSM Guide Book

Index of TSM

Scripts

Basic Concept (pdf) 15MB

Control-M

Control-M User Group

 


Welcome

The commands below indicate the syntax and examples. In the near future this site will include common errors and a user forum for Q&A. Also, there will be links that can be helpful alternatives to this site.

If you find any errors, misspellings, additional common commands, etc. please join our Tivoli Storage Manager (TSM) forums (www.tsmusergroup.com/forums) and let us know.

Thanks and enjoy.

Tsm User Group Admins

Server Commands (back to top)

 

To change Domain Policy.

 

1- go to the non active PD

2- change the settings

3- validate then

4- activate.

 

Delete a node

 

>q files nodename

 

then run (delete filespace nodename filespacename) to remove all files for that node.

>delete files monf1000 *

 

then remove the node.

>remove node monf1000

 

Query Commands

 

q actlog search=abc

q node f=d

q libvol ###### Ex (q libvol abclib M50011)

q vol  ##### to check a tape #####Ex (q vol M50011)

q drmedia

q mount

q proc

q sess f=d

q path

q drive

q copy ntserver active * f=d

q req ( checkin/checkout)

q event * t=a ### to checker the status of scheduled events

query library f=d
query drive f=d
query path f=d
query libv f=d

query occu

q mgmt * * f=d

 

check what tape are assigned to stg group

 

>q vol * stg=stg_pool

-or

>select volume_name,stgpool_name from volumes

 

Check the Scratch Count

 

>select count(*) from libvolumes where status='Scratch'

 

Checking new tapes in lib

 

>checkin libv abclib search=yes volr=m50000, m59999 status=private checklabel=no devtype=3590

 

Update Path/Drive

 

>upd path <pathname> drive_12 srct=server destt=drive libr=abclib online=yes

 

>update drive <libname>abclib drive_7 online=yes

 

To find the reclaim of stgpools

 

>select stgpool_name, count(*) from volumes where pct_reclaim>69 group by stgpool_name

 

To run reclaim on tapes

>update stg <storagePoolname> recl=69

 

to stop the reclaim set the storage pooll back.

>update stg <storagePoolname> recl=100

 

To remove data from error tape

 

>move data <volname>

 

Register a new Node

 

>reg node <hostname> <password> do=<domain>

 

Misc Commands

 

>Cancel Pro process#

 

To media from one state to another.

 

move drmedia tapeNumber wherest=mount tostate=notmo

move drmedia tapeNumber wherest=notmo tostate=vault

move drmedia tapeNumber wherest=vault tostate=onsiter

 

To get a list of tapes going out to offsite.

 

>select volume_name, state, voltype, stgpool_name from drmedia where state='VAULT' and date(upd_date)>(current_date -2 day)

 

note

 

If you run “q drmedia” on each of these tapes, they show up as “VAULT RETRIEVE”.

Here is what to do

Review “checkin.sh” script.

Then run

>move drm VOLUME_NUMBER  tostate=onsiter

on each, then put them into library. 

Next time Operations runs “checkin1.sh” script, they become scratch tapes.

 

To see the log for a certain node.

 

Server command:

> 'select domain_name, node_name, date(lastacc_time) as LASTACC_DATE, time(lastacc_time) as LASTACC_TIME from nodes where lastacc_time < timestamp(current date - 7 day,'00:00:00') order by lastacc_date, domain_name, node_name`

 

 

Damaged file on a tape

 

You need to run the 'Audit Volume' command with fix=yes parameter. This will delete the file that is damaged from the TSM database

>audit volume <volumeName> fix=yes

 

To restore files from damaged volume(tape) run restore volume or restore STGpool command.

 

>restore volume <volumename>

 

>restore stg <storagePoolname>

.

Private Tape taken out of library accidentally

 

>checkout libvol <library_name> <volume_name> checkl=no

>checkin libvol <library_name> <volume_name> status=private owner=<tape owner>

 

To import data from another TSM server.

register the node in TSM server, place the tape into the Library then run "checkin" command on the tape.

 

checkin libv <library_name> <tape> status=private checklabel=yes

Ex: >checkin libv MLIB01 P1049L3 status=private checklabel=yes

 

Then type

>reply

 

Type

>q req

 

search for request number (ex:002).

ANR8352I Requests outstanding:

ANR8323I 002: Insert ANY volume PM1000 R/W into entry/exit port of library

MLIB01 within 60 minute(s); issue 'REPLY' along with the request ID when ready.

 

Type

>reply 002

 

ANR8499I Command accepted.

 

>import node <nodename>_FULL devclass=TS3500 volumenames=M1000L3 filed=all

 

 

 

 

 

 

You are visitor number