epcim
10/23/2015 - 12:48 PM

tsm.howto.md

TSM

dac q act begind=-2 begint=12:30 search=DB2-TEP1
da q node DB2-TEP1
da q node DB2-TEP1
da q node DB2-TEM1
da q node DB2-TEP1 f=d

Some examples

Query logs:

[db2inst1@tep1 TDWLOG]$ env |grep DSM
[db2inst1@tep1 TDWLOG]$ cd /opt/tivoli/tsm/client/api/bin
[db2inst1@tep1 bin]$ ls -l dsm.sys
[db2inst1@tep1 bin]$ cat /opt/tivoli/tsm/client/ba/bin/dsm.sys
[db2inst1@tep1 bin]$ tail /var/log/tsm/db2error.log
[db2inst1@tep1 bin]$ env |grep DSM
[db2inst1@tep1 bin]$ more /opt/tivoli/tsm/client/api/bin/dsm.opt
[db2inst1@tep1 bin]$ db2 log achive for db tdwdb
[db2inst1@tep1 bin]$ db2  archive log for db tdwdb
[db2inst1@tep1 bin]$ df
[db2inst1@tep1 bin]$ df -h
[db2inst1@tep1 bin]$ ls -l /TDWLOG
[db2inst1@tep1 bin]$ ls -l /TDWLOG/TDWDB
[db2inst1@tep1 bin]$ db2 get db cfg for TDWDB
[db2inst1@tep1 bin]$ exit

Dac:

dac q act begind=-2 begint=12:30 search=DB2-TEP1

Da:

da q node DB2-TEP1
da q node DB2-TEP1 f=d

Other:

db2 list db directory
db2 get db cfg for TDWDB
db2 get db cfg for TDWDB |grep -i archmet
db2 get db cfg for TEPS |grep -i archmet
db2adutl query logs db tdwdb

cat /opt/tivoli/tsm/client/ba/bin/dsm.sys