TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


cookbook:dataprotector

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
cookbook:dataprotector [2018/10/12 00:21] โ€“ [Example Synchronization Definition] Scott Cunliffecookbook:dataprotector [2025/01/21 22:07] (current) โ€“ external edit 127.0.0.1
Line 1: Line 1:
 ====== Data Protector Sync Cookbook ====== ====== Data Protector Sync Cookbook ======
  
-Data Protector is a HP enterprise backup solution and is available for Windows, UNIX and Linux.+[[https://en.wikipedia.org/wiki/HP_Data_Protector|Data Protector]] is a HP enterprise backup solution and is available for Windows, UNIX and Linux.
  
 ===== The omnirpt command ===== ===== The omnirpt command =====
Line 10: Line 10:
 The ''omnirpt'' command generates various reports about the Data Protector environment The ''omnirpt'' command generates various reports about the Data Protector environment
  
-<sxh+<code
-omnirpt -report media_list -tab > var\dataprotector.txt +omnirpt -report media_list -tab > var\dataprotector.csv 
-</sxh>+</code>
  
 ==== Example omnirpt output ==== ==== Example omnirpt output ====
  
-<sxh>+<code>
 #List of Media #List of Media
 #Cell Manager: gazillabyte.tapetrack.co #Cell Manager: gazillabyte.tapetrack.co
Line 33: Line 33:
 3f04a59e:383c3e6e:0ba4:0001 [000014L7] 000014L7 LIB_1244 Good    8/29/2018 8:53:04 AM 000455.44 4000000.00 8/17/2018 8:08.32 AM LIB Daily LTO-Ultrium 3f04a59e:383c3e6e:0ba4:0001 [000014L7] 000014L7 LIB_1244 Good    8/29/2018 8:53:04 AM 000455.44 4000000.00 8/17/2018 8:08.32 AM LIB Daily LTO-Ultrium
  
-</sxh>+</code>
  
 ==== Converting omnirpt tab file to Fixed length file ==== ==== Converting omnirpt tab file to Fixed length file ====
Line 41: Line 41:
 Run [[cli:tmss10csv2fixed|TMSS10CSV2Fixed]] directing the file ''dataprotector.csv'' through ''stdin'' to get a starting point for columns and offset values, adjust the offsets to match the data you wish to import, omitting data from irrelevant columns with the offset 0 0. Run [[cli:tmss10csv2fixed|TMSS10CSV2Fixed]] directing the file ''dataprotector.csv'' through ''stdin'' to get a starting point for columns and offset values, adjust the offsets to match the data you wish to import, omitting data from irrelevant columns with the offset 0 0.
  
-<sxh>+<code>
 TMSSDELIMETER=TAB TMSSDELIMETER=TAB
  
 TMSS10CSV2Fixed < dataprotector.csv TMSS10CSV2Fixed < dataprotector.csv
-</sxh>+</code>
  
-<sxh>+<code>
              System: TapeTrack              System: TapeTrack
  Report Description: CSV Statistics  Report Description: CSV Statistics
Line 70: Line 70:
  
         tmss10csv2fixed 0 27 28 19 48 8 57 28 86 20 107 10 118 20 139 20 160 11 172 11         tmss10csv2fixed 0 27 28 19 48 8 57 28 86 20 107 10 118 20 139 20 160 11 172 11
-</sxh>+</code>
  
-Changing the offset values to pick up volume ID (column 2, offset 30 length 8), location (column 3, offset 48, length 8) and description (column 9, offset 160, length 12).+Changing the offset values to pick up Volume-ID (column 2, offset 30 length 8), location (column 3, offset 48, length 8) and description (column 9, offset 160, length 12).
  
-<sxh+<code
-TMSS10CSV2Fixed 0 0 30 48 8 0 0 0 0 0 0 0 0 0 0 160 12 0 0 < dataprotector.csv > dataprotectorFixed.txt+TMSS10CSV2Fixed 0 0 17 8 0 0 0 0 0 0 0 0 0 0 35 12 0 0 < dataprotector.csv > dataprotectorFixed.txt
  
-</sxh>+</code>
  
 Sample output with selected columns Sample output with selected columns
  
-<sxh>+<code>
 Label            Location          Pool Label            Location          Pool
 000005L7         LIB_1244          LIB Daily 000005L7         LIB_1244          LIB Daily
Line 93: Line 93:
 000013L7                           LIB Daily 000013L7                           LIB Daily
 000014L7         LIB_1244          LIB Daily 000014L7         LIB_1244          LIB Daily
-</sxh>+</code>
  
 ===== Synchronization ===== ===== Synchronization =====
Line 107: Line 107:
 ==== Example Command Line Arguments ==== ==== Example Command Line Arguments ====
  
-<sxh plain;>+<code plain;>
 TMSS10Sync -d dp.ttidef -a -S batch:-password@server < dataprotectorFixed.txt TMSS10Sync -d dp.ttidef -a -S batch:-password@server < dataprotectorFixed.txt
-</sxh>+</code>
  
 Where: Where:
   * ''-d'' is the path to the Synchronization Definition File.   * ''-d'' is the path to the Synchronization Definition File.
   * ''-a'' tells the program to add new tape volumes if they are encountered.   * ''-a'' tells the program to add new tape volumes if they are encountered.
-  * ''-S'' tells the program what server to connect to.+  * ''-S'' tells the program what [[cli:server_argument|Server]] to connect to.
   * ''dataprotectorFixed.txt'' is the ''omnirpt'' output that has been pre-processed through the [[cli:tmss10csv2fixed|TMSS10CSV2Fixed]] program   * ''dataprotectorFixed.txt'' is the ''omnirpt'' output that has been pre-processed through the [[cli:tmss10csv2fixed|TMSS10CSV2Fixed]] program
  
 ==== Example Synchronization Definition ==== ==== Example Synchronization Definition ====
  
-<sxh> +<code>
-# Object Type: TapeTrack Sync Definition File +
-# Description: Sample minimal template +
-#      System: TapeTrack +
-#    SecLevel: Propriatory +
-#   Copyright: (c) 2016 GazillaByte LLC+
 # #
-SetLiteral(CUSTOMER, โ€œACME"); # Set the Customer-ID to a literal value of ACME +# Set the Customer and Media as literal values as they never change 
-SetLiteral(MEDIA, "LTO"); # Set the Media-ID to a literal value of LTO +
-Extract(VOLUME, 0, 10, 0); # Extract the Volume-ID from the offset 0 with a length of 10 bytes +SetLiteral(CUSTOMER, "ACME"); 
-CleanVolume();                  #       Remove unwanted caharacters from the volume ID+SetLiteral(MEDIA, "LTO");
  
 +#
 +# Get the Volume-ID 
 +#
 +Extract(VOLUME, 1, 8, 0);
  
-Extract(DESCRIPTION, 6030, 0); +
 +# Get the Repository from a translated location Name 
 +
 +Extract(REPOSITORY, 17, 10, 0); 
 +RemoveSpaces(REPOSITORY); 
 +AddTranslation(REPOSITORY, "*Lib*", "LIBR"); 
 +AddTranslation(REPOSITORY, "*", "OFFS); 
 + 
 +
 +# Set the Description to the Pool Name 
 +
 +Extract(DESCRIPTION, 3540, 0);
 RemoveSpaces(DESCRIPTION); RemoveSpaces(DESCRIPTION);
 +#
 +
 +</code>
  
-Extract(SCRATCH, 60, 30, 0);  
-RemoveSpaces(SCRATCH); 
-</sxh> 
  
-[[:cookbook|Cookbook menu]]+<- :cookbook:commvault|Commvault Sync Cookbook ^ :cookbook:introduction|Cookbook ^ :cookbook:netbackup|NetBackup Sync Cookbook->
    
 +{{tag> cookbook}}
cookbook/dataprotector.1539303702.txt.gz ยท Last modified: 2025/01/21 22:07 (external edit)