Guide de référence des commandes NetBackup™

Last Published:
Product(s): NetBackup (11.0.0.1)
  1. Introduction
    1.  
      A propos des commandes de NetBackup
    2.  
      Navigation dans les niveaux de menu
    3.  
      Conventions des commandes NetBackup
    4.  
      Remarques sur les commandes de NetBackup Media Manager
    5.  
      Mises à jour IPv6
  2. Annexe A. Commandes NetBackup
    1.  
      acsd
    2.  
      backupdbtrace
    3.  
      backuptrace
    4.  
      bmrc
    5.  
      bmrconfig
    6.  
      bmrepadm
    7.  
      bmrprep
    8.  
      bmrs
    9.  
      bmrsrtadm
    10.  
      bp
    11.  
      bparchive
    12.  
      bpbackup
    13.  
      bpbackupdb
    14.  
      bpcatarc
    15.  
      bpcatlist
    16.  
      bpcatres
    17.  
      bpcatrm
    18.  
      bpcd
    19.  
      bpchangeprimary
    20.  
      bpcleanrestore
    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.  
      bpup
    79.  
      bpverify
    80.  
      cat_convert
    81.  
      cat_export
    82.  
      cat_import
    83.  
      configureCerts
    84.  
      configureMQ
    85.  
      configureWebServerCerts
    86.  
      create_nbdb
    87.  
      csconfig cldinstance
    88.  
      csconfig cldprovider
    89.  
      csconfig meter
    90.  
      csconfig reinitialize
    91.  
      csconfig throttle
    92.  
      duplicatetrace
    93.  
      importtrace
    94.  
      jbpSA
    95.  
      jnbSA
    96.  
      ltid
    97.  
      mklogdir
    98.  
      msdpcldutil
    99.  
      msdpimgutil
    100.  
      nbauditreport
    101.  
      nbcallhomeproxyconfig
    102.  
      nbcatsync
    103.  
      NBCC
    104.  
      NBCCR
    105.  
      nbcertcmd
    106.  
      nbcertupdater
    107.  
      nbcldutil
    108.  
      nbcmdrun
    109.  
      nbcomponentupdate
    110.  
      nbcplogs
    111.  
      nbcredkeyutil
    112.  
      nbdb_admin
    113.  
      nbdb_backup
    114.  
      nbdb_move
    115.  
      nbdb_ping
    116.  
      nbdb_backup
    117.  
      nbdb_move
    118.  
      nbdb2adutl
    119.  
      nbdb_restore
    120.  
      nbdbms_start_stop
    121.  
      nbdc
    122.  
      nbdecommission
    123.  
      nbdelete
    124.  
      nbdeployutil
    125.  
      nbdevconfig
    126.  
      nbdevquery
    127.  
      nbdiscover
    128.  
      nbdna
    129.  
      nbemm
    130.  
      nbemmcmd
    131.  
      nbepicfile
    132.  
      nbfindfile
    133.  
      nbfirescan
    134.  
      nbfp
    135.  
      nbftadm
    136.  
      nbftconfig
    137.  
      nbgetconfig
    138.  
      nbhba
    139.  
      nbholdutil
    140.  
      nbhostidentity
    141.  
      nbhostmgmt
    142.  
      nbhsmcmd
    143.  
      nbhypervtool
    144.  
      nbidpcmd
    145.  
      nbimageshare
    146.  
      nbinstallcmd
    147.  
      nbjm
    148.  
      nbkmiputil
    149.  
      nbkmscmd
    150.  
      nbkmsutil
    151.  
      nblogparser
    152.  
      nbmariadb
    153.  
      nbmysql
    154.  
      nbmlb
    155.  
      nborair
    156.  
      nboracmd
    157.  
      nbpem
    158.  
      nbpemreq
    159.  
      nbmariadb
    160.  
      nbmlb
    161.  
      nbperfchk
    162.  
      nbpgsql
    163.  
      nbplupgrade
    164.  
      nbrb
    165.  
      nbrbutil
    166.  
      nbreplicate
    167.  
      nbrepo
    168.  
      nbrestorevm
    169.  
      nbseccmd
    170.  
      nbserviceusercmd
    171.  
      nbsetconfig
    172.  
      nbshvault
    173.  
      nbsmartdiag
    174.  
      nbsnapimport
    175.  
      nbsnapreplicate
    176.  
      nbsqlcmd
    177.  
      nbsqlite
    178.  
      nbstl
    179.  
      nbstlutil
    180.  
      nbstop
    181.  
      nbsu
    182.  
      nbsvrgrp
    183.  
      netbackup_deployment_insights
    184.  
      resilient_clients
    185.  
      restoretrace
    186.  
      stopltid
    187.  
      tiermover
    188.  
      tldd
    189.  
      tldcd
    190.  
      tpautoconf
    191.  
      tpclean
    192.  
      tpconfig
    193.  
      tpext
    194.  
      tpreq
    195.  
      tpunmount
    196.  
      verifytrace
    197.  
      vltadm
    198.  
      vltcontainers
    199.  
      vlteject
    200.  
      vltinject
    201.  
      vltoffsitemedia
    202.  
      vltopmenu
    203.  
      vltrun
    204.  
      vmadd
    205.  
      vmchange
    206.  
      vmcheckxxx
    207.  
      vmd
    208.  
      vmdelete
    209.  
      vmoprcmd
    210.  
      vmphyinv
    211.  
      vmpool
    212.  
      vmquery
    213.  
      vmrule
    214.  
      vmupdate
    215.  
      vnetd
    216.  
      vssat
    217.  
      vwcp_manage
    218.  
      vxlogcfg
    219.  
      vxlogmgr
    220.  
      vxlogview
    221.  
      W2KOption

Nom

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

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

Be aware that the nbserviceusercmd command is not supported on Flex Appliance, NetBackup Flex Scale, and NetBackup on any Kubernetes Service platform. The Kubernetes Service platforms include Azure Kubernetes Service (AKS), Amazon Elastic Kubernetes Service (EKS), etc.

Remarque :

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 a Windows primary server, you must first run nbserviceusercmd -addAcl -catalog -reason audit_reason.

This requirement is to make sure that permissions on the 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

To change the service user

  1. (Conditional) On a clustered server, confirm that the cluster resources are offline. For more information, refer to the NetBackup Clustered Primary 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 Primary 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. Cohesity 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 daemons so that they can start in the 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 username only when prompted and not as an argument-value. You are limited to three attempts and then you must run the command again. Only the root user can run this option.

Remarque :

Cohesity recommends that the service user is an account with limited privileges. Cohesity 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 on the NetBackup primary server.

-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 on the NetBackup primary server.

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