Vous êtes sur la page 1sur 32

SQL for Tivoli Storage Manager

This page has a collection of useful SQL statements for IBM Tivoli Storage Manager (TSM). Here you can find out a lot of selects that will help you to get information from TSM and to construct your own SQL statements.

Database and Recovery Log


List all information from db table
tsm: SERVER1> SELECT * FROM db AVAIL_SPACE_MB: CAPACITY_MB: MAX_EXTENSION_MB: MAX_REDUCTION_MB: PAGE_SIZE: USABLE_PAGES: USED_PAGES: PCT_UTILIZED: MAX_PCT_UTILIZED: PHYSICAL_VOLUMES: BUFF_POOL_PAGES: TOTAL_BUFFER_REQ: CACHE_HIT_PCT: CACHE_WAIT_PCT: BACKUP_RUNNING: BACKUP_TYPE: NUM_BACKUP_INCR: BACKUP_CHG_MB: BACKUP_CHG_PCT: LAST_BACKUP_DATE: DB_REORG_EST: DB_REORG_EST_TIME: 85000 80000 5000 11808 4096 20480000 16856530 82.3 85.2 17 65536 5555310 98.6 0.0 NO 0 14.5 2007-07-22 16:11:23.000000

TSM database utilization (%)


tsm: SERVER1> SELECT pct_utilized FROM db PCT_UTILIZED -----------82.3

TSM log recovery utilization (%)


tsm: SERVER1> SELECT pct_utilized FROM log PCT_UTILIZED

-----------0.0

Selecting specific columns from db table


tsm: SERVER1> SELECT avail_space_mb,capacity_mb, pct_utilized, max_pct_utilized,last_backup_date FROM db AVAIL_SPACE_MB LAST_BACKUP_DATE ----------------------------85000 2007-07-22 16:11:23.000000 CAPACITY_MB ----------80000 PCT_UTILIZED -----------82.3 MAX_PCT_UTILIZED ---------------85.2 --

Number of database volumes not synchronized


tsm: SERVER1> SELECT COUNT(*) FROM dbvolumes WHERE ( NOT copy1_status='Synchronized' OR NOT copy2_status='Synchronized' OR NOT copy3_status='Synchronized' ) Unnamed[1] ----------0

Number of log volumes not synchronized


tsm: SERVER1> SELECT COUNT(*) FROM logvolumes WHERE ( NOT copy1_status='Synchronized' OR NOT copy2_status='Synchronized' OR NOT copy3_status='Synchronized' ) Unnamed[1] ----------0

Nodes
Number of nodes
tsm: SERVER1> SELECT SUM(num_nodes) FROM domains Unnamed[1] ----------165 tsm: SERVER1> SELECT COUNT(*) FROM nodes Unnamed[1] ----------165

Number of nodes per domain


tsm: SERVER1> SELECT domain_name,num_nodes FROM domains DOMAIN_NAME -----------------AIX EXCHANGE NT VMWARE NUM_NODES ----------47 4 69 10

Number of nodes per platform


tsm: SERVER1> SELECT platform_name,COUNT(*) FROM nodes GROUP BY platform_name PLATFORM_NAME ---------------AIX Linux86 TDP Domino TDP MSSQL Win32 WinNT Unnamed[2] ----------20 36 2 1 100

Nodes locked
tsm: SERVER1> SELECT node_name FROM nodes WHERE locked='YES' NODE_NAME -----------------NODE_TEMP NODE99

Number of nodes locked


tsm: SERVER1> SELECT COUNT(*) FROM nodes WHERE locked='YES' Unnamed[1] ----------2

Number of nodes sessions


tsm: SERVER1> SELECT COUNT(*) FROM sessions WHERE session_type='Node' Unnamed[1] ----------3

TSM clients version

tsm: SERVER1> SELECT node_name, VARCHAR(client_version)||'.'||VARCHAR(client_release)||'.'||VARCHAR(client_level)||'-'||VARCHAR(client_sublevel) FROM nodes NODE_NAME -----------------NODE01 NODE02 NODE03 NODE04 ... Unnamed[2] -----------------5.3.4-8 5.3.0-14 5.1.6-2 5.3.4-0

Number of files per client


tsm: SERVER1> SELECT node_name, SUM(num_files) FROM occupancy GROUP BY node_name NODE_NAME -----------------NODE01 NODE02 NODE03 NODE04 ... Unnamed[2] ----------20 18300 1418470 509837

Space and number of files stored per client


tsm: SERVER1> SELECT node_name,CAST(FLOAT(SUM(physical_mb)) / 1024 AS DEC(8,2))as "Space in GB", SUM(num_files)as"Number of files" FROM occupancy GROUP BY node_name NODE_NAME -----------------SERVER-01 SERVER-02 SERVER-03 SERVER-04 ... Space in GB ----------1540.50 9.60 3279.86 5191.91 Number of files --------------1260371 130357 1318259 310516

Data stored per client (GB)


tsm: SERVER1> SELECT node_name,CAST(FLOAT(SUM(logical_mb)) / 1024 AS DEC(8,2)) FROM occupancy GROUP BY node_name NODE_NAME -----------------SERVER-01 SERVER-02 SERVER 03 SERVER-04 ... Unnamed[2] ---------364.01 227.52 8338.89 3341.81

Schedules
Nodes without associated schedules
tsm: SERVER1> SELECT node_name FROM nodes WHERE node_name NOT IN (SELECT node_name FROM associations) NODE_NAME -----------------NODE_TEMP SERVER-04 ...

Number of nodes without associated schedules


tsm: SERVER1> SELECT COUNT(*) FROM nodes WHERE node_name NOT IN (SELECT node_name FROM associations) Unnamed[1] ----------12

Nodes with associated schedules


tsm: SERVER1> SELECT node_name FROM nodes WHERE node_name IN (SELECT node_name FROM associations) NODE_NAME -----------------NODE01 NODE02 NODE03 NODE04

Number of nodes associated per schedules


tsm: SERVER1> SELECT domain_name, schedule_name, count(*) FROM associations GROUP BY domain_name, schedule_name DOMAIN_NAME -----------------AIX AIX LINUX ... SCHEDULE_NAME -----------------DAILY WEEKLY DAILY Unnamed[3] ----------24 17 38

Information about schedules and associations (2 tables)


tsm: SERVER1> SELECT associations.domain_name, associations.node_name, associations.schedule_name, -

client_schedules.description, client_schedules.action, client_schedules.options, client_schedules.objects, client_schedules.starttime FROM associations associations, client_schedules client_schedules WHERE associations.domain_name = client_schedules.domain_name AND associations.schedule_name = client_schedules.schedule_name ORDER BY associations.domain_name, associations.node_name, associations.schedule_name DOMAIN_NAME: NODE_NAME: SCHEDULE_NAME: DESCRIPTION: ACTION: OPTIONS: OBJECTS: STARTTIME: DOMAIN_NAME: NODE_NAME: SCHEDULE_NAME: DESCRIPTION: ACTION: OPTIONS: OBJECTS: STARTTIME: ... AIX NODE01 Schedule1 Backup Online of database XX COMMAND /opt/tivoli/tsm/scripts/bkp_weekly.sh 21:15:00 AIX NODE01 Schedule2 Backup Incremental of Operating System INCREMENTAL /usr/ /opt/ /var/ /etc/ /home/ 09:00:00

Some cool information about node, associations and schedules


tsm: SERVER1> SELECT associations.domain_name, associations.node_name, associations.schedule_name, client_schedules.description, client_schedules.action, client_schedules.options, client_schedules.objects, client_schedules.priority, client_schedules.startdate, client_schedules.starttime, client_schedules.duration, client_schedules.durunits, client_schedules.period, client_schedules.perunits, client_schedules.dayofweek, client_schedules.expiration, client_schedules.chg_time, client_schedules.chg_admin, client_schedules.profile, client_schedules.sched_style, client_schedules.enh_month, client_schedules.dayofmonth, client_schedules.weekofmonth FROM associations associations, client_schedules client_schedules WHERE associations.domain_name = client_schedules.domain_name AND associations.schedule_name = client_schedules.schedule_name ORDER BY associations.node_name, associations.domain_name, associations.schedule_name DOMAIN_NAME: AIX NODE_NAME: SERVER-01 SCHEDULE_NAME: SERV01_ARC_APP_WEEKLY

DESCRIPTION: ACTION: OPTIONS: OBJECTS: PRIORITY: STARTDATE: STARTTIME: DURATION: DURUNITS: PERIOD: PERUNITS: DAYOFWEEK: EXPIRATION: CHG_TIME: CHG_ADMIN: PROFILE: SCHED_STYLE: ENH_MONTH: DAYOFMONTH: WEEKOFMONTH: DOMAIN_NAME: NODE_NAME: SCHEDULE_NAME: ACTION: OPTIONS: OBJECTS: PRIORITY: STARTDATE: STARTTIME: DURATION: DURUNITS: PERIOD: PERUNITS: DAYOFWEEK: EXPIRATION: CHG_TIME: CHG_ADMIN: PROFILE: SCHED_STYLE: ENH_MONTH: DAYOFMONTH: WEEKOFMONTH: ...

Archive Weekly ARCHIVE -archmc=MC_AIX_WEEKLY /app2/ 5 2006-05-01 06:01:00 1 HOURS 1 WEEKS TUESDAY 2007-07-03 10:35:12.000000 ADMIN CLASSIC

NT SERVER-02 BD_OFF_DOMINO_MONTHLY COMMAND d:\tsm\tsmscripts\tdp_dom_offline_monthly.cmd 2 2006-05-01 21:00:00 1 HOURS Sun 2007-05-24 09:08:14.000000 ADMIN ENHANCED Any Any First

Drives and Paths


Some information about paths
tsm: SERVER1> SELECT source_name,source_type,destination_name,destination_type,library_name, device FROM paths

SOURCE_NAME LIBRARY_NAME --------------------------TSM-SERVER1 /dev/smc0 TSM-SERVER1 3584 TSM-SERVER1 3584 TSM-SERVER1 3584 TSM-SERVER1 3584

SOURCE_TYPE DEVICE ----------------------SERVER SERVER /dev/rmt0 SERVER /dev/rmt1 SERVER /dev/rmt2 SERVER /dev/rmt3

DESTINATION_NAME -----------------3584 DRIVE01 DRIVE02 DRIVE03 DRIVE04

DESTINATION_TYPE ---------------LIBRARY DRIVE DRIVE DRIVE DRIVE

Some information about drives


tsm: SERVER1> SELECT library_name,drive_name,device_type,read_formats,write_formats,drive_state, drive_serial FROM drives LIBRARY_NAME: DRIVE_NAME: DEVICE_TYPE: READ_FORMATS: WRITE_FORMATS: DRIVE_STATE: DRIVE_SERIAL: LIBRARY_NAME: DRIVE_NAME: DEVICE_TYPE: READ_FORMATS: WRITE_FORMATS: DRIVE_STATE: DRIVE_SERIAL: LIBRARY_NAME: DRIVE_NAME: DEVICE_TYPE: READ_FORMATS: WRITE_FORMATS: DRIVE_STATE: DRIVE_SERIAL: 3584 DRIVE01 LTO ULTRIUM3C,ULTRIU ULTRIUM3C,ULTRIU EMPTY 000782XXXX 3584 DRIVE02 LTO ULTRIUM3C,ULTRIU ULTRIUM3C,ULTRIU LOADED 000782XXXX 3584 DRIVE03 LTO ULTRIUM3C,ULTRIU ULTRIUM3C,ULTRIU LOADED 000782XXXX

Number of drives not online


tsm: SERVER1> SELECT COUNT(*) FROM drives WHERE NOT online='YES' Unnamed[1] ----------0

Number of drives not online in library 3584

tsm: SERVER1> SELECT COUNT(*) FROM drives WHERE NOT online='YES' and library_name='3584' Unnamed[1] ----------0

Number of paths not online


tsm: SERVER1> SELECT COUNT(*) FROM paths WHERE NOT online='YES' Unnamed[1] ----------0

Information about drives utilization


tsm: SERVER1> SELECT library_name, drive_name, drive_state, volume_name, allocated_to, online FROM drives LIBRARY_NAME ALLOCATED_TO ----------------------------LIBRARY3 libclient_1 LIBRARY3 libclient_3 LIBRARY3 YES LIBRARY3 YES LIBRARY3 libclient_2 LIBRARY3 libclient_1 LIBRARY3 YES LIBRARY3 libclient_3 ... DRIVE_NAME ONLINE --------------------DRIVE01 YES DRIVE02 YES DRIVE03 DRIVE04 DRIVE05 YES DRIVE06 YES DRIVE07 DRIVE08 YES DRIVE_STATE --------------LOADED LOADED EMPTY EMPTY LOADED LOADED EMPTY LOADED TAPE66 TAPE73 TAPE28 VOLUME_NAME --------------TAPE86 TAPE17

Management class
Management classes per domain
tsm: SERVER1> SELECT domain_name, set_name, class_name, defaultmc FROM mgmtclasses DOMAIN_NAME DEFAULTMC ----------------------------SET_NAME -----------------CLASS_NAME -----------------------

AIX AIX AIX AIX LINUX LINUX ...

AIX AIX ACTIVE ACTIVE LINUX ACTIVE

DAILY WEEKLY DAILY WEEKLY ARCH1 ARCH1

Yes No Yes No Yes Yes

Management classes per domain of policy set ACTIVE


tsm: SERVER1> SELECT domain_name, class_name, defaultmc FROM mgmtclasses WHERE set_name='ACTIVE' DOMAIN_NAME -----------------AIX AIX LINUX ... CLASS_NAME -----------------DAILY WEEKLY ARCH1 DEFAULTMC -----------------Yes No Yes

Default management class per domain of policy set ACTIVE


tsm: SERVER1> SELECT domain_name, class_name, defaultmc FROM mgmtclasses WHERE set_name='ACTIVE' AND defaultmc='Yes' DOMAIN_NAME -----------------AIX LINUX ... CLASS_NAME -----------------AIX ARCH1 DEFAULTMC -----------------Yes Yes

Management classes of a specifc domain of policy set ACTIVE


tsm: SERVER1> SELECT domain_name, class_name, defaultmc FROM mgmtclasses WHERE set_name='ACTIVE' AND domain_name='AIX' DOMAIN_NAME -----------------AIX AIX ... CLASS_NAME -----------------DAILY WEEKLY DEFAULTMC -----------------Yes No

Management classes of policy set ACTIVE that a specific node can use
tsm: SERVER1> SELECT nodes.domain_name, nodes.node_name, mgmtclasses.class_name, mgmtclasses.defaultmc FROM nodes, mgmtclasses WHERE nodes.domain_name=mgmtclasses.domain_name AND set_name='ACTIVE' AND node_name='NODE1' DOMAIN_NAME DEFAULTMC ----------------------------NODE_NAME -----------------CLASS_NAME -----------------------

AIX AIX ...

NODE1 NODE1

DAILY WEEKLY

Yes No

Management classes with backup copy group information


tsm: SERVER1> SELECT mgmtclasses.domain_name, mgmtclasses.set_name, mgmtclasses.class_name, mgmtclasses.defaultmc, bu_copygroups.verexists, bu_copygroups.verdeleted, bu_copygroups.retextra, bu_copygroups.retonly, bu_copygroups.destination FROM mgmtclasses mgmtclasses, bu_copygroups bu_copygroups WHERE mgmtclasses.domain_name = bu_copygroups.domain_name AND mgmtclasses.set_name = bu_copygroups.set_name AND mgmtclasses.class_name = bu_copygroups.class_name AND mgmtclasses.set_name='ACTIVE' ORDER BY mgmtclasses.domain_name, mgmtclasses.set_name, mgmtclasses.class_name DOMAIN_NAME SET_NAME CLASS_NAME VERDELETED RETEXTRA RETONLY DESTINATION ---------------------------------------------------------------------STANDARD ACTIVE STANDARD 30 60 BACKUPPOOL AIX ACTIVE MC_AIX_TDP NOLIMIT 60 60 BACKUPPOOL AIX ACTIVE LOGBKUP 1 90 BACKUPPOOL AIX ACTIVE MC_AIX_DAILY 14 30 S3584 ... DEFAULTMC -----------Yes No No YES VEREXISTS --------2 NOLIMIT 1 1 1 0 1

Management classes with archive copy group information


tsm: SERVER1> SELECT mgmtclasses.domain_name, mgmtclasses.set_name, mgmtclasses.class_name, mgmtclasses.defaultmc, ar_copygroups.retver, ar_copygroups.destination FROM mgmtclasses mgmtclasses, ar_copygroups ar_copygroups WHERE mgmtclasses.domain_name = ar_copygroups.domain_name AND mgmtclasses.set_name = ar_copygroups.set_name AND mgmtclasses.class_name = ar_copygroups.class_name AND mgmtclasses.set_name='ACTIVE' ORDER BY mgmtclasses.domain_name, mgmtclasses.set_name, mgmtclasses.class_name DOMAIN_NAME SET_NAME RETVER DESTINATION -------------------------------------------------CLASS_NAME -----------------DEFAULTMC ---------------

STANDARD 365 AIX NOLIMIT AIX 30 WINDOWS 30 ...

ACTIVE ARCHIVEPOOL ACTIVE S3584 ACTIVE BACKUPPOOL ACTIVE BACKUPPOOL

STANDARD FOREVER MC_AIX_WEEKLY MC_WIN_WEEKLY

Yes No Yes Yes

Copy Groups
Destination pool of each management class (type: archive copy group)
tsm: SERVER1> SELECT domain_name, class_name, destination FROM ar_copygroups DOMAIN_NAME -----------------AIX AIX AIX ... CLASS_NAME -----------------MC_AIX_DAILY MC_AIX_MONTHLY MC_AIX_NOLIMIT DESTINATION -----------------AIX_DAILY AIX_MONTHLY AIX_NOLIMIT

Destination pool of each management class (type: backup copy group)


tsm: SERVER1> SELECT domain_name, class_name, destination FROM bu_copygroups WHERE set_name='ACTIVE' DOMAIN_NAME -----------------AIX AIX ... CLASS_NAME -----------------MC_AIX_DAILY MC_AIX_TDP DESTINATION -----------------AIX_DAILY AIX_DAILY

Some information about archive copy group


tsm: SERVER1> SELECT domain_name,set_name,class_name,retver,destination FROM ar_copygroups DOMAIN_NAME SET_NAME DESTINATION ----------------------------------------------------AIX ACTIVE AIX_DAILY AIX ACTIVE AIX_MONTHLY AIX ACTIVE NOLIMIT AIX_NOLIMIT AIX STANDARD AIX_DAILY CLASS_NAME -----------------MC_AIX_DAILY MC_AIX_MONTHLY MC_AIX_NOLIMIT MC_AIX_DAILY 7 RETVER -----7 365

AIX AIX_MONTHLY AIX NOLIMIT ...

STANDARD STANDARD AIX_NOLIMIT

MC_AIX_MONTHLY MC_AIX_NOLIMIT

365

tsm: SERVER1> SELECT domain_name,set_name,class_name,retver,destination FROM ar_copygroups WHERE set_name='ACTIVE' DOMAIN_NAME SET_NAME DESTINATION ----------------------------------------------------AIX ACTIVE AIX_DAILY AIX ACTIVE AIX_MONTHLY AIX ACTIVE NOLIMIT AIX_NOLIMIT ... CLASS_NAME -----------------MC_AIX_DAILY MC_AIX_MONTHLY MC_AIX_NOLIMIT RETVER -----7 365

Some information about backup copy group


tsm: SERVER1> SELECT domain_name,set_name,class_name,verexists,verdeleted,retextra,retonly,destina tion FROM bu_copygroups DOMAIN_NAME SET_NAME CLASS_NAME RETEXTRA RETONLY DESTINATION ------------- ------------ ---------------- -------- -------------AIX ACTIVE MC_AIX_DAILY 15 AIX_DAILY AIX ACTIVE MC_AIX_TDP 15 AIX_DAILY AIX STANDARD MC_AIX_DAILY 15 AIX_DAILY AIX STANDARD MC_AIX_TDP 15 AIX_DAILY ... VEREXISTS --------2 NOLIMIT 2 NOLIMIT VERDELETED ---------1 NOLIMIT 1 NOLIMIT -----7 15 7 15

Activity Log
Search in the activity log for missed schedules in the last 2 hours
tsm: SERVER1> SELECT date_time,message FROM actlog WHERE originator='SERVER' AND message LIKE'ANR2578W%' AND date_time>=current_timestamp-2 hours DATE_TIME -----------------MESSAGE ------------------

2007-07-26 14:00:01.000000

ANR2578W Schedule ORACLE_HOME in domain AIX for node SERVER-1 has missed its scheduled start up window.

Search in the activity log for messages with Error severity in the last 1 hour
tsm: SERVER1> SELECT date_time,message FROM actlog WHERE originator='SERVER' AND severity='E' AND date_time>current_timestamp-1 hours DATE_TIME -----------------2007-07-27 10:22:17.000000 MESSAGE -----------------ANR2034E QUERY SPACETRIGGER: No match found using this criteria.( SESSION: 252982)

Search in the activity log for successful, missed or failed schedules in the last 1 day
tsm: SERVER1> SELECT date_time,severity,message FROM actlog WHERE originator='SERVER' AND ( message LIKE'ANR2507I%' OR message LIKE'ANR2751I%' OR message LIKE'ANR2578W%' OR message LIKE'ANR2579E%') AND date_time>timestamp(current_date)-(1)days DATE_TIME -----------------2007-07-25 00:14:48.000000 SEVERITY -----------------I MESSAGE ------------------ANR2507I Schedule IN_APP1 for domain NT started at 07/24/07 22:30:00 for node SERVER-2 completed successfully at 07/25/07 00:14:48.(SESSION: 233833) ANR2579E Schedule INC_APP2 in domain NT for node SERVER-3 failed (return code 1).(SESSION: 234285) ANR2578W Schedule

2007-07-25 00:30:03.000000

2007-07-25

00:40:01.000000

ORACLE_HOME in domain AIX for node SERVER-1 has missed its scheduled start up window.

Search in the activity log for a specific ANR in the last 1 day
tsm: SERVER1> SELECT date_time,severity,message from actlog WHERE message LIKE'ANR8438I%' and date_time>timestamp(current_date)-(1)days DATE_TIME -----------------2007-07-27 09:21:19.000000 SEVERITY -----------------I MESSAGE -----------------ANR8438I CHECKOUT LIBVOLUME for volume R00135L3 in library 3584 completed successfully.(SESSION: 252515, PROCESS: 470) ANR8438I CHECKOUT LIBVOLUME for volume R00049L3 in library 3584 completed successfully.(SESSION: 252515, PROCESS: 471)

2007-07-27 09:21:28.000000

Summary
Summary of archive operations in the last 7 days
tsm: SERVER1> select cast(float(sum(bytes))/1024/1024/1024 as dec(8,2)) as "Archive data in GB" from summary where activity='ARCHIVE' and end_time>timestamp(current_date)-(7)days Archive data in GB -------------------14508.09

Summary of backup operations in a specific range


tsm: SERVER1> SELECT CAST(FLOAT(SUM(bytes))/1024/1024/1024 AS DEC(8,2)) AS "Backed up data in GB" FROm summary WHERE activity='ARCHIVE' AND start_time >{ts '2007-06-01 00:00:00'} AND start_time <{ts '2007-07-01 00:00:00'} Backed up data in GB --------------------

38829.70

Statistics of archive, backup, restore and retrieve operations per node in the last 7 days (GB)
tsm: SERVER1> SELECT entity, activity, CAST(FLOAT(SUM(bytes)) / 1024 / 1024 / 1024 AS DECIMAL(8,2)) FROM summary WHERE end_time>current_timestamp-(7)DAY and ( activity='ARCHIVE' OR activity='BACKUP' OR activity='RESTORE' OR activity='RETRIEVE' ) GROUP BY entity, activity ENTITY -----------------SERVER-01 SERVER-01 SERVER-01 SERVER-02 SERVER-02 SERVER-03 SERVER-04 SERVER-04 ... ACTIVITY -----------------ARCHIVE BACKUP RESTORE ARCHIVE BACKUP ARCHIVE ARCHIVE BACKUP Unnamed[3] ---------81.14 261.68 2.91 171.51 0.00 17.64 168.32 530.77

Summary of Operations in the Last 24 Hours (GB)


tsm: SERVER1> SELECT activity, cast(float(sum(bytes))/1024/1024/1024 as dec(8,2)) as "GB" FROM summary WHERE activity<>'TAPE MOUNT' AND activity<>'EXPIRATION' AND end_time>current_timestamp-24 hours GROUP BY activity ACTIVITY -----------------BACKUP FULL_DBBACKUP MIGRATION RECLAMATION STGPOOL BACKUP GB ---------858.56 1.15 496.28 652.14 496.10

Volumes reclaimed in the last 48 Hours


tsm: SERVER1> SELECT start_time, end_time-start_time AS ELAPTIME, activity, number, entity, mediaw, successful FROM summary WHERE activity='RECLAMATION' AND end_time>current_timestamp-48 hours START_TIME ELAPTIME ACTIVITY NUMBER ENTITY MEDIAW SUCCESSFUL ----------------- ---------------------- --------------- ---------- ----------------- --------- -------------2008-11-20 0 00:22:31.000000 RECLAMATION 704 DAILY (VOL076L4) 15 YES 12:00:15.000000

2008-11-20 (VOL066L4) 13 12:22:46.000000 2008-11-20 (VOL008L4) 16 12:45:48.000000 2008-11-22 (VOL092L4) 51 12:00:29.000000 2008-11-22 (VOL100L4) 21 12:40:47.000000

0 00:23:01.000000 RECLAMATION YES 0 00:13:40.000000 RECLAMATION YES 0 00:40:18.000000 RECLAMATION YES 0 00:29:51.000000 RECLAMATION YES

704 DAILY 704 WEEKLY 715 DAILY 715 DAILY

Volumes reclaimed in the last 48 Hours (better date format?!)


tsm: SERVER1> SELECT substr(char(start_time),1,19) AS START_TIME, substr(char(end_time - start_time),1,10) AS "ELAPTIME (D HHMMSS)", activity, number, entity, mediaw, successful FROM summary WHERE activity='RECLAMATION' AND end_time>current_timestamp-48 hours START_TIME ELAPTIME (D HHMMSS) MEDIAW SUCCESSFUL --------------- ---------------------------- ----------- -------------2008-11-20 0 00:22:31 (VOL076L4) 15 YES 12:00:15 2008-11-20 0 00:23:01 (VOL066L4) 13 YES 12:22:46 2008-11-20 0 00:13:40 (VOL008L4) 16 YES 12:45:48 2008-11-22 0 00:40:18 (VOL092L4) 51 YES 12:00:29 2008-11-22 0 00:29:51 (VOL100L4) 21 YES 12:40:47 ACTIVITY --------------RECLAMATION RECLAMATION RECLAMATION RECLAMATION RECLAMATION NUMBER ---------704 704 704 715 715 ENTITY -------DAILY DAILY WEEKLY DAILY DAILY

Volumes
Number of scratch volumes
tsm: SERVER1> SELECT COUNT(*) FROM libvolumes WHERE status='Scratch' Unnamed[1] ----------18

Number of scratch volumes in library 3584

tsm: SERVER1> SELECT COUNT(*) FROM libvolumes WHERE status='Scratch' and library_name='3584' Unnamed[1] ----------18

Number of scratch volumes for each library


tsm: SERVER1> SELECT library_name,COUNT(*) FROM libvolumes WHERE status='Scratch' GROUP BY library_name LIBRARY_NAME -----------------3584 Unnamed[2] ----------18

Number of volumes per device class


tsm: SERVER1> SELECT devclass_name, COUNT(*) FROM volumes GROUP BY devclass_name DEVCLASS_NAME -----------------3584 DISK Unnamed[2] ----------133 6

Number of volumes per storage pool


tsm: SERVER1> SELECT stgpool_name,COUNT(*) FROM volumes GROUP BY stgpool_name STGPOOL_NAME -----------------AIX_ANUAL AIX_ARCH1 AIX_ARCH2 AIX_DAILY AIX_MONTHLY AIX_NOLIMIT NT_DAILY NT_MONTHLY Unnamed[2] ----------4 2 2 20 4 1 41 22

Number of volumes unavailable


tsm: SERVER1> SELECT COUNT(*) FROM volumes WHERE access='UNAVAILABLE' Unnamed[1] ----------0

Number of volumes in error state

tsm: SERVER1> SELECT COUNT(*) FROM volumes WHERE error_state='YES' Unnamed[1] ----------1

Volumes with write or read errors in the library


tsm: SERVER1> SELECT volumes.volume_name, volumes.stgpool_name, volumes.pct_utilized, volumes.status, volumes.write_errors, volumes.read_errors FROM volumes, libvolumes WHERE volumes.volume_name=libvolumes.volume_name AND ( volumes.write_errors>0 OR volumes.read_errors>0 ) VOLUME_NAME STGPOOL_NAME WRITE_ERRORS READ_ERRORS ---------------------------------------------------------P10128 AIX_DAILY 1 0 P10129 AIX_DAILY 2 0 P10135 NT_MONTHLY 0 1 ... PCT_UTILIZED -----------27.1 8.2 22.3 STATUS --------------FILLING FULL FILLING

Number of volumes per library


tsm: SERVER1> SELECT library_name,COUNT(*) FROM libvolumes GROUP BY library_name LIBRARY_NAME -----------------3584 Unnamed[2] ----------72

Volume information ordered by (%) reclaim


tsm: SERVER1> SELECT volume_name,devclass_name,stgpool_name,pct_reclaim,pct_utilized,status,access FROM volumes order by pct_reclaim VOLUME_NAME DEVCLASS_NAME STATUS ACCESS --------------- ------------------------------ ------------TA0148L4 D3584 FILLING READWRITE TA0149L4 D3584 FILLING READWRITE TA0045L4 D3584 FILLING READWRITE TA0144L4 D3584 FILLING READWRITE STGPOOL_NAME PCT_RECLAIM PCT_UTILIZED

---------------- ----------- -----------DAILY DAILY DAILY DAILY 0.0 0.0 0.1 0.1 9.7 13.5 0.1 24.0

TA0122L4 FILLING TA0172L4 FILLING TA0023L4 FILLING TA0125L4 FULL ...

D3584 READWRITE D3584 READWRITE D3584 READWRITE D3584 READWRITE

WEEKLY DAILY DAILY WEEKLY

0.2 0.2 0.3 0.3

23.3 0.0 0.0 99.6

Full volumes with utilization (%) less than XX


tsm: SERVER1> SELECT volume_name,devclass_name,stgpool_name,pct_reclaim,pct_utilized FROM volumes WHERE status='FULL' AND pct_utilized < 10 VOLUME_NAME PCT_UTILIZED -------------------------R00010L3 5.2 R00015L3 0.0 R00026L3 6.0 R00028L3 0.0 ... DEVCLASS_NAME -----------------3584 3584 3584 3584 STGPOOL_NAME ---------------NT_DAILY AIX_DDAILY NT_DAILY AIX_DAILY PCT_RECLAIM ----------94.9 99.9 94.2 99.9

Full volumes with reclaimable space (%) greater than XX


tsm: SERVER1> SELECT volume_name,devclass_name,stgpool_name,pct_reclaim,pct_utilized FROM volumes WHERE status='FULL' AND pct_reclaim >90 VOLUME_NAME PCT_UTILIZED -------------------------R00010L3 5.2 R00015L3 0.0 R00026L3 6.0 R00028L3 0.0 ... DEVCLASS_NAME -----------------3584 3584 3584 3584 STGPOOL_NAME ---------------NT_DAILY AIX_DAILY NT_DAILY AIX_DAILY PCT_RECLAIM ----------94.9 99.9 94.2 99.9

Full volumes with reclaimable space (%) greater than XX in the library

tsm: SERVER1> SELECT volumes.volume_name, volumes.stgpool_name, volumes.pct_utilized, volumes.pct_reclaim, volumes.status, volumes.access FROM volumes, libvolumes WHERE volumes.volume_name=libvolumes.volume_name AND volumes.status='FULL' AND volumes.pct_reclaim>80 ORDER BY stgpool_name VOLUME_NAME STGPOOL_NAME ACCESS ------------------ --------------------------- -----------------256AFB NIGHTLY READWRITE 295AFB NIGHTLY READWRITE ... PCT_UTILIZED -----------12.4 11.3 PCT_RECLAIM ----------87.5 88.6 STATUS -------FULL FULL

Volumes in a specific storage pool with reclaimable space (%) greater than XX
tsm: SERVER1> SELECT volume_name,devclass_name,stgpool_name,pct_reclaim,pct_utilized FROM volumes WHERE pct_reclaim>80 AND stgpool_name='OFFSITE' VOLUME_NAME DEVCLASS_NAME PCT_RECLAIM PCT_UTILIZED -------------------------------------------------tape11 LTO 99.9 0.0 tape84 LTO 85.0 15.0 tape86 LTO 90.3 9.6 tape90 LTO 90.3 9.6 ... STGPOOL_NAME -----------------OFFSITE OFFSITE OFFSITE OFFSITE ------

Number of tapes per storage pool in the library


tsm: SERVER1> SELECT volumes.stgpool_name, count(*) FROM volumes, libvolumes WHERE volumes.volume_name=libvolumes.volume_name GROUP BY stgpool_name STGPOOL_NAME -----------------AIX_DAILY AIX_ARCH1 ... Unnamed[2] ----------338 22

Some information about volumes in the library


tsm: SERVER1> SELECT volume_name, stgpool_name, pct_utilized, pct_reclaim, status, access FROM volumes WHERE volume_name IN ( SELECT volume_name FROM libvolumes )

VOLUME_NAME ACCESS ----------------- -----------290AFB READWRITE 241AFB READWRITE 265AFB READWRITE 365AFB READWRITE ...

STGPOOL_NAME ---------------AIX_DAILY AIX_DAILY NT_MONTHLY AIX_ARCH1

PCT_UTILIZED -----------59.3 59.8 0.4 47.7

PCT_RECLAIM ----------41.2 40.1 0.1 0.0

STATUS -----------FILLING FULL FILLING FILLING

Some information about volumes in the library - another way


tsm: SERVER1> SELECT volumes.volume_name, volumes.stgpool_name, volumes.pct_utilized, volumes.pct_reclaim, volumes.status, volumes.access FROM volumes, libvolumes WHERE volumes.volume_name=libvolumes.volume_name ORDER BY stgpool_name VOLUME_NAME STGPOOL_NAME ACCESS ------------------ --------------------------- -----------------290AFB AIX_DAILY READWRITE 241AFB AIX_DAILY READWRITE 265AFB NT_MONTHLY READWRITE 365AFB AIX_ARCH1 READWRITE ... PCT_UTILIZED -----------59.3 59.8 0.4 47.7 PCT_RECLAIM ----------41.2 40.1 0.1 0.0 STATUS -------FILLING FULL FILLING FILLING

Nodes that have data stored in a specifc volume


tsm: SERVER1> SELECT DISTINCT node_name, volume_name, stgpool_name FROM volumeusage WHERE volume_name='TAPE10' NODE_NAME -----------------NODE45 NODE10 NODE33 NODE20 VOLUME_NAME -----------------TAPE10 TAPE10 TAPE10 TAPE10 STGPOOL_NAME -----------------DAILY DAILY DAILY DAILY

Number of nodes that have data stored per volume


tsm: SERVER1> SELECT volume_name, stgpool_name, COUNT(DISTINCT node_name) AS "Number of Nodes" FROM -

volumeusage GROUP BY volume_name, stgpool_name VOLUME_NAME ----------------TA0016L4 TA0017L4 TA0018L4 TA0019L4 TA0023L4 ... STGPOOL_NAME ----------------DAILY DAILY WEEKLY DAILY DAILY Number of Nodes --------------31 1 30 44 1

Number of volumes in the library per owner (useful in a library manager environment)
tsm: SERVER1> SELECT owner,count(*) FROM libvolumes WHERE status<>'Scratch' GROUP BY owner OWNER -----------------library_client_1 library_client_2 library_client_3 library_client_4 library_server Unnamed[2] ----------141 105 53 101 257

Storage Pools
Compare size and number of files between two storage pools
tsm: SERVER1> SELECT stgpool_name,SUM(logical_mb)AS Logical_MB,SUM(num_files)AS Num_Files FROM occupancy WHERE stgpool_name='DAILY' OR stgpool_name='COPY_DAILY' GROUP BY stgpool_name STGPOOL_NAME ---------------DAILY COPY_DAILY LOGICAL_MB ------------------------1277890.99 1246583.48 NUM_FILES ----------350851 350639

Utilization (%) of storage pool disk_pool


tsm: SERVER1> SELECT pct_utilized FROM stgpools WHERE stgpool_name='DISK_POOL' PCT_UTILIZED -----------20.9

Maximum scratch volumes allowed and number of volumes used per stgpool (needs tsm version +5.3)

tsm: SERVER1>SELECT stgpool_name,devclass,maxscratch,numscratchused FROM stgpools STGPOOL_NAME NUMSCRATCHUSED -----------------DAILY 521 DEVCLASS -----------------3584 MAXSCRATCH ----------1100 -------------

Volume History
Number of full tsm db backups in the last 24 hours
tsm: SERVER1> SELECT COUNT(*) FROM volhistory WHERE type='BACKUPFULL' AND date_time>=current_timestamp-24 hours Unnamed[1] ----------1

Number of full or incremental tsm db backups in the last 24 hours


tsm: SERVER1> SELECT COUNT(*) FROM volhistory WHERE ( type='BACKUPFULL' OR type='BACKUPINCR' ) AND date_time>=current_timestamp-24 hours Unnamed[1] ----------2

Information about tsm db backups in the last 48 hours


tsm: SERVER1> SELECT date_time, type, backup_series, volume_seq, devclass, volume_name FROM volhistory WHERE ( type='BACKUPFULL' OR type='BACKUPINCR' OR type='DBSNAPSHOT' ) AND date_time>=current_timestamp-48 hours DATE_TIME TYPE DEVCLASS VOLUME_NAME ------------------------------------------------------2008-11-19 BACKUPFULL 3584 TAPE10 04:01:55.000000 2008-11-20 BACKUPFULL 3584 TAPE48 04:02:20.000000 BACKUP_SERIES ------------3878 3879 VOLUME_SEQ ---------1 1 -

DRM

Information about drm volumes


tsm: SERVER1> SELECT drmedia.volume_name, volumes.stgpool_name, drmedia.state, drmedia.voltype, volumes.status, volumes.pct_utilized FROM drmedia, volumes WHERE drmedia.volume_name=volumes.volume_name ORDER BY drmedia.state VOLUME_NAME STGPOOL_NAME STATUS PCT_UTILIZED ------------------ ---------------------------------- -----------tape06 OFFSITE EMPTY 0.0 tape18 OFFSITE FILLING 50.6 tape38 OFFSITE FILLING 80.9 tape79 OFFSITE FILLING 91.0 ... STATE -----------------COURIERRETRIEVE VAULT VAULT VAULT VOLTYPE -----------CopyStgPool CopyStgPool CopyStgPool CopyStgPool -

Information about drm volumes in the library


tsm: SERVER1> SELECT drmedia.volume_name, drmedia.state, drmedia.voltype FROM drmedia, libvolumes WHERE drmedia.volume_name=libvolumes.volume_name ORDER BY voltype VOLUME_NAME -----------------tape48 tape59 ... STATE -----------------MOUNTABLE MOUNTABLE VOLTYPE -----------CopyStgPool CopyStgPool

Information about drm volumes in the library (another way)


tsm: SERVER1> SELECT volume_name, state, voltype FROM drmedia WHERE volume_name IN ( SELECT volume_name FROM libvolumes ) ORDER BY voltype VOLUME_NAME -----------------tape48 tape59 ... STATE -----------------MOUNTABLE MOUNTABLE VOLTYPE -----------CopyStgPool CopyStgPool

Information about drm volumes in the library with state different from "MOUNTABLE"
tsm: SERVER1> SELECT drmedia.volume_name, drmedia.state, drmedia.voltype FROM drmedia, libvolumes WHERE drmedia.volume_name=libvolumes.volume_name AND drmedia.state<>'MOUNTABLE' VOLUME_NAME -----------------STATE -----------------VOLTYPE ------------

tape36 tape82 ...

COURIER COURIER

CopyStgPool CopyStgPool

Drm volumes with tsm db backups


tsm: SERVER1> SELECT volume_name, state, upd_date, location, voltype FROM drmedia WHERE voltype='DBBackup' OR voltype='DBSnapshot' VOLUME_NAME STATE LOCATION VOLTYPE --------------------------------------------------------tape10 VAULT Mountain DBBackup tape15 Mountain tape45 Mountain ... VAULT DBBackup VAULT DBBackup UPD_DATE -----------------2008-03-05 11:00:00.000000 2008-03-04 11:00:00.000000 2008-03-03 -----Iron Iron Iron

Number of Volumes per DRM State


tsm: SERVER1> SELECT state,count(*) as "Number of volumes" FROM drmedia GROUP BY state STATE -----------------COURIERRETRIEVE MOUNTABLE VAULT VAULTRETRIEVE Number of volumes ----------------26 2 76 1

Sessions
Number of nodes sessions
tsm: SERVER1> SELECT COUNT(*) FROM sessions WHERE session_type='Node' Unnamed[1] ----------16

Number of nodes sessions in Media Wait state


tsm: SERVER1> SELECT COUNT(*) FROM sessions WHERE session_type='Node' AND state='MediaW'

Unnamed[1] ----------1

Nodes sessions in Media Wait state


tsm: SERVER1> SELECT client_name, session_id, start_time, state, mount_point_wait, input_mount_wait, input_vol_wait FROM sessions WHERE state='MediaW' CLIENT_NAME SESSION_ID START_TIME STATE MOUNT_POINT_WAIT INPUT_MOUNT_WAIT INPUT_VOL_WAIT ----------------------- ---------------------------------------------- ---------------NODE23 1577742 2008-11-21 MediaW ,F00827,81 11:26:03.000000 NODE15 1581236 2008-11-21 MediaW 11:37:06.000000

--------------

Nodes using tapes (drives)


tsm: SERVER1> SELECT client_name, session_id, start_time, state, bytes_sent, bytes_received, input_vol_access, output_vol_access FROM sessions WHERE ( input_vol_access is not NULL OR output_vol_access is not NULL ) CLIENT_NAME SESSION_ID START_TIME STATE BYTES_SENT BYTES_RECEIVED INPUT_VOL_ACCESS OUTPUT_VOL_ACCESS ------------- ----------- ------------------ --------- -------------- ----------------- ------------------ -----------------NODE10 1578627 2008-11-21 RecvW 476 2913518005 ,3M0922,1214 08:37:41.000000 NODE25 1578776 2008-11-21 RecvW 540 123087561 ,F01091,117 08:46:52.000000

Information about sessions from a specific node


tsm: SERVER1> SELECT session_id, start_time, commmethod, state, wait_seconds, CAST(bytes_sent/1024/1024 AS DEC(8,2)) AS "MB_Sent", CAST(bytes_received/1024/1024 AS DEC(8,2)) AS "MB_Rcvd", mount_point_wait FROM sessions WHERE client_name='MY_NODE' SESSION_ID START_TIME COMMMETHOD STATE WAIT_SECONDS MB_Sent MB_Rcvd MOUNT_POINT_WAIT -------------------------------------------------------------------------------------------1569587 2008-11-20 Tcp/Ip RecvW 0 0.00 1648.92 10:23:37.000000

-------

Performance of nodes sessions

tsm: SERVER1> SELECT client_name,session_id, current_timestamp-start_time AS ElapTime, commmethod, state, CAST(bytes_sent/1024/1024 AS DEC(8,2)) AS "MB_Sent", CAST(bytes_received/1024/1024 AS DEC(8,2)) AS "MB_Rcvd", cast((cast(bytes_sent as dec(18,0))/cast((current_timestamp-start_time) seconds as decimal(18,0))) / 1024 / 1024 AS DEC (18,2)) AS "Sent_MB/s", cast((cast(bytes_received as dec(18,0))/cast((current_timestamp-start_time) seconds as decimal(18,0))) / 1024 / 1024 AS DEC (18,2)) AS "Rcvd_MB/s" FROM sessions WHERE session_type='Node' CLIENT_NAME SESSION_ID ELAPTIME MB_Sent MB_Rcvd Sent_MB/s Rcvd_MB/s ------------- ----------- ----------------------------- ---------- ------------ ------------NODE10 76499 0 20:53:40.000000 0.03 402998.64 0.00 5.35 NODE34 76500 0 20:53:40.000000 0.03 398363.23 0.00 5.29 NODE28 76501 0 20:52:18.000000 0.02 370801.49 0.00 4.93 NODE79 76502 0 20:52:01.000000 0.03 443600.35 0.00 5.90 ... COMMMETHOD STATE

--------------- --------- Tcp/Ip Tcp/Ip Tcp/Ip Tcp/Ip Run RecvW RecvW Run

Backups
Search a specific file from a Node
tsm: SERVER1> SELECT * FROM backups WHERE node_name='MY_NODE' AND ll_name='dsm.opt' NODE_NAME: FILESPACE_NAME: FILESPACE_ID: STATE: TYPE: HL_NAME: LL_NAME: OBJECT_ID: BACKUP_DATE: DEACTIVATE_DATE: OWNER: CLASS_NAME: NODE_NAME: FILESPACE_NAME: FILESPACE_ID: STATE: TYPE: HL_NAME: LL_NAME: OBJECT_ID: BACKUP_DATE: DEACTIVATE_DATE: MY_NODE /opt 6 ACTIVE_VERSION FILE /tivoli/tsm/client/ba/bin/ dsm.opt 8395325 2008-11-03 19:02:35.000000 root DEFAULT MY_NODE /opt 6 ACTIVE_VERSION FILE /tivoli/tsm/client/domino/bin/domdsmc_notesb/ dsm.opt 8091124 2008-10-27 19:14:35.000000

OWNER: notesuser CLASS_NAME: DEFAULT NODE_NAME: FILESPACE_NAME: FILESPACE_ID: STATE: TYPE: HL_NAME: LL_NAME: OBJECT_ID: BACKUP_DATE: DEACTIVATE_DATE: OWNER: CLASS_NAME: MY_NODE /opt 6 INACTIVE_VERSION FILE /tivoli/tsm/client/ba/bin/ dsm.opt 8091063 2008-10-27 19:14:34.000000 2008-11-03 19:02:35.000000 root DEFAULT

Search a specific file from a node with more details


tsm: SERVER1> SELECT * FROM backups WHERE node_name='MY_NODE' AND filespace_name='/opt' AND hl_name='/tivoli/tsm/client/ba/bin/' AND ll_name='dsm.opt' NODE_NAME: FILESPACE_NAME: FILESPACE_ID: STATE: TYPE: HL_NAME: LL_NAME: OBJECT_ID: BACKUP_DATE: DEACTIVATE_DATE: OWNER: CLASS_NAME: NODE_NAME: FILESPACE_NAME: FILESPACE_ID: STATE: TYPE: HL_NAME: LL_NAME: OBJECT_ID: BACKUP_DATE: DEACTIVATE_DATE: OWNER: CLASS_NAME: MY_NODE /opt 6 ACTIVE_VERSION FILE /tivoli/tsm/client/ba/bin/ dsm.opt 8395325 2008-11-03 19:02:35.000000 root DEFAULT MY_NODE /opt 6 INACTIVE_VERSION FILE /tivoli/tsm/client/ba/bin/ dsm.opt 8091063 2008-10-27 19:14:34.000000 2008-11-03 19:02:35.000000 root DEFAULT

Objects backed up of a specific node in the last 24 hours


tsm: SERVER1> SELECT backup_date,filespace_name,type,hl_name,ll_name,owner, class_name FROM backups WHERE node_name='MY_NODE' AND backup_date>=current_timestamp-24 hours

BACKUP_DATE FILESPACE_NAME TYPE OWNER CLASS_NAME ---------------- ----------------- ------------------ ----------- ------------2008-11-19 / FILE root DEFAULT 19:04:08.000000 2008-11-19 / FILE showdasd.list root DEFAULT 19:04:08.000000 2008-11-19 / FILE root DEFAULT 19:04:08.000000 2008-11-19 /home FILE .bash_history support DEFAULT 19:03:25.000000

HL_NAME --------------/etc/ /etc/ /etc/ /support/

LL_NAME --------mtab

sudoers

Processes
Information about the currently running processes
tsm: SERVER1> SELECT process_num, process, substr(char(start_time),1,19) AS START_TIME, substr(char(current_timestamp - start_time),1,10) AS "ELAPTIME (D HHMMSS)", cast(float(bytes_processed) /1024/1024 AS DEC(8,2)) AS MB, cast((cast(bytes_processed as dec(18,0))/cast((current_timestampstart_time) seconds as decimal(18,0))) / 1024 / 1024 AS DEC (18,2)) AS "MB/s" FROM processes PROCESS_NUM PROCESS MB/s ---------------------------------------------27 Space Reclamation 58925.78 6.61 MB 28 46425.55 29 37984.68 30 41261.84 31 39817.22 32 41910.42 Migration 33.61 Migration 27.50 Migration 29.87 Migration 28.83 Migration 30.34 START_TIME --------------2008-11-22 12:00:29 2008-11-22 14:05:54 2008-11-22 14:05:54 2008-11-22 14:05:54 2008-11-22 14:05:54 2008-11-22 14:05:54 ELAPTIME (D HHMMSS) ------------------0 02:28:26 0 00:23:01 0 00:23:01 0 00:23:01 0 00:23:01 0 00:23:01

33 43771.08

Migration 31.69

2008-11-22 14:05:54

0 00:23:01

Other
Total client data stored (TB)
tsm: SERVER1> SELECT CAST(FLOAT(SUM(logical_mb)) / 1024 / 1024 AS DEC(8,2)) FROM occupancy Unnamed[1] ---------73.04

Total client data stored (TB) (another way - auditocc is updated by audit lic command, take care)
tsm: SERVER1> SELECT CAST(FLOAT(SUM(total_mb)) / 1024 / 1024 AS DEC(8,2)) FROM auditocc Unnamed[1] ---------72.46

Some TSM Server information


tsm: SERVER1> SELECT server_name, platform, VARCHAR(version)||'.'||VARCHAR(release)||'.'||VARCHAR(level)||''||VARCHAR(sublevel), server_hla, server_lla, server_url, logmode, crossdefine, licensecompliance FROM status SERVER_NAME: PLATFORM: Unnamed[3]: SERVER_HLA: SERVER_LLA: SERVER_URL: LOGMODE: CROSSDEFINE: LICENSECOMPLIANCE: TSM-SERVER1 AIX-RS/6000 5.3.3-2 10.10.10.5 1500 NORMAL ON VALID

SQL Table Catalog


tsm: SERVER1>SELECT tabschema,tabname,remarks FROM tables TABSCHEMA --------ADSM TABNAME -----------------ACTLOG REMARKS -----------------Server activity log

ADSM ADSM ADSM ADSM ADSM ADSM ADSM ADSM ADSM ...

ADMINS ADMIN_SCHEDULES ARCHIVES AR_COPYGROUPS ASSOCIATIONS AUDITOCC BACKUPS BACKUPSETS BU_COPYGROUPS

Server administrators Administrative command schedules Client archive files Management class archive copy groups Client schedule associations Server audit occupancy results Client backup files Backup Set Management class backup copy