This is an old revision of the document!
Table of Contents
NetBackup Sync Cookbook
NetBackup is Veritas's enterprise backup solution and is available for Windows, UNIX and Linux.
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.
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.
The vmquery command
The vmquery man page describes the command as:
Query the Enterprise Media Manager database, or assign and unassign volumes
To get a report that is suitable for the TapeTrack Sync command, the following minimum arguments should be used:
vmquery -W -a > Inventory.txt
Where:
-W
sets the report to wide format with space delimiters.-a
tells the command to list all volumes.
Other arguments that might be required are:
-h
which sets the EMM server and must be used to run the command against a remote host.
Post-processing
As previously noted, the -W
argument produces space delimited output, but adds a space between date/time values which will be confused with space delimiters.
To fix the date/time values and convert the output into a more readable CSV format, the TMSS10SingleSpace should be used as follows:
vmquery -W -a > Inventory.txt TMSS10SingleSpace -d "," -g "??/??/???? ??:??" < Inventory.txt > Inventory.csv