Veritas NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup (8.2)
  1. Introduction
    1.  
      About NetBackup commands
    2.  
      Navigating multiple menu levels
    3.  
      NetBackup command conventions
    4.  
      NetBackup Media Manager command notes
    5.  
      IPV6 updates
  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.  
      bpplschedwin
    62.  
      bppolicynew
    63.  
      bpps
    64.  
      bprd
    65.  
      bprecover
    66.  
      bprestore
    67.  
      bpretlevel
    68.  
      bpschedule
    69.  
      bpschedulerep
    70.  
      bpsetconfig
    71.  
      bpstsinfo
    72.  
      bpstuadd
    73.  
      bpstudel
    74.  
      bpstulist
    75.  
      bpsturep
    76.  
      bptestbpcd
    77.  
      bptestnetconn
    78.  
      bptpcinfo
    79.  
      bpup
    80.  
      bpverify
    81.  
      cat_convert
    82.  
      cat_export
    83.  
      cat_import
    84.  
      configureCertsForPlugins
    85.  
      configureMQ
    86.  
      configurePorts
    87.  
      configureWebServerCerts
    88.  
      create_nbdb
    89.  
      csconfig cldinstance
    90.  
      csconfig cldprovider
    91.  
      csconfig meter
    92.  
      csconfig throttle
    93.  
      csconfig reinitialize
    94.  
      duplicatetrace
    95.  
      importtrace
    96.  
      jbpSA
    97.  
      jnbSA
    98.  
      ltid
    99.  
      manageClientCerts
    100.  
      mklogdir
    101.  
      nbauditreport
    102.  
      nbcatsync
    103.  
      NBCC
    104.  
      NBCCR
    105.  
      nbcertcmd
    106.  
      nbcertupdater
    107.  
      nbcldutil
    108.  
      nbcloudrestore
    109.  
      nbcomponentupdate
    110.  
      nbcplogs
    111.  
      nbdb_admin
    112.  
      nbdb_backup
    113.  
      nbdb_move
    114.  
      nbdb_ping
    115.  
      nbdb_restore
    116.  
      nbdb_unload
    117.  
      nbdbms_start_server
    118.  
      nbdbms_start_stop
    119.  
      nbdc
    120.  
      nbdecommission
    121.  
      nbdelete
    122.  
      nbdeployutil
    123.  
      nbdevconfig
    124.  
      nbdevquery
    125.  
      nbdiscover
    126.  
      nbdna
    127.  
      nbemm
    128.  
      nbemmcmd
    129.  
      nbfindfile
    130.  
      nbfirescan
    131.  
      nbftadm
    132.  
      nbftconfig
    133.  
      nbgetconfig
    134.  
      nbhba
    135.  
      nbholdutil
    136.  
      nbhostidentity
    137.  
      nbhostmgmt
    138.  
      nbhypervtool
    139.  
      nbimageshare
    140.  
      nbinstallcmd
    141.  
      nbjm
    142.  
      nbkmsutil
    143.  
      nboraadm
    144.  
      nborair
    145.  
      nbpem
    146.  
      nbpemreq
    147.  
      nbperfchk
    148.  
      nbplupgrade
    149.  
      nbrb
    150.  
      nbrbutil
    151.  
      nbregopsc
    152.  
      nbreplicate
    153.  
      nbrepo
    154.  
      nbrestorevm
    155.  
      nbseccmd
    156.  
      nbsetconfig
    157.  
      nbsnapimport
    158.  
      nbsnapreplicate
    159.  
      nbsqladm
    160.  
      nbstl
    161.  
      nbstlutil
    162.  
      nbstop
    163.  
      nbsu
    164.  
      nbsvrgrp
    165.  
      resilient_clients
    166.  
      restoretrace
    167.  
      stopltid
    168.  
      tl4d
    169.  
      tl8d
    170.  
      tl8cd
    171.  
      tldd
    172.  
      tldcd
    173.  
      tlhd
    174.  
      tlhcd
    175.  
      tlmd
    176.  
      tpautoconf
    177.  
      tpclean
    178.  
      tpconfig
    179.  
      tpext
    180.  
      tpreq
    181.  
      tpunmount
    182.  
      verifytrace
    183.  
      vltadm
    184.  
      vltcontainers
    185.  
      vlteject
    186.  
      vltinject
    187.  
      vltoffsitemedia
    188.  
      vltopmenu
    189.  
      vltrun
    190.  
      vmadd
    191.  
      vmchange
    192.  
      vmcheckxxx
    193.  
      vmd
    194.  
      vmdelete
    195.  
      vmoprcmd
    196.  
      vmphyinv
    197.  
      vmpool
    198.  
      vmquery
    199.  
      vmrule
    200.  
      vmupdate
    201.  
      vnetd
    202.  
      vssat
    203.  
      vwcp_manage
    204.  
      vxlogcfg
    205.  
      vxlogmgr
    206.  
      vxlogview
    207.  
      W2KOption

Name

vxlogcfg — modify unified logging configuration settings

SYNOPSIS

vxlogcfg -a -p ProductID -c ConfigPath -n Names [-q]

vxlogcfg -a -p ProductID -o OriginatorID -s keyname=value [-q]

vxlogcfg -a -p ProductID -g LogSet -s keyname=value [-q]

vxlogcfg -d -p ProductID

vxlogcfg -l [-p ProductID [-o OriginatorID]] [-q]

vxlogcfg -l [-p ProductID [-g LogSet]] [-q]

vxlogcfg -r -p ProductID [-o OriginatorID] [-s keyname] [-q]

vxlogcfg -r -p ProductID [-g LogSet] [-s keyname] [-q]

vxlogcfg -v

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

Use the vxlogcfg command to change the logging settings for NetBackup unified logging. It registers and unregisters the product log configurations during installation and uninstallation.

Unified logging uses a standardized naming format for log files, as follows:

productID-originatorID-hostID-date-rotation.log

For more information about the unified logging naming format, and the logging originator IDs, refer to the NetBackup Logging Reference Guide.

OPTIONS

Specify the product log configuration to register or unregister. Use fully-qualified path names for all directory paths. If a directory name contains spaces, use quotes around the path name for that directory (for example, "the Program Files" directory).

-a, --add

Registers or creates the product log configuration settings. Any existing log settings are overwritten. Do not use this option to add a product to the list of those that use unified logging. Instead, use it only to modify existing unified logging settings. See examples.

-c, --config ConfigPath

Provides the absolute path from which the product log configuration settings should be read.

On UNIX systems, use the absolute path to the product log configuration file (for example, /opt/vrts/ProductA/log.conf.)

On Windows systems, use the path to the product log registry settings (for example, \\SOFTWARE\VERITAS\PRODUCTA\)

-d, --delete

Unregisters and removes the product log configuration settings from the main logging configuration file, if there are no originator IDs configured for the product. The corresponding product log configuration file is also deleted.

-g, --logset LogSet

Creates or modifies log configuration settings for the specified LogSet. LogSet is supplied as the text string "Default" or the text string "ALL." If the LogSet is "Default," then the -s configuration settings are the default settings. If the LogSet is "ALL, then the -s configuration settings are given to all the originators of a given product ID.

-l, --list

Lists one of the following:

  • All of the configured products.

  • All of the originator IDs and LogSet

  • All of the configuration settings that are defined for a product ID and originator ID pair, or a product ID and LogSet

-n, --names Name

Specifies abbreviated or short names for the product. Separate multiple names with a comma.

-o, --orgid OrgID

Creates or modifies log configuration settings for the specified originator ID. The Originator ID can be supplied as a valid originator ID (a number), or, the text string "Default," or the text string "ALL." If the Originator ID is "Default," then the -s configuration settings are the default settings. If the Originator ID is "ALL, then the -s configuration settings are given to all the originators of a given product ID.

-p, --prodid ProductID

Creates or modifies the log configuration settings for a productID.

-q, --quiet

Prevents the display of error or informational messages (Quiet Mode).

-r, --remove

Unregisters and removes the log configuration settings for the specified OID and product from the product logging configuration file. Individual settings can be removed with the "-s, --setting keyname=value" option.

Caution:

Always use the -r option with the -o option. Otherwise, all of the existing NetBackup log settings are removed and no further logging is performed for all of NetBackup.

-s, --setting keyname=value

Sets the individual configuration settings when used with -a (add option). keyname is the configuration setting's name and value is the value for that setting. You can use multiple -s keyname=value arguments on the command line.

-s, --setting keyname

Removes a configuration setting when it is used with the -r option. Use only one keyname with the -r option. To remove multiple settings, provide multiple -s options. See the Keynames and Values section for particular keynames.

-v, --version

Displays the version information for this command.

KEYNAMES AND VALUES

Following are the keynames and values that can be specified on the -s option. For NetBackup, the vxlogcfg command places these keynames and values in the /usr/openv/netbackup/nblog.conf file on UNIX and in install_path\NetBackup\nblog.conf on Windows. For PBX, these are placed in /etc/vx/VxICS/icsul.conf on UNIX and in the registry entry SOFTWARE\VERITAS\VxICS\logcfg on Windows.

Keynames and the values for UNIX and Windows

LogDirectory

Provides an absolute path or relative path to a directory. No default value. If you specify a relative path for an originator ID, the path is relative to the product ID log directory that is specified by Default.LogDirectory in the log configuration file.

Caution:

When you use the LogDirectory keyname to redirect unified logs to an alternate directory, stop and restart the NetBackup services. This action makes redirection take effect.

DebugLevel

Sets the verbosity level for the debug log messages. (Debug logs are intended for Veritas engineers.) Valid values are 0 through 6.

DiagnosticLevel

Sets the verbosity level for the diagnostic log messages. (Diagnostic logs are intended for NetBackup administrators and users.) Valid values are 0 through 6. Zero (0) means no debug messages.

DynaReloadInSec

Dynamically reloads debug and diagnostic settings. Integers 0-60 reload after 60 seconds. Integers greater than 60 reload at the specified number of seconds.

LogToStdout

Sends all log messages to standard output (by default the terminal) and to the log file. Valid values are true and false (default value).

LogToStderr

Sends the application log messages to Stderr (by default the terminal) and to the log file. Valid values are true and false (default value).

LogToOslog

Sends the application log messages to the operating system log (syslog on UNIX and the event logs on Windows). Valid values are true and false (default value).

RolloverMode

Specifies when log files are rolled over. If you roll over a log file, it closes the current log file and opens a new one. The purpose is to keep log file size low and allow older log files to be deleted or archived. Valid values are FileSize, LocalTime, Periodic, FileSize | LocalTime, FileSize | Periodic and None.

FileSize indicates that the rollover occurs when the log reaches the size that the MaxLogFileSizeKB sets. FileSize is the default value.

LocalTime indicates the log file should be rolled over one time per day at a specified time by RolloverAtLocalTime.

Periodic indicates the log file should be rolled over after the number of specified seconds by RolloverAtLocalTime.

FileSize | LocalTime indicates that the log files are logged over when FileSize or LocalTime is reached, whichever occurs first.

FileSize | Periodic indicates that the log files are logged over when FileSize or Periodic is reached, whichever occurs first.

None indicates that log files are not rolled over.

MaxLogFileSizeKB

Specifies the maximum size that is allowed for the log file (in kilobytes) before rollover occurs, if the RolloverMode is set to FileSize. Valid values are 1 through 4294967295. The default value is 51200 (51.2 MB).

RolloverPeriodInSeconds

Specifies a period of time in seconds after which the log file is rolled over, if the RolloverMode is set to Periodic. Valid values are 1 through 2147483648. The default value is 43200 (12 hours).

RolloverAtLocalTime

Specifies the time of day at which the log file is rolled over, if the RolloverMode is set to LocalTime. Valid values are 00:00 through 23:59. The default value is 00:00 (Midnight local time).

NumberOfLogFiles

Specifies the maximum number of files to retain in the log directory for each unified logging originator. Valid values are 1 through 4294967295.

The vxlogmgr --auto command uses NumberOfLogFiles to determine how many log files to delete or move that starts with the oldest files. For example, a log directory contains seven files that a particular originator created. NumberOfLogFiles is set to 5. The vxlogmgr --auto --del command deletes the two oldest files that the originator created.

LogRecycle

Valid values are true, false. The default value is false. If true, the number of log files does not exceed the NumberOfLogFiles.

OIDNames

Specifies one or more alternate names for the unified logging originator that the -o option specifies. These names can be used in place of Originator IDs when you perform searches by using the vxlogview command. Each name can be up to 80 characters in length. Multiple names can be specified, separated by a space.

L10nLib

Specifies the absolute path and file name of the external localization library. This option is for Veritas internal use only. Use of this option can disable unified logging.

L10nResource

Specifies the name of a localization resource that is associated with a unified logging product or originator. This option is for Veritas internal use only. Use of this option can disable unified logging.

L10nResourceDir

This setting specifies the name of a localization resource directory that is associated with a unified logging product or originator. This option is for Veritas internal use only. Use of this option can disable unified logging.

The following four keynames operate only on UNIX systems.

LogFilePermissions

An octal number that specifies the UNIX file permissions that are assigned to log the files that the originator created, which the -o option specified. In most cases, this option is not needed.

SyslogIdent

Specifies a string that is attached to the beginning of every syslog message when LogToOslog is set to true. SyslogIdent can be any string up to 80 characters long. In most cases, this option is not needed.

SyslogOpt

Specifies the syslog option value that is passed to the syslog openlog function. Log messages are directed to the UNIX syslog when LogToOslog is enabled. Valid values are 0 through 4294967295. In most cases, this option is not needed.

SyslogFacility

Specifies the syslog facility value that is associated with log messages directed to the syslog. Log messages are directed to the syslog when LogToSyslog is enabled. In most cases, this option is not needed.

Valid values are: LOG_KERN, LOG_USER, LOG_MAIL, LOG_DAEMON, LOG_AUTH, LOG_LPR, LOG_NEWS, LOG_UUCP, LOG_CRON, LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7. The default is LOG_USER.

The following three keynames operate only on Windows systems.

NtEventLogCategory

Specifies the category number that are associated with log messages that are directed to the Windows event log if LogToOslog is enabled. In most cases, there should be no need to use this option.

LogFileSDDL

Specifies the Windows Security Descriptor Definition Language (SDDL) string. This string sets the Access Control List (ACL) for the log files that the originator created, which the -o option specified. In most cases, there should be no need to use this option.

NtEventLogSourceName

Specifies the Windows Event log that log messages are directed to if the LogToOslog option is enabled on Windows. This option is for internal use only. Use of this option can disable unified logging.

EXAMPLES

Example 1 - Set the LogDirectory for NetBackup and originator ID 111 on UNIX:

# vxlogcfg -a --prodid 51216 --orgid 111 -s 
LogDirectory=/usr/openv/logs

Example 2 - Set the DebugLevel and DiagnosticLevel for all unified logging originators in NetBackup:

# vxlogcfg -a --prodid 51216 -o ALL -s DebugLevel=3 -s 
DiagnosticLevel=3

Example 3 - Set the default RolloverMode for product ID 1:

# vxlogcfg -a --prodid 1 -o Default -s RolloverMode=FileSize

Example 4 - Display configuration settings for originator 2 for product ID 1.

# vxlogcfg -l --prodid 1 --orgid 2

Example 5 - List all the originators that are configured for product ID 1.

# vxlogcfg -l --prodid 1

Example 6 - List all configured products.

# vxlogcfg -l

FILES

UNIX systems:

/usr/openv/netbackup/nblog.conf
/etc/vx/VxICS/icsul.conf

SEE ALSO

See vxlogmgr.

See vxlogview.