Most important and frequently used TSM Commands

Below mentioned are the frequently used TSM Commands. 

TSM Script Commands
define script scriptname
update script test "cmd tat u need to run"
run script test

TSM Schedule Commands
define sched schedname t=a startd=date startt=time cmd="command that u need to run"
define sched schedname t=a startd=date startt=time cmd="run scriptname"
q eve * t=a begind=-1 endd=-0

TSM Important & Frequent Commands
define Association domname schedname nodename
define backupset nodename backupsetname devc=deviceclassname retention=no.of days description="what ever u want"
define clientaction nodenames with commas
define clientopt define clientopt clopsetname incluexclude "include "
define cloptset  define cloptset cloptsetname
define collocgroup  collocgroupname
define collocmember collocgroupname nodename
collocatebyfilespec yes in dsm.opt will also work
define copygroup domname polname mgmtclassname
define dbbackuptrigger  define dbbackuptrigger devc=devclassname logfullpct=60
define dbcopy "path to the dbvol" "path to copy vol" f=size of the vol
define dbvolume define dbvol "path to volume" f=1024
define devclass define devclass devclass devtype
define domain def domainname
define drive define drive libname drivename
define library define library library name
define logcopy  define logcopy "path to log vol" "path to copy vol" f=size
define logvolume defind logvol "path to vol" f=size
define mgmtclass domname polname mgmtname
define nodegroup
define nodegroupmember
define policyset define domname polname
define schedule def sched t=a cmd="command to run" startd=date startt=time
define schedule client def sched startd=date startt=time
define volume stg=stgname path to volume f=size
delete association domname schedname nodename

disable sessions

disable events

expire inventory

extend log extend log value
extend db  extend db value

move data move data volumename

move nodedata move nodedata nodename

register node register node nodename nodepasswd passexp=days domain=domainname userid=none

register admin register admin adminname admin passwd
               granth auth adminname classes=system
register license register license file=license file

Also Read: IBM Spectrum Protect (TSM) Basic Free Tutorials

TSM Export Commands
export admin   export admin admin name devc=devclassname volumes=volumename
export node    export node filespace=filespacename filedata=backup/archive/all fromdate=frm date todate=todate
export policy  export policy devc=deviceclassname volumename=voklumename
export server export server filedata=all,archive,bakcup,active

TSM Set Commands
set actlogretention  set actlogretention number of days
set crossdefine      set crossdefine on
set eventretention    set eventretention number of days
set invalidpwdlimit set invalidpwdlimit number of days
set logmode set logmode rollforward
set maxcmdretries  set maxcmdretries 6
set maxschedsessions set maxschedsessions 30
set passexp  set passexp 12
set randomize set randomize  12
set servername hlladdress serverpassword

Manually running the TSM admin processes
backup db t=full devc=deviceclassname
reclaim stg stgpoolname duration=duration th=threshold value
backup stg primary stg copystg
update stg stgname highmig=value lowmig=value
migrate stg stgname
expire inventory

Also Read: Storage Area Network (SAN) Basic Free Tutorials

TSM Server Health Check Commands
q log
q db
q stg
q path
q drive
q pro
q se
q mo
show logpinned
q vol access=unavailable
q vol access=readonly
q act se=ANR????E
q eve * * begind=-1 endd=-0
q eve * t=a begind=-1 endd=-0
select count(*) from libvolumes where status='Scratch'
q volhist t=dbb begind=-1
q db f=d  make sure tat is > 99 check the cache hit
SELECT volume_name  FROM volumes WHERE error_state='YES'
q dbvol

What Others are Reading Now...

0 Comment to "Most important and frequently used TSM Commands "

Post a Comment