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/10/18 22:01] – [Example Synchronization Definition] Scott Cunliffe | cookbook:dataprotector [2025/12/16 00:03] (current) – [The omnirpt command] Scott Cunliffe | ||
|---|---|---|---|
| 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 following instructions use onmirpt to extract the media via a tab delimetered CSV file. Using the powershell code | ||
| + | |||
| + | < | ||
| + | omnireport -report media -detail 1 | | ||
| + | Where-Object { | ||
| + | $_ -match " | ||
| + | $_ -notmatch " | ||
| + | } | | ||
| + | ForEach-Object { $_ -replace " | ||
| + | Out-File " | ||
| + | |||
| + | </ | ||
| + | |||
| + | or linux | ||
| + | |||
| + | < | ||
| + | omnireport -report media -detail 1 \ | ||
| + | | grep -E ' | ||
| + | | grep -v -i ' | ||
| + | | sed ' | ||
| + | > tapetrack_media.csv | ||
| + | |||
| + | </ | ||
| + | |||
| + | The file can be converted to a comma delimitered file and used directly for input into the Sync process, skipping the need to run TMSS10CSV2Fixed | ||
| The onmirpt command is available on systems with the Data Protector User Interface component | The onmirpt command is available on systems with the Data Protector User Interface component | ||
| Line 10: | Line 36: | ||
| The '' | The '' | ||
| - | <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 59: | ||
| 3f04a59e: | 3f04a59e: | ||
| - | </sxh> | + | </code> |
| ==== Converting omnirpt tab file to Fixed length file ==== | ==== Converting omnirpt tab file to Fixed length file ==== | ||
| Line 41: | Line 67: | ||
| Run [[cli: | Run [[cli: | ||
| - | <sxh> | + | <code> |
| TMSSDELIMETER=TAB | TMSSDELIMETER=TAB | ||
| TMSS10CSV2Fixed < dataprotector.csv | TMSS10CSV2Fixed < dataprotector.csv | ||
| - | </sxh> | + | </code> |
| - | <sxh> | + | <code> |
| | | ||
| | | ||
| Line 70: | Line 96: | ||
| 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 | + | 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 8 48 8 0 0 0 0 0 0 0 0 0 0 160 12 0 0 < dataprotector.csv > dataprotectorFixed.txt | + | 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 |
| - | </sxh> | + | </code> |
| Sample output with selected columns | Sample output with selected columns | ||
| - | <sxh> | + | <code> |
| Label Location | Label Location | ||
| 000005L7 | 000005L7 | ||
| Line 93: | Line 119: | ||
| 000013L7 | 000013L7 | ||
| 000014L7 | 000014L7 | ||
| - | </sxh> | + | </code> |
| ===== Synchronization ===== | ===== Synchronization ===== | ||
| Line 107: | Line 133: | ||
| ==== Example Command Line Arguments ==== | ==== Example Command Line Arguments ==== | ||
| - | <sxh plain;> | + | <code plain;> |
| TMSS10Sync -d dp.ttidef -a -S batch: | TMSS10Sync -d dp.ttidef -a -S batch: | ||
| - | </sxh> | + | </code> |
| Where: | Where: | ||
| Line 119: | Line 145: | ||
| ==== Example Synchronization Definition ==== | ==== Example Synchronization Definition ==== | ||
| - | <sxh> | + | <code> |
| # | # | ||
| # Set the Customer and Media as literal values as they never change | # Set the Customer and Media as literal values as they never change | ||
| Line 125: | Line 151: | ||
| SetLiteral(CUSTOMER, | SetLiteral(CUSTOMER, | ||
| SetLiteral(MEDIA, | SetLiteral(MEDIA, | ||
| + | |||
| # | # | ||
| # Get the Volume-ID | # Get the Volume-ID | ||
| # | # | ||
| - | Extract(VOLUME, | + | Extract(VOLUME, |
| # | # | ||
| # Get the Repository from a translated location Name | # Get the Repository from a translated location Name | ||
| Line 136: | Line 164: | ||
| AddTranslation(REPOSITORY, | AddTranslation(REPOSITORY, | ||
| AddTranslation(REPOSITORY, | AddTranslation(REPOSITORY, | ||
| + | |||
| # | # | ||
| # Set the Description to the Pool Name | # Set the Description to the Pool Name | ||
| # | # | ||
| - | Extract(DESCRIPTION, | + | Extract(DESCRIPTION, |
| RemoveSpaces(DESCRIPTION); | RemoveSpaces(DESCRIPTION); | ||
| # | # | ||
| - | </sxh> | + | </code> |
| - | [[: | + | <- :cookbook:commvault|Commvault Sync Cookbook ^ : |
| - | <- ^ : | + | |
| + | {{tag> cookbook}} | ||
cookbook/dataprotector.1539900110.txt.gz · Last modified: 2025/01/21 22:07 (external edit)
