cookbook:netbackup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cookbook:netbackup [2017/06/17 18:56] – [Barcodes] Gerard Nicol | cookbook:netbackup [2025/01/21 22:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NetBackup Sync Cookbook ====== | ====== NetBackup Sync Cookbook ====== | ||
- | [[https:// | + | [[https:// |
===== NetBackup Vault ===== | ===== NetBackup Vault ===== | ||
NetBackup Vault is a component of NetBackup that is used to set the Vault Location field in NetBackup. It may or may not be deployed. | NetBackup Vault is a component of NetBackup that is used to set the Vault Location field in NetBackup. It may or may not be deployed. | ||
- | In the event that it is deployed TapeTrack Sync can use the Vault Location field set in NetBackup to determine the expected location of each tape volume. If Vault is not deployed, TapeTrack can determine the expected location based upon other fields such as the tape expiration date. | + | In the event that it is deployed TapeTrack Sync can use the Vault Location field set in NetBackup to determine the expected location of each [[object:volume|Volume]]. If Vault is not deployed, TapeTrack can determine the expected location based upon other fields such as the [[object: |
<note tip> | <note tip> | ||
- | The expiration date value in NetBackup appears to be dynamically generated when reports are run based upon the dates of each image stored on a tape volume. For this reason, reports such as vmquery do not accurately return a valid expiry date value. | + | The expiration date value in NetBackup appears to be dynamically generated when reports are run based upon the dates of each image stored on a [[object:volume|Volume]]. For this reason, reports such as vmquery do not accurately return a valid expiry date value. |
</ | </ | ||
+ | ===== Data Extraction From Netbackup Vault ===== | ||
+ | |||
+ | The first step in Synchronizing your Netbackup Vault Library with TapeTrack is to extract the Volume data from your Netbackup Vault instance. | ||
+ | |||
+ | Using the administrative tool vmquery, the Volume data can be extracted into a text file. | ||
+ | |||
+ | {{vmquery_extract.png}} | ||
===== The vmquery command ===== | ===== The vmquery command ===== | ||
- | The vmquery | + | <note important> |
+ | \\ | ||
+ | If vmquery is not installed please refer to your NetBackup administrator.</ | ||
- | > Query the Enterprise Media Manager database, or assign and unassign | + | The vmquery main page describes the command as: |
+ | |||
+ | > Query the Enterprise Media Manager database, or assign and un-assign | ||
To get a report that is suitable for the TapeTrack Sync command, the following minimum arguments should be used: | To get a report that is suitable for the TapeTrack Sync command, the following minimum arguments should be used: | ||
- | < | + | < |
- | vmquery -W -a > Inventory.txt | + | vmquery -W -a > Report.txt |
</ | </ | ||
Where: | Where: | ||
Line 27: | Line 39: | ||
* '' | * '' | ||
- | <note tip> | + | <note tip> |
Other arguments that might be required are: | Other arguments that might be required are: | ||
* '' | * '' | ||
+ | ==== Example vmquery output ==== | ||
+ | |||
+ | <code plain;> | ||
+ | MediaID OpticalPartner MediaType Barcode BarcodePartner RobotHost RobotType RobotNum RobotSlot Side/Face VolumeGroup Pool PoolNum PrevPool NumOfMounts MaxMounts NumOfCleanings CreateDatetime AssignedDatetime FirstMountDatetime LastMountDatetime ExpirationDatetime Status OffsiteLocation OffsiteSentDatetime OffsiteReturnDatetime OffsiteSlotID OffsiteSessionID Version DescriptionLength Description ContainerID | ||
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
+ | CLNU10 - HC3_CLN | ||
+ | E00001 - HCART E00001 - bak901.corp.store.net TLD 1 1 - 000_00001_TLD NDMP_Incremental 9 - 4 0 - 11/02/2012 19:03 01/04/2013 05:00 12/07/2012 05:01 01/04/2013 05:01 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00002 - HCART E00002 - bak901.corp.store.net TLD 1 9 - 000_00001_TLD NDMP_Incremental 9 - 5 0 - 11/02/2012 19:03 00/00/0000 00:00 12/07/2012 05:03 12/28/2012 05:02 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00003 - HCART E00003 - bak901.corp.store.net TLD 1 2 - 000_00001_TLD NDMP_Incremental 9 - 5 0 - 11/02/2012 19:03 01/04/2013 05:00 12/07/2012 09:33 01/04/2013 05:02 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00004 - HCART E00004 - bak901.corp.store.net TLD 1 5 - 000_00001_TLD NDMP_Incremental 9 - 5 0 - 11/02/2012 19:03 01/04/2013 05:00 12/07/2012 09:49 01/07/2013 05:02 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00005 - HCART E00005 - bak901.corp.store.net TLD 1 24 - 000_00001_TLD NDMP_Incremental 9 - 5 0 - 11/02/2012 19:03 00/00/0000 00:00 12/10/2012 12:50 12/31/2012 05:02 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00006 - HCART E00006 - bak901.corp.store.net TLD 1 10 - 000_00001_TLD NDMP_Incremental 9 - 6 0 - 11/02/2012 19:03 01/07/2013 05:00 12/07/2012 14:41 01/07/2013 08:31 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00007 - HCART E00007 - bak901.corp.store.net TLD 1 11 - 000_00001_TLD NDMP_Incremental 9 - 6 0 - 11/02/2012 19:03 01/07/2013 05:00 12/07/2012 14:51 01/07/2013 08:39 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00008 - HCART E00008 - bak901.corp.store.net TLD 1 8 - 000_00001_TLD NDMP_Incremental 9 - 6 0 - 11/02/2012 19:03 01/04/2013 05:00 12/10/2012 08:16 01/07/2013 05:01 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | E00009 - HCART E00009 - bak901.corp.store.net TLD 1 16 - 000_00001_TLD NDMP_Incremental 9 - 6 0 - 11/02/2012 19:03 01/07/2013 05:00 12/10/2012 08:24 01/08/2013 05:02 00/00/0000 00:00 0 - 00/00/0000 00:00 00/00/0000 00:00 - - 50 22 Added by Media Manager - | ||
+ | </ | ||
==== Post-processing ==== | ==== Post-processing ==== | ||
+ | |||
+ | <note important> | ||
As previously noted, the '' | As previously noted, the '' | ||
Line 39: | Line 69: | ||
- | < | + | < |
- | vmquery -W -a > Inventory.txt | + | vmquery -W -a > Report.txt |
- | TMSS10SingleSpace -d "," | + | TMSS10SingleSpace -d "," |
+ | </ | ||
+ | |||
+ | {{vmquery_extract_csv.png}} | ||
+ | |||
+ | === Example TMSS10SingleSpace output=== | ||
+ | |||
+ | <code plain;> | ||
+ | MediaID, | ||
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
+ | CLNU10, | ||
+ | E00001, | ||
+ | E00002, | ||
+ | E00003, | ||
+ | E00004, | ||
+ | E00005, | ||
+ | E00006, | ||
+ | E00007, | ||
+ | E00008, | ||
+ | E00009, | ||
</ | </ | ||
==== Barcodes ==== | ==== Barcodes ==== | ||
- | It is common for NetBackup | + | It is common for NetBackup |
If is always recommended that where possible volumes be loaded into TapeTrack with their L-Suffix, and this suffix can be established by: | If is always recommended that where possible volumes be loaded into TapeTrack with their L-Suffix, and this suffix can be established by: | ||
- | - The Media ID value if it includes the suffix. | + | - The Media-ID value if it includes the suffix. |
- | - Adding an appropriate suffix to the Media ID based upon the value of the Media Type field. | + | - Adding an appropriate suffix to the Media-ID based upon the value of the Media Type field. |
- | - Adding an appropriate suffix based upon the range of the Media ID. | + | - Adding an appropriate suffix based upon the range of the Media-ID. |
- Using TapeTrack' | - Using TapeTrack' | ||
+ | ===== Synchronization ===== | ||
+ | |||
+ | Synchronization with TapeTrack is performed by calling the [[cli: | ||
+ | |||
+ | - The CSV file produced by pre-processing the vmquery output. | ||
+ | - Command line arguments that instruct the program how to process volumes. | ||
+ | - A synchronization definition file that instructs the program how to interpret the vmquery output. | ||
+ | |||
+ | {{networker_sync.png}} | ||
+ | |||
+ | ==== Example Command Line Arguments ==== | ||
+ | |||
+ | <code plain;> | ||
+ | TMSS10Sync -d Volume.ttidef -a -S batch: | ||
+ | </ | ||
+ | |||
+ | Where: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== Example Synchronization Definition ==== | ||
+ | |||
+ | <code plain;> | ||
+ | # | ||
+ | # Set the Customer and Media as literal values as they never change | ||
+ | # | ||
+ | SetLiteral(CUSTOMER, | ||
+ | SetLiteral(MEDIA, | ||
+ | # | ||
+ | # Set the delimiter to a CSV | ||
+ | # | ||
+ | SetCSVDelimiter("," | ||
+ | # | ||
+ | # Set the Description to the Pool Name | ||
+ | # | ||
+ | Extract(DESCRIPTION, | ||
+ | # | ||
+ | # Get the Volume-ID from the report and add L5 to the E* tapes and L4 to the P* tapes | ||
+ | # | ||
+ | Extract(VOLUME, | ||
+ | AddTranslation(VOLUME, | ||
+ | AddTranslation(VOLUME, | ||
+ | # | ||
+ | # Get the Repository from a translated Pool Name | ||
+ | # | ||
+ | Extract(REPOSITORY, | ||
+ | # | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | AddTranslation(REPOSITORY, | ||
+ | # | ||
+ | # Everything else should go to LIBR, but if it was at OFFS it will skip | ||
+ | # | ||
+ | AddTranslation(REPOSITORY, | ||
+ | </ | ||
+ | <- : | ||
+ | {{tag> cookbook}} |
cookbook/netbackup.1497725781.txt.gz · Last modified: 2025/01/21 22:07 (external edit)