cookbook:dataprotector
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cookbook:dataprotector [2018/09/24 02:08] – [The omnirpt command] Scott Cunliffe | cookbook: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:// |
| ===== The omnirpt command ===== | ===== The omnirpt command ===== | ||
| - | The omnirpt | + | The onmirpt |
| + | installed. | ||
| - | < | + | The '' |
| - | omnirpt | + | |
| - | </ | + | |
| + | < | ||
| + | omnirpt -report media_list -tab > var\dataprotector.csv | ||
| + | </ | ||
| + | |||
| + | ==== Example omnirpt output ==== | ||
| + | |||
| + | < | ||
| + | #List of Media | ||
| + | #Cell Manager: gazillabyte.tapetrack.co | ||
| + | #Creation Date: 9/13/2018 2:00:12 PM | ||
| + | # Headers | ||
| + | # Medium ID label location Status Protection Used [MB] Total [MB] Last Used Pool Type | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | 3f04a59e: | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Converting omnirpt tab file to Fixed length file ==== | ||
| + | |||
| + | Output from omnirpt, while tab delimitered, | ||
| + | |||
| + | Run [[cli: | ||
| + | |||
| + | < | ||
| + | TMSSDELIMETER=TAB | ||
| + | |||
| + | TMSS10CSV2Fixed < dataprotector.csv | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | | ||
| + | | ||
| + | Production Time: Monday, October 01, 2018 - 13:46:07 (AUS Eastern Standard Time) | ||
| + | | ||
| + | |||
| + | | ||
| + | ----- ----- ----- ---------------------------------------------------------------------------------------------------- | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ----- ----- ----- ---------------------------------------------------------------------------------------------------- | ||
| + | |||
| + | | ||
| + | |||
| + | tmss10csv2fixed 0 27 28 19 48 8 57 28 86 20 107 10 118 20 139 20 160 11 172 11 | ||
| + | </ | ||
| + | |||
| + | 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). | ||
| + | |||
| + | < | ||
| + | TMSS10CSV2Fixed 0 0 0 8 17 8 0 0 0 0 0 0 0 0 0 0 35 12 0 0 < dataprotector.csv > dataprotectorFixed.txt | ||
| + | |||
| + | </ | ||
| + | |||
| + | Sample output with selected columns | ||
| + | |||
| + | < | ||
| + | Label Location | ||
| + | 000005L7 | ||
| + | 000006L7 | ||
| + | 000007L7 | ||
| + | 000008L7 | ||
| + | 000009L7 | ||
| + | 000010L7 | ||
| + | 000011L7 | ||
| + | 000012L7 | ||
| + | 000013L7 | ||
| + | 000014L7 | ||
| + | </ | ||
| + | |||
| + | ===== Synchronization ===== | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Synchronization with TapeTrack is performed by calling the [[cli: | ||
| + | |||
| + | - The fixed width text file produced by pre-processing the onmirpt output. | ||
| + | - Command line arguments that instruct the program how to process volumes. | ||
| + | - A synchronization definition file that instructs the program how to interpret the omnirpt output. | ||
| + | |||
| + | ==== Example Command Line Arguments ==== | ||
| + | |||
| + | <code plain;> | ||
| + | TMSS10Sync -d dp.ttidef -a -S batch: | ||
| + | </ | ||
| + | |||
| + | Where: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Example Synchronization Definition ==== | ||
| + | |||
| + | < | ||
| + | # | ||
| + | # Set the Customer and Media as literal values as they never change | ||
| + | # | ||
| + | SetLiteral(CUSTOMER, | ||
| + | SetLiteral(MEDIA, | ||
| + | |||
| + | # | ||
| + | # Get the Volume-ID | ||
| + | # | ||
| + | Extract(VOLUME, | ||
| + | |||
| + | # | ||
| + | # Get the Repository from a translated location Name | ||
| + | # | ||
| + | Extract(REPOSITORY, | ||
| + | RemoveSpaces(REPOSITORY); | ||
| + | AddTranslation(REPOSITORY, | ||
| + | AddTranslation(REPOSITORY, | ||
| + | |||
| + | # | ||
| + | # Set the Description to the Pool Name | ||
| + | # | ||
| + | Extract(DESCRIPTION, | ||
| + | RemoveSpaces(DESCRIPTION); | ||
| + | # | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <- : | ||
| + | |||
| + | {{tag> cookbook}} | ||
cookbook/dataprotector.1537754905.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
