TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cli:list_added_at_repository

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cli:list_added_at_repository [2020/01/06 00:33] Scott Cunliffecli:list_added_at_repository [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 20: Line 20:
 To extract all [[object:volume|Volumes]] added between the start of the year 2000 and the end of 2010 and write to file ''historyOut.txt'' To extract all [[object:volume|Volumes]] added between the start of the year 2000 and the end of 2010 and write to file ''historyOut.txt''
  
-<sxh plain;>+<code plain;>
 TMSS10ListHistory -S user:-password@server -R "2000-01-01:2010-12-31" -t "*Added*" -V "*.*.*" > historyOut.txt TMSS10ListHistory -S user:-password@server -R "2000-01-01:2010-12-31" -t "*Added*" -V "*.*.*" > historyOut.txt
-</sxh>+</code>
  
  
Line 31: Line 31:
 The following example instructs TapeTrack to compare each [[object:volume|Volume-ID]] to the Scanfile, if it is present include it in the output file, otherwise skip it and move to the next [[object:volume|Volume]]. The following example instructs TapeTrack to compare each [[object:volume|Volume-ID]] to the Scanfile, if it is present include it in the output file, otherwise skip it and move to the next [[object:volume|Volume]].
  
-<sxh plain;>+<code plain;>
 traversal  traversal 
 { {
Line 61: Line 61:
    );    );
 }; };
-</sxh>+</code>
  
 ===== Definition File ===== ===== Definition File =====
  
-The definition file (default.ttidef) is used to instruct TapeTrack how the data is formatted in the extracted file.+The [[concepts:definition_file|Definition File]] (default.ttidef) is used to instruct TapeTrack how the data is formatted in the extracted file.
  
-<sxh plain;> +<code plain;> 
-# input file for volume comparison (TMSS10ListHistory output)+# input file for Volume comparison (TMSS10ListHistory output)
 SetFile("historyOut.txt"); SetFile("historyOut.txt");
  
Line 79: Line 79:
 # exclude any line starting with - # exclude any line starting with -
 AddString(Exclusion, 0, " -*"); AddString(Exclusion, 0, " -*");
-</sxh>+</code>
  
 ===== Inventory Of Volumes Added Within A Defined Date Range Located In A Specified Repository ===== ===== Inventory Of Volumes Added Within A Defined Date Range Located In A Specified Repository =====
  
-Using the list of [[object:volume|Volumes]] added between the defined date range, we now compare that list to the [[object:volume|Volumes]] located at the specified [[object:repository|Repository]] and output the [[object:volume|Volumes]] to file.+Using the list of [[object:volume|Volumes]] added between the defined date range, we now compare that list to the [[object:volume|Volumes]] located at the specified [[object:repository|Repository]] and output the [[object:volume|Volumes]] to file (inventory_out.txt).
  
-<sxh plain;> +<code plain;> 
-TMSS10Inventory -S tapemaster:-@localhost -V "*.*.*@OFFS" -c "inventory.cfg"inventoryout.txt 2> inventoryerr.txt +TMSS10Inventory -S tapemaster:-@localhost -V "*.*.*@OFFS" -c "inventory.cfg"inventory_out.txt 2> inventory_err.txt 
-</sxh>+</code>
  
-or if you prefer CSV output with [[concepts/unqualified_barcode:Unqualified]] [[object:volume|Volume-ID's]], set the [[variable:start:Environmental Variables]] [[variable:tmssreportformat|TMSSREPORTFORMAT]] and [[variable:tmssunqualifiedvolume|TMSSUNQUALIFIEDVOLUME]].+or if you prefer CSV output with [[concepts:unqualified_barcode|Unqualified]] [[object:volume|Volume-ID's]], set the [[variable:start|Environmental Variables]] [[variable:tmssreportformat|TMSSREPORTFORMAT]] and [[variable:tmssunqualifiedvolume|TMSSUNQUALIFIEDVOLUME]].
  
-<sxh plain;> +<code plain;> 
-set TMSSUNQUALIFIEDVOLUME=1+set TMSSUNQUALIFIEDVOLUME=true
 set TMSSREPORTFORMAT=CSV  set TMSSREPORTFORMAT=CSV 
  
-TMSS10Inventory -S tapemaster:-@localhost -V "*.*.*@OFFS" -c "inventory.cfg"inventoryout.txt 2> inventoryerr.txt +TMSS10Inventory -S tapemaster:-@localhost -V "*.*.*@OFFS" -c "inventory.cfg"inventory_out.csv 2> inventory_err.txt 
-</sxh>+</code>
  
  
cli/list_added_at_repository.1578270810.txt.gz · Last modified: 2025/01/21 22:07 (external edit)