A Page for all those useful select statements we spend much too much time trying to work out...! One time it's a good idea not to have upset the DBA's over their backups...

Select Statements can be used within TSM to query it's internal database for information. They provide a much more flexible way of interrogating TSM than many of the builtin query commands.

There are many posts on the adsm-l mailing list requesting and providing select statements for various tasks. This page is here as a repositiory for them, many of the statements here come from ADSM-L. If you would like ot be accredited with posting the statement to ADSM-L, please add your details to the page describing the statement. The contibutor field here relates to who posted the statement to the Wiki.

note:

Pages created as part of this page should be created as 'SubPages'. This entails putting a '/' in front of the WikiName linking to your page. See HelpOnEditing/SubPages

Items on this page have been laid out as tables. Please continue this trend, if you are unsure how read HelpOnTables.

Title

Description

Contributor

/ReclaimableByDays

Reclaimable by days is actually a small TSM script using select statements that shows how many tapes went reclaimable by devclass by day.

MatthewWarren

/MixedMediaScratch

Mixed media scratch is a simple select query to count the number of available scratch volumes by media type per library

MatthewWarren

/AreCopypoolsUpToDate

Shows numfiles and logical occupancy for stgpools per node. If copypools are up to date, occupancies and nufiles should match.

MatthewLarge

/VolumesInStoragePools

Shows a count of volumes per storage pool

MatthewLarge

/NumActiveFilesByNode

Shows a count of active files (IE existed on client at last incremental) per node and filespace.

MatthewLarge

/NumFilesInTsm

Shows a count of the number of files saved in TSM

MatthewLarge

/DataBackedUpLast24H

Shows total GB backed up in previous 24 hours

MatthewLarge

/VersionsOfAFile

Shows file versions and state for given node and file

MatthewLarge

/NumVolumesByNode

Shows the number of volumes used by a given node

MatthewLarge

/NumVolumesForEveryNode

Shows number of volumes used for all nodes

MatthewLarge

/VolumesByNode

Shows the volumes in use for a given node

MatthewLarge

/MigrationInfo

Show information about migrations inthe last 24 hours

MatthewWarren

/BackupMbPerDay

Show how much data was backed up in last 24 hours

MatthewWarren

/ExpirationPerformance

Show the objects/hour for expiration

MatthewWarren

/LongestBackupSessionIn24Hours

Shows longest backup session for given node in last 24 hours

MatthewWarren


The following is a list of all pages in the CategorySelectStatements category


CategorySelectStatements

SelectStatements (last edited 2007-06-07 10:24:40 by MatthewWarren)