Veritas NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup (8.0)
  1. Introduction
    1.  
      About NetBackup commands
    2.  
      Navigating multiple menu levels
    3.  
      NetBackup command conventions
    4.  
      NetBackup Media Manager command notes
  2. Appendix A. NetBackup Commands
    1.  
      acsd
    2.  
      add_media_server_on_clients
    3.  
      backupdbtrace
    4.  
      backuptrace
    5.  
      bmrc
    6.  
      bmrconfig
    7.  
      bmrepadm
    8.  
      bmrprep
    9.  
      bmrs
    10.  
      bmrsrtadm
    11.  
      bp
    12.  
      bparchive
    13.  
      bpbackup
    14.  
      bpbackupdb
    15.  
      bpcatarc
    16.  
      bpcatlist
    17.  
      bpcatres
    18.  
      bpcatrm
    19.  
      bpcd
    20.  
      bpchangeprimary
    21.  
      bpclient
    22.  
      bpclimagelist
    23.  
      bpclntcmd
    24.  
      bpclusterutil
    25.  
      bpcompatd
    26.  
      bpconfig
    27.  
      bpdbjobs
    28.  
      bpdbm
    29.  
      bpdgclone
    30.  
      bpdown
    31.  
      bpduplicate
    32.  
      bperror
    33.  
      bpexpdate
    34.  
      bpfis
    35.  
      bpflist
    36.  
      bpgetconfig
    37.  
      bpgetdebuglog
    38.  
      bpimage
    39.  
      bpimagelist
    40.  
      bpimmedia
    41.  
      bpimport
    42.  
      bpinst
    43.  
      bpkeyfile
    44.  
      bpkeyutil
    45.  
      bplabel
    46.  
      bplist
    47.  
      bpmedia
    48.  
      bpmedialist
    49.  
      bpminlicense
    50.  
      bpnbat
    51.  
      bpnbaz
    52.  
      bppficorr
    53.  
      bpplcatdrinfo
    54.  
      bpplclients
    55.  
      bppldelete
    56.  
      bpplinclude
    57.  
      bpplinfo
    58.  
      bppllist
    59.  
      bpplsched
    60.  
      bpplschedrep
    61.  
      bppolicynew
    62.  
      bpps
    63.  
      bprd
    64.  
      bprecover
    65.  
      bprestore
    66.  
      bpretlevel
    67.  
      bpschedule
    68.  
      bpschedulerep
    69.  
      bpsetconfig
    70.  
      bpstsinfo
    71.  
      bpstuadd
    72.  
      bpstudel
    73.  
      bpstulist
    74.  
      bpsturep
    75.  
      bptestbpcd
    76.  
      bptestnetconn
    77.  
      bptpcinfo
    78.  
      bpup
    79.  
      bpverify
    80.  
      cat_convert
    81.  
      cat_export
    82.  
      cat_import
    83.  
      configurePorts
    84.  
      create_nbdb
    85.  
      csconfig
    86.  
      duplicatetrace
    87.  
      importtrace
    88.  
      jbpSA
    89.  
      jnbSA
    90.  
      ltid
    91.  
      mklogdir
    92.  
      nbauditreport
    93.  
      nbcatsync
    94.  
      NBCC
    95.  
      NBCCR
    96.  
      nbcertcmd
    97.  
      nbcertupdater
    98.  
      nbcomponentupdate
    99.  
      nbcplogs
    100.  
      nbdb_admin
    101.  
      nbdb_backup
    102.  
      nbdb_move
    103.  
      nbdb_ping
    104.  
      nbdb_restore
    105.  
      nbdb_unload
    106.  
      nbdbms_start_server
    107.  
      nbdbms_start_stop
    108.  
      nbdc
    109.  
      nbdecommission
    110.  
      nbdelete
    111.  
      nbdeployutil
    112.  
      nbdevconfig
    113.  
      nbdevquery
    114.  
      nbdiscover
    115.  
      nbdna
    116.  
      nbemm
    117.  
      nbemmcmd
    118.  
      nbexecute
    119.  
      nbfindfile
    120.  
      nbfirescan
    121.  
      nbftadm
    122.  
      nbftconfig
    123.  
      nbgetconfig
    124.  
      nbhba
    125.  
      nbholdutil
    126.  
      nbhypervtool
    127.  
      nbjm
    128.  
      nbkmsutil
    129.  
      nboraadm
    130.  
      nbpem
    131.  
      nbpemreq
    132.  
      nbperfchk
    133.  
      nbplupgrade
    134.  
      nbrb
    135.  
      nbrbutil
    136.  
      nbregopsc
    137.  
      nbreplicate
    138.  
      nbrestorevm
    139.  
      nbseccmd
    140.  
      nbsetconfig
    141.  
      nbsnapimport
    142.  
      nbsnapreplicate
    143.  
      nbsqladm
    144.  
      nbstl
    145.  
      nbstlutil
    146.  
      nbsu
    147.  
      nbsvrgrp
    148.  
      resilient_clients
    149.  
      restoretrace
    150.  
      stopltid
    151.  
      tl4d
    152.  
      tl8d
    153.  
      tl8cd
    154.  
      tldd
    155.  
      tldcd
    156.  
      tlhd
    157.  
      tlhcd
    158.  
      tlmd
    159.  
      tpautoconf
    160.  
      tpclean
    161.  
      tpconfig
    162.  
      tpext
    163.  
      tpreq
    164.  
      tpunmount
    165.  
      verifytrace
    166.  
      vltadm
    167.  
      vltcontainers
    168.  
      vlteject
    169.  
      vltinject
    170.  
      vltoffsitemedia
    171.  
      vltopmenu
    172.  
      vltrun
    173.  
      vmadd
    174.  
      vmchange
    175.  
      vmcheckxxx
    176.  
      vmd
    177.  
      vmdelete
    178.  
      vmoprcmd
    179.  
      vmphyinv
    180.  
      vmpool
    181.  
      vmquery
    182.  
      vmrule
    183.  
      vmupdate
    184.  
      vnetd
    185.  
      vxlogcfg
    186.  
      vxlogmgr
    187.  
      vxlogview
    188.  
      W2KOption

Name

vltcontainers — move volumes logically into containers

SYNOPSIS

vltcontainers -run [-rn robot_number]

vltcontainers -run -usingbarcodes [-rn robot_number]

vltcontainers -run -vltcid container_id -vault vault_name -sessionid session_id

vltcontainers -run -vltcid container_id -f file_name [-rn robot_number] [-usingbarcodes]

vltcontainers -view [-vltcid container_id]

vltcontainers -change -vltcid container_id -rd return_date

vltcontainers -delete -vltcid container_id

vltcontainers -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

SEE ALSO

See vltoffsitemedia.

See vltopmenu.