TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:tmss10volumedelete

This is an old revision of the document!


TMSS10VolumeDelete Examples

Files needed to delete Volumes from a defined list from nominated Customer-ID and Media-ID using TMSS10VolumeDelete.

Examples

Delete Volumes From CSV List

Delete Volumes from TapeTrack from a CSV list, using set Customer-ID and Media-ID Files Required:

  • CSV file of required Volumes
  • Configuration file
  • TTIDEF definition file

CSV File

CSV File volumes.csv

<sxh> 100011L4 100012L4 100023L4 100025L4 100026L4 </sxh>

TTIDEF File

TTIDEF File default.ttidef

Set CSV delimiter to comma, Customer-ID to US01, Media-ID to LTO and extract Barcode value from column one.

<sxh> SetCSVDelimiter(“,”);

SetLiteral(CUSTOMER, “US04”); SetLiteral(MEDIA, “LTO”);

Extract(BARCODE, 1, 8, 0);

</sxh>

Configuration File

Load Scanfile of Volume-ID's, traverse input file.
If Volume-ID is present in the Scanfile delete Volume, if not skip Volume.

Configuration File master.cfg

<sxh> report = {

  format = "csv";

}; traversal = {

 scanfile= { file="default.ttidef"; };
 customer =
 (
    {
       id="*";
       media =
       (
          {
             id="*";
             volume =
             (
                 {
                    id="*";
                    scanfile = true;
                    skip=false;
                 },
                 {
                    id="*";
                    skip=true;
                 }
             );
          }
       );
    }
 );

}; </sxh>

Command Line Syntax

Delete all Volumes in volumes.csv from Customer-ID US01 and Media-ID LTO

<sxh> TMSS10VolumeDelete -S user:-password@server -c master.cfg -l -r * < volumes.csv </sxh>

technote/tmss10volumedelete.1603681963.txt.gz · Last modified: 2025/01/21 22:07 (external edit)