NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup & Alta Data Protection (10.5)
  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.  
      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.  
      nbauditreport
    100.  
      nbcallhomeproxyconfig
    101.  
      nbcatsync
    102.  
      NBCC
    103.  
      NBCCR
    104.  
      nbcertcmd
    105.  
      nbcertupdater
    106.  
      nbcldutil
    107.  
      nbcmdrun
    108.  
      nbcomponentupdate
    109.  
      nbcplogs
    110.  
      nbcredkeyutil
    111.  
      nbdb_admin
    112.  
      nbdb_backup
    113.  
      nbdb_move
    114.  
      nbdb_ping
    115.  
      nbdb_restore
    116.  
      nbdb_unload
    117.  
      nbdb2adutl
    118.  
      nbdbms_start_server
    119.  
      nbdbms_start_stop
    120.  
      nbdc
    121.  
      nbdecommission
    122.  
      nbdelete
    123.  
      nbdeployutil
    124.  
      nbdevconfig
    125.  
      nbdevquery
    126.  
      nbdiscover
    127.  
      nbdna
    128.  
      nbemm
    129.  
      nbemmcmd
    130.  
      nbepicfile
    131.  
      nbfindfile
    132.  
      nbfirescan
    133.  
      nbfp
    134.  
      nbftadm
    135.  
      nbftconfig
    136.  
      nbgetconfig
    137.  
      nbhba
    138.  
      nbholdutil
    139.  
      nbhostidentity
    140.  
      nbhostmgmt
    141.  
      nbhypervtool
    142.  
      nbidpcmd
    143.  
      nbimageshare
    144.  
      nbinstallcmd
    145.  
      nbjm
    146.  
      nbkmiputil
    147.  
      nbkmscmd
    148.  
      nbkmsutil
    149.  
      nblogparser
    150.  
      nbmariadb
    151.  
      nbmysql
    152.  
      nbmlb
    153.  
      nboraadm
    154.  
      nborair
    155.  
      nboracmd
    156.  
      nbpem
    157.  
      nbpemreq
    158.  
      nbmariadb
    159.  
      nbmlb
    160.  
      nbperfchk
    161.  
      nbpgsql
    162.  
      nbplupgrade
    163.  
      nbrb
    164.  
      nbrbutil
    165.  
      nbreplicate
    166.  
      nbrepo
    167.  
      nbrestorevm
    168.  
      nbseccmd
    169.  
      nbserviceusercmd
    170.  
      nbsetconfig
    171.  
      nbshvault
    172.  
      nbsmartdiag
    173.  
      nbsnapimport
    174.  
      nbsnapreplicate
    175.  
      nbsqladm
    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.  
      tldd
    188.  
      tldcd
    189.  
      tpautoconf
    190.  
      tpclean
    191.  
      tpconfig
    192.  
      tpext
    193.  
      tpreq
    194.  
      tpunmount
    195.  
      verifytrace
    196.  
      vltadm
    197.  
      vltcontainers
    198.  
      vlteject
    199.  
      vltinject
    200.  
      vltoffsitemedia
    201.  
      vltopmenu
    202.  
      vltrun
    203.  
      vmadd
    204.  
      vmchange
    205.  
      vmcheckxxx
    206.  
      vmd
    207.  
      vmdelete
    208.  
      vmoprcmd
    209.  
      vmphyinv
    210.  
      vmpool
    211.  
      vmquery
    212.  
      vmrule
    213.  
      vmupdate
    214.  
      vnetd
    215.  
      vssat
    216.  
      vwcp_manage
    217.  
      vxlogcfg
    218.  
      vxlogmgr
    219.  
      vxlogview
    220.  
      W2KOption

Name

nbsqlcmd — Configuration utility for Microsoft SQL Server assets

SYNOPSIS

nbsqlcmd list instances -format json [-S primary_server] [-limit limit] [-filter filter] [-sort sort]

nbsqlcmd list instances [-format csv] [-S primary_server] [-limit limit] [-name instance_name] [-hostname hostname] [-active | -inactive] [-registered | -unregistered]

nbsqlcmd list databases [-S primary_server] [-format csv|json] [-limit limit] [-filter filter] [-sort sort]

nbsqlcmd list availability_groups -format json [-S primary_server] [-limit limit] [-filter filter] [-sort sort]

nbsqlcmd list availability_groups [-format csv] [-S primary_server] [-limit limit] [-name name] [-cluster_name cluster_name] [-ag_id availability_group_id]

nbsqlcmd list credentials [-S primary_server] [-format csv|json] [-limit limit] [-filter filter] [-sort sort]

nbsqlcmd list replicas -ag_id ag_id [-S primary_server] [-format csv|json] [-limit limit] [-filter filter] [-sort sort]

nbsqlcmd add instance -name instance_name -hostname hostname [-S primary_server]

nbsqlcmd add replica -instance_id instance_asset_id -ag_id ag_asset_id [-S primary_server]

nbsqlcmd add availability_group -name ag_name { -cluster_name cluster_name | -guid ag_guid } [-S primary_server]

nbsqlcmd delete availability_group [-S primary_server] ASSET_ID

nbsqlcmd delete database [-S primary_server] ASSET_ID

nbsqlcmd delete instance [-S primary_server] ASSET_ID

nbsqlcmd delete replica [-S primary_server] ASSET_ID

nbsqlcmd discover availability_groups -instance_id instance_id [-S primary_server]

nbsqlcmd discover databases -instance_id instance_id [-S primary_server]

nbsqlcmd discover instances -hostname hostname [-S primary_server]

nbsqlcmd manage credentials -name credential_name [-S primary_server] ASSET_ID

nbsqlcmd modify instance [-state ACTIVE | INACTIVE] [-S primary_server] ASSET_ID

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

The nbsqlcmd command can add, list, modify, and delete SQL Server assets.

With the nbsqlcmd command, you can add a SQL Server instance asset or a SQL Server Availability Group asset. The command can associate an existing SQL Server instance asset with an Availability Group asset. The command lets you modify a given SQL Server instance asset with the given asset ID. You can use the command to discover instances on a specified host.

You can use the command to discover Availability Groups that are associated with a given SQL Server instance asset. You can also use the command to discover the databases that are associated with a given SQL Server instance asset.

The command lets you list SQL Server database and instance assets. You can also list SQL Server availability groups and SQL Server Availability Group replicas.

In addition to using nbsqlcmd to list NetBackup CMS SQL Server credentials you can also manage your credentials, and associate a given credential with an asset.

You can use the command to delete a SQL Server Availability Group asset, a SQL Server instance asset, or a SQL Server replica asset.

Before you run the nbsqlcmd command, you must run the bpnbat - login - loginType WEB command. The bpnbat command authenticates your web services logon. The user that is specified when you run bpnbat -login -loginType WEB should be a member of an RBAC role with Assets, SQL Server, View, and Recover permissions.

OPTIONS

-active

Filters the list of instances to only those that are active. Can only be used with -format csv.

-ag_id ag_id

The asset ID of an Availability group. Used as a filter for the list commands and input for the add replica command.

-ASSET_ID

A positional argument that must be specified at the end of the command. The asset ID of the asset to be modified, deleted, or managed.

-cluster_name cluster_name

The cluster name of an Availability Group. Used to filter on a specific cluster with the list command. Can only be used with -format csv. Used in add availability_group to set the cluster that is associated with the availability group.

-filter filter

Filters the data in the list. The filter value must be in OData format. Can only be used with -format json.

-format csv|json

Specifies the format to be used for the output. The default value is csv.

-guid guid

The GUID of the Availability Group being added as an asset.

-help

Prints the usage of the nbsqlcmd command.

-hostname hostname

The host name of an asset. When this option is used in the list command, it can only be used with -format csv.When the option is used with the discover instance command, it is the SQL server host name on which the instances reside.

-inactive

Filters the assets in list to only the assets that are inactive. Can only be used with -format csv.

-instance_id instance_id

The asset ID of an Instance.

-limit limit

The max number of items to be listed. Max of 100.

-name name

The display name of an asset. When the option is used with add credentials, this option is the name of the CMS named credential.

-registered

Filters the list of assets to only the assets that are registered. Can only be used with -format csv.

-S primary_server

Specifies the primary server that contains the asset to be listed or modified.

-sort sort

Sorts the data in the list. The sort value must be in OData format. Can only be used with -format json.

-state ACTIVE|INACTIVE

Specifies the new state to be assigned to the given instance asset.

-unregistered

Filters the list of assets to only the assets that are not registered. Can only be used with -format csv.

EXAMPLES

Example 1: List the instances and filter them based on the instance name.

nbsqlcmd list instances -format json -filter "commonAssetAttributes/
displayName eq 'MSSQLSERVER'"

SEE ALSO

See bplist.

See bpnbat.