TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:tmss10volumedelete

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
technote:tmss10volumedelete [2019/03/04 22:54] Scott Cunliffetechnote:tmss10volumedelete [2025/01/21 22:07] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Technical NoteTMSS10Volume Delete Examples ======+====== TMSS10VolumeDelete Examples ====== 
 + 
 +Files needed to delete [[object:volume|Volumes]] from a defined list from nominated [[object:customer|Customer-ID]] and [[object:media|Media-ID]] using [[cli:tmss10volumedelete|TMSS10VolumeDelete]]. 
 + 
 +===== Examples  ===== 
 + 
 +==== Delete Volumes From CSV List ==== 
 + 
 +Delete [[object:volume|Volumes]] from TapeTrack from a CSV list, using set [[object:customer|Customer-ID]] and [[object:media|Media-ID]] 
 +Files Required: 
 +  * CSV file of required [[object:volume|Volumes]] 
 +  * Configuration file 
 +  * TTIDEF definition file
  
-===== Example - Delete Volumes From CSV List ===== 
  
 ==== CSV File ==== ==== CSV File ====
  
-<sxh>+CSV File **volumes.csv** 
 + 
 +<code>
 100011L4 100011L4
 100012L4 100012L4
Line 11: Line 24:
 100025L4 100025L4
 100026L4 100026L4
-</sxh>+</code>
  
 ==== TTIDEF File ==== ==== TTIDEF File ====
  
-<sxh>+TTIDEF File **default.ttidef** 
 + 
 +Set CSV delimiter to comma, [[object:customer|Customer-ID]] to US01, [[object:media|Media-ID]] to LTO and extract Barcode value from column one. 
 + 
 +<code>
 SetCSVDelimiter(","); SetCSVDelimiter(",");
  
Line 23: Line 40:
 Extract(BARCODE, 1, 8, 0); Extract(BARCODE, 1, 8, 0);
  
-</sxh>+</code>
  
  
 ==== Configuration File ==== ==== Configuration File ====
  
-<sxh>+Load Scanfile of [[object:volume|Volume-ID's]], traverse input file.  \\ 
 +If [[object:volume|Volume-ID]] is present in the Scanfile delete [[object:volume|Volume]], if not skip [[object:volume|Volume]]. 
 + 
 +Configuration File **master.cfg** 
 + 
 +<code>
 report =  report = 
 { {
Line 48: Line 70:
                    {                    {
                       id="*";                       id="*";
-       scanfile = true;+                      scanfile = true;
                       skip=false;                       skip=false;
                    },                    },
Line 61: Line 83:
    );    );
 }; };
-</sxh>+</code> 
 + 
 +==== Command Line Syntax ==== 
 + 
 +Delete all [[object:volume|Volumes]] in volumes.csv from [[object:customer|Customer-ID]] US01 and [[object:media|Media-ID]] LTO
  
 +<code>
 +TMSS10VolumeDelete -S user:-password@server -c master.cfg -l -r *  < volumes.csv 
 +</code>
  
 +{{tag>technote cli}}
technote/tmss10volumedelete.1551740056.txt.gz · Last modified: 2025/01/21 22:07 (external edit)