Veritas NetBackup™ Commands Reference Guide
- Introduction
- Appendix A. NetBackup Commands
Name
vltcontainers — move volumes logically into containers
SYNOPSIS
-run [-rn robot_number]
-run -usingbarcodes [-rn robot_number]
-run -vltcid container_id -vault vault_name -sessionid session_id
-run -vltcid container_id -f file_name [-rn robot_number] [-usingbarcodes]
-view [-vltcid container_id]
-change -vltcid container_id -rd return_date
-delete -vltcid container_id
-version
On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/
On Windows systems, the directory path to this command is install_path\NetBackup\bin\
DESCRIPTION
vltcontainers logically adds to containers the media that was ejected from one or more vault sessions. It can view, set, or change the return date of containers that go off-site or are already at the off-site vault. vltcontainers can also delete a container from the NetBackup and Media Manager catalogs.
You can add media IDs to containers as follows:
Use the keyboard to enter the container and the media IDs.
Use a keyboard interface barcode reader to scan the container IDs and media IDs. Keyboard interface readers are also known as keyboard wedge readers because they connect (or wedge) between the keyboard and the keyboard port on your computer.
Use an input file that contains the media IDs or numeric equivalents of barcodes of all the media that are added to one container. To add media to more than one container, enter the IDs by using the keyboard or a keyboard interface barcode reader. Or, run the vltcontainers command again and specify different container and file name options.
Add all the media that a specific session ejects to one container. To add media from a single eject session into more than one container, enter IDs using the keyboard or a keyboard interface barcode reader.
The required date and time values format in NetBackup commands varies according to your locale. The /usr/openv/msg/.conf
file (UNIX) and the install_path\VERITAS\msg\LC.CONF
file (Windows) contain information such as the date-time formats for each supported locale. The files contain specific instructions on how to add or modify the list of supported locales and formats.
See the "About specifying the locale of the NetBackup installation" topic in the NetBackup Administrator's Guide, Volume II for more information.
Run the vltcontainers command from a NetBackup master server that is licensed for Vault.
If the following directory with public-write access exists, vltcontainers writes to its daily debug log file (log.DDMMYY where DDMMYY is current date):
UNIX systems: usr/openv/netbackup/logs/vault
Windows systems: install_path\netbackup\logs\vault
Public-write access is required because not all executable files that write to this file can run as administrator or root user.
OPTIONS
- -change
Changes the default return date for the container. The default return date of a container is the date of the volume in the container that is returned the latest. It requires the -vltcid container_id option.
- -delete
Deletes the container record from the NetBackup and Media Manager catalogs. You can delete a container only if it contains no media.
- -f file_name
Specifies the file from which to read media IDs. All the listed media in the file are added to the container that the -vltcid option specifies. The file can be a list of media IDs (one per line). Or it can be the numeric equivalents of barcodes (one per line) scanned into a file by a barcode reader.
- -rd return_date
Specifies the return date for the container.
The return date format depends on the locale setting.
- -rn robot_number
Specifies the robot, which is used to determine the EMM Server from which the vltcontainers command should obtain media information. If -rn robot_number is not used, the master server is considered as the EMM server. The only media that can be added to containers is the media in the database on the EMM server.
- -run
Logically adds media to the container. If you specify no other options, you must enter the container IDs and the media IDs by using the keyboard. To use a barcode reader to scan the container and the media IDs, specify the -usingbarcodes option. To add the media that a specific session ejects, use the -vault vault_name and -sessionid session_id options. To add the media that is specified in a file, use the -f file_name option. To specify an EMM server other than the master server, use the -rn robot_number option.
- -sessionid session_id
The ID of a vault session. All media that the specified session ejects are added to the container that the -vltcid option specifies.
- -usingbarcodes
Specifies a keyboard interface barcode reader that scans container IDs and media IDs, or the barcode numbers that are used in the file that -f file_name specifies. Keyboard interface barcode readers (also called keyboard wedge barcode readers) connect between the keyboard and the keyboard port on your computer.
- -vault vault_name
The name of the vault to which the profile that ejected the media belongs. You also must specify the ID of the session (-sessionid) that ejected the media to be added to the container.
- -version
Displays the vltcontainers version and exit.
- -view [-vltcid container_id]
Shows the return date that is assigned to all containers. Use the -vltcid container_id option and argument to show the return date of a specific container.
- -vltcid container_id
Specifies the container ID. Container ID can be a string of up to 29 alphanumeric characters (no spaces). The -rd return_date option and argument are required to change a container return date.
EXAMPLES
Example 1 - Use the following command to:
Add the volumes that are ejected from robot number 0 to containers.
Use a barcode reader to scan the container ID and media ID.
# vltcontainers -run -usingbarcodes -rn 0
Example 2 - View the return date of container ABC123:
# vltcontainers -view -vltcid ABC123
Example 3 - Change the return date of container ABC123 to December 07, 2012:
# vltcontainers -change -vltcid ABC123 -rd 12/07/2012
Example 4 - Delete container ABC123 from the NetBackup and Media Manager catalogs, use the following command:
# vltcontainers -delete -vltcid ABC123
Example 5 - Add all media that was ejected to container ABC123 by session 4 of vault MyVault_Cntr, use the following command:
# vltcontainers -run -vltcid ABC123 -vault MyVault_Cntr -sessionid 4
Example 6 - Add the media that is listed in the medialist
file that is ejected from robot number 0 to container ABC123:
UNIX systems:
# vltcontainers -run -vltcid ABC123 -f /home/jack/medialist -rn 0
Windows systems:
# vltcontainers -run -vltcid ABC123 -f C:\home\jack\medialist -rn 0
Example 7 - Use the following command to:
Add media to container ABC123 that was ejected from a robot that is attached to the master server
Read the barcodes for that media from the
medialist
file
UNIX systems: # vltcontainers -run -vltcid ABC123 -f /home/jack/medialist -usingbarcodes
Windows systems: # vltcontainers -run -vltcid ABC123 -f C:\home\jack\medialist -usingbarcodes
RETURN VALUES
Vault may exit with a status code greater than 255. Such status codes are called extended exit status codes. For such a case, the exit status that returned to the system is 252. The actual exit status is written to stderr in the format EXIT status = exit status
The extended exit status values are documented in the NetBackup Troubleshooting Guide and in the NetBackup Troubleshooting Wizard.
FILES
UNIX systems:
/usr/openv/netbackup/vault/sessions/cntrDB /usr/openv/netbackup/db/vault/vault.xml /usr/openv/netbackup/logs/vault
Windows systems:
install_path\NetBackup\vault\sessions\cntrDB install_path\NetBackup\db\vault\vault.xml install_path\netbackup\logs\vault