Important Update: Cohesity Products Documentation


All Cohesity product documentation are now managed via the Cohesity Docs Portal: https://docs.cohesity.com/HomePage/Content/home.htm. Some documentation available here may not reflect the latest information or may no longer be accessible.

NetBackup™ Commands Reference Guide

Last Published:
Product(s): NetBackup (11.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.  
      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_restore
    117.  
      nbdb_unload
    118.  
      nbdb2adutl
    119.  
      nbdbms_start_server
    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

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.