Veritas NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup & Alta Data Protection (9.1)
  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.  
      configureCerts
    85.  
      configureCertsForPlugins
    86.  
      configureMQ
    87.  
      configurePorts
    88.  
      configureWebServerCerts
    89.  
      create_nbdb
    90.  
      csconfig cldinstance
    91.  
      csconfig cldprovider
    92.  
      csconfig meter
    93.  
      csconfig reinitialize
    94.  
      csconfig throttle
    95.  
      duplicatetrace
    96.  
      importtrace
    97.  
      jbpSA
    98.  
      jnbSA
    99.  
      ltid
    100.  
      manageClientCerts
    101.  
      mklogdir
    102.  
      nbauditreport
    103.  
      nbcallhomeproxyconfig
    104.  
      nbcatsync
    105.  
      NBCC
    106.  
      NBCCR
    107.  
      nbcertcmd
    108.  
      nbcertupdater
    109.  
      nbcldutil
    110.  
      nbcloudrestore
    111.  
      nbcomponentupdate
    112.  
      nbcplogs
    113.  
      nbcredkeyutil
    114.  
      nbdb_admin
    115.  
      nbdb_backup
    116.  
      nbdb_move
    117.  
      nbdb_ping
    118.  
      nbdb_restore
    119.  
      nbdb_unload
    120.  
      nbdb2adutl
    121.  
      nbdbms_start_server
    122.  
      nbdbms_start_stop
    123.  
      nbdc
    124.  
      nbdecommission
    125.  
      nbdelete
    126.  
      nbdeployutil
    127.  
      nbdevconfig
    128.  
      nbdevquery
    129.  
      nbdiscover
    130.  
      nbdna
    131.  
      nbemm
    132.  
      nbemmcmd
    133.  
      nbfindfile
    134.  
      nbfirescan
    135.  
      nbftadm
    136.  
      nbftconfig
    137.  
      nbgetconfig
    138.  
      nbhba
    139.  
      nbholdutil
    140.  
      nbhostidentity
    141.  
      nbhostmgmt
    142.  
      nbhypervtool
    143.  
      nbidpcmd
    144.  
      nbimageshare
    145.  
      nbinstallcmd
    146.  
      nbjm
    147.  
      nbkmiputil
    148.  
      nbkmscmd
    149.  
      nbkmsutil
    150.  
      nboraadm
    151.  
      nborair
    152.  
      nbpem
    153.  
      nbpemreq
    154.  
      nbmlb
    155.  
      nbperfchk
    156.  
      nbplupgrade
    157.  
      nbrb
    158.  
      nbrbutil
    159.  
      nbregopsc
    160.  
      nbreplicate
    161.  
      nbrepo
    162.  
      nbrestorevm
    163.  
      nbseccmd
    164.  
      nbserviceusercmd
    165.  
      nbsetconfig
    166.  
      nbsmartdiag
    167.  
      nbsnapimport
    168.  
      nbsnapreplicate
    169.  
      nbsqladm
    170.  
      nbstl
    171.  
      nbstlutil
    172.  
      nbstop
    173.  
      nbsu
    174.  
      nbsvrgrp
    175.  
      netbackup_deployment_insights
    176.  
      resilient_clients
    177.  
      restoretrace
    178.  
      stopltid
    179.  
      tldd
    180.  
      tldcd
    181.  
      tpautoconf
    182.  
      tpclean
    183.  
      tpconfig
    184.  
      tpext
    185.  
      tpreq
    186.  
      tpunmount
    187.  
      verifytrace
    188.  
      vltadm
    189.  
      vltcontainers
    190.  
      vlteject
    191.  
      vltinject
    192.  
      vltoffsitemedia
    193.  
      vltopmenu
    194.  
      vltrun
    195.  
      vmadd
    196.  
      vmchange
    197.  
      vmcheckxxx
    198.  
      vmd
    199.  
      vmdelete
    200.  
      vmoprcmd
    201.  
      vmphyinv
    202.  
      vmpool
    203.  
      vmquery
    204.  
      vmrule
    205.  
      vmupdate
    206.  
      vnetd
    207.  
      vssat
    208.  
      vwcp_manage
    209.  
      vxlogcfg
    210.  
      vxlogmgr
    211.  
      vxlogview
    212.  
      W2KOption
  3.  
    Index

Name

nbserviceusercmd — used to change the service user, and grant or revoke access to NetBackup Services on the NetBackup installation directory, depending on the operating system

SYNOPSIS

UNIX synopsis

nbserviceusercmd --changeUser

Windows synopsis

nbserviceusercmd -addAcl | -removeAcl -all | -catalog | -cluster -reason audit_reason [-skip_catalog] [-force]

nbserviceusercmd -addAcl|-removeAcl path1 path2... -reason reason

nbserviceusercmd -changeUser LocalSystem | LocalService | DOMAIN\Administrator_user [-force]

nbserviceusercmd -checkStatus

On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/goodies

On Windows systems, the directory path to this command is install_path\bin\goodies

DESCRIPTION

On UNIX, you can only use the nbserviceusercmd command to change the service user.

On Windows, use the nbserviceusercmd command to grant or revoke access to the NetBackup services on the NetBackup installation directory as well as to change the service user.

Note:

You must stop all the NetBackup services or daemons before you change the service user.

Before you change the service user with the -changeUser option on Windows, you must first run nbserviceusercmd -addAcl -catalog -reason audit_reason.

This requirement is to make sure that permissions on image catalog are updated before you change the user. This operation may take significant time to complete based on the size of the image catalog.

Run the -addAcl -catalog option before you stop the services.

REQUIREMENTS

Before you change the service user, the NetBackup services or daemons must be offline.

To change the service user

  1. (Conditional) On a clustered server, confirm that the cluster resources are offline. For more information, refer to the Veritas NetBackup Clustered Master Server Administrator's Guide.
  2. Stop all NetBackup services or daemons.
  3. Change the service user with the changeUser option.
  4. (Conditional) On a clustered server, run the command on all nodes in the cluster after you change the service user on the active node.

After you change the service user, confirm the disaster recovery (DR) path that is specified in the catalog policy has the required permissions.

To update the disaster recovery path permissions

  1. (Conditional) On a clustered server, confirm that the cluster resources are online. For more information, refer to the NetBackup Clustered Master Server Administrator's Guide.
  2. Start the NetBackup services or daemons.
  3. (Conditional) On UNIX, grant the required access to the service user on the DR path.
  4. (Conditional) On Windows, run the command that is shown on all servers:

    nbserviceusercmd -addAcl DR_path -reason audit_reason

  5. Veritas recommends that you take an immediate catalog backup.

For NetBackup Access Control (NBAC) users: If NBAC is configured on the host and you changed the service user to a non-root or LocalService user, you must update the Global Security Administrator group.

To update Global Security Administrator group

  1. Confirm that all NetBackup services are up and running.
  2. Run the command that is shown to add the current service user to the Security Administrators group:

    vssaz addazgrpmember --azgrpname "Security Administrators" --prplinfo ATP,atdomain,new service user

    For more information about how to add the user principle in Global Security Administrator group, refer to the NetBackup Security and Encryption Guide.

OPTIONS

-addAcl

(Windows only) Grants access to NetBackup services on the NetBackup installation directory.

-all

(Windows only) Specifies that the operation is to be performed on all files and folders in the NetBackup installation directory. In a clustered environment, the image catalog database and the cluster-specific files are included in these files and folders.

This option skips the image catalog database if CATALOG_PERMISSIONS_UPDATED is set to TRUE in the NetBackup configuration.

-catalog

(Windows only) Specifies that the operation is to be performed only on the image catalog database. This option cannot be used with the -skip_catalog option.

This option skips the image catalog database if CATALOG_PERMISSIONS_UPDATED is set to TRUE in the NetBackup configuration.

--changeUser

(UNIX only) Use this option to change the service user of a UNIX computer. This option changes the service user for non-privileged NetBackup master server daemons so that they can start in service user context. You must stop all NetBackup daemons to run this option. The option supports both root and non-root service user types. Use this option to change users as shown:

  • Root to non-root

  • Non-root to root

  • Non-root to non-root

Give the user name only when prompted and not as argument-value. You are limited to three attempts and then you must run the command again. Only the root user can run this option.

Note:

Veritas recommends that the service user is an account with limited privileges. Veritas recommends that you do not use the root user or an nbwebsvc user as service user. The service user must be part of the nbwebgrp group.

-changeUser

(Windows only) Use this option to change the service user. The command supports the service user types shown:

  • LocalSystem

    Changes the service user to NT AUTHORITY\SYSTEM.

  • LocalService

    Changes the service user to NT AUTHORITY\LocalService.

  • Domain\Administrator_user

    Prompts for the password of the specified administrator user and grants the required privileges to the user.

-checkStatus

(Windows only) Use this option to verify the status of the permissions update on the image catalog.

-cluster

(Windows only) Specifies that the operation is to be performed only on cluster-specific files.

This option skips the image catalog database if CATALOG_PERMISSIONS_UPDATED is set to TRUE in the NetBackup configuration.

-force

(Windows only) Use this option to forcefully grant, revoke, or update permission on the image catalog or to redo the permissions update. This option may take significant time for large catalog image databases. This option cannot be used with the -skip_catalog option.

For example: If the old service user is NT AUTHORITY\LocalService and you want to change the service user back to NT AUTHORITY\LocalService use the -force to again grant or revoke access to the NetBackup services forcefully.

-reason

(Windows only) Specifies the reason of the operation. It is stored in the audit record.

-removeAcl

(Windows only) Revokes access to NetBackup services on the NetBackup installation directory.

-skip_catalog

(Windows only) Specifies that the operation is not to be performed on the image catalog database.

You cannot use this option with the -catalog or the -force options.