This is an old revision of the document!
Table of Contents
Volumes Added Within A Defined Date Range, Currently Located In A Selected Repository
Listing all volumes added to TapeTrack within a defined range of dates and currently located within a selected repository is a two step process.
You must first extract an inventory listing of all volumes added between the specified range of dates. Then use that file to compare against a listing of all volumes located in the selected repository and extract all volumes that appear in both inventories and export to file.
The comparison of the volumes within the files also requires the use of a configuration file and a definition file to extract the data in the correct format.
Extracting An Inventory Of Volumes Added Within A Defined Date Range
Using the command line program TMSS10ListHistory, along with the attributes:
- -S user:-password@server for logon access
- -R “YYYY-MM-DD:YYYY-MM-DD” to specify the date range
- -t “*Added*” to only extract volume added records
- -V “CUST.MEDIA.*” to limit customer and media types extracted if required
Output from this process needs to be captured and written to file using stdout.
To extract all volumes added between the start of the year 2000 and the end of 2010 and write to file historyOut.txt
TMSS10ListHistory -S user:-password@server -R "2000-01-01:2010-12-31" -t "*Added*" -V "*.*.*" > historyOut.txt
Configuration File
The configuration file is used for traversal of the history (volumes added) file for comparison of volumes currently in the selected repository.
The following example instructs TapeTrack to compare each volume ID to the scanfile, if it is present include it in, otherwise skip it and move to the next volume.
traversal { scanfile= { file="scanfile.ttidef"; }; customer = ( { id="*"; media = ( { id="*"; volume = ( { id="*"; scanfile = true; skip=false; }, { id="*"; skip=true; } ); } ); } ); };