Audit Procedure of missing tapes TSM Vs Offsite

LarryB

ADSM.ORG Member
Joined
Apr 17, 2008
Messages
94
Reaction score
1
Points
0
Location
Auckland, New Zealand
Website
www.telstraclear.co.nz
Hi all,


I am looking at writing a script to audit or reconcile tapes offsite at the vault with what the TSM server knows about. Everything would be based at a specific time, e.g. 10pm

If I collect tape information for the TSM server such as
q drmedia
q volhist
q vol
tapes in transit (to/from)

and compare this with a list of tapes held by offsite company. Is this good enough to locate the “orphans” (tapes lost from the TSM server)?

Or better are there any scripts or links that document this?

Question: Is q drmedia a sublist of q vol ? (does q vol have the same tapes as produced by dr media?)
 
select distinct volume_name from volhistory where devclass='YOURDEVCLASS' and volume_name not in (select volume_name from libvolumes where library_name='YOURLIBRARY') and volume_name not in (select volume_name from drmedia) and volume_name not in (select volume_name from volumes where devclass_name='YOURDEVCLASS') order by volume_name
 
Back
Top