NetBackup™ 命令参考指南

Last Published:
Product(s): NetBackup & Alta Data Protection (10.0)
  1. 介绍
    1.  
      关于 NetBackup 命令
    2.  
      浏览多个菜单级别
    3.  
      NetBackup 命令约定
    4.  
      NetBackup 介质管理器命令说明
    5.  
      IPv6 更新
  2. 附录 A. NetBackup 命令
    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.  
      bpcleanrestore
    22.  
      bpclient
    23.  
      bpclimagelist
    24.  
      bpclntcmd
    25.  
      bpclusterutil
    26.  
      bpcompatd
    27.  
      bpconfig
    28.  
      bpdbjobs
    29.  
      bpdbm
    30.  
      bpdgclone
    31.  
      bpdown
    32.  
      bpduplicate
    33.  
      bperror
    34.  
      bpexpdate
    35.  
      bpfis
    36.  
      bpflist
    37.  
      bpgetconfig
    38.  
      bpgetdebuglog
    39.  
      bpimage
    40.  
      bpimagelist
    41.  
      bpimmedia
    42.  
      bpimport
    43.  
      bpinst
    44.  
      bpkeyfile
    45.  
      bpkeyutil
    46.  
      bplabel
    47.  
      bplist
    48.  
      bpmedia
    49.  
      bpmedialist
    50.  
      bpminlicense
    51.  
      bpnbat
    52.  
      bpnbaz
    53.  
      bppficorr
    54.  
      bpplcatdrinfo
    55.  
      bpplclients
    56.  
      bppldelete
    57.  
      bpplinclude
    58.  
      bpplinfo
    59.  
      bppllist
    60.  
      bpplsched
    61.  
      bpplschedrep
    62.  
      bpplschedwin
    63.  
      bppolicynew
    64.  
      bpps
    65.  
      bprd
    66.  
      bprecover
    67.  
      bprestore
    68.  
      bpretlevel
    69.  
      bpschedule
    70.  
      bpschedulerep
    71.  
      bpsetconfig
    72.  
      bpstsinfo
    73.  
      bpstuadd
    74.  
      bpstudel
    75.  
      bpstulist
    76.  
      bpsturep
    77.  
      bptestbpcd
    78.  
      bptestnetconn
    79.  
      bptpcinfo
    80.  
      bpup
    81.  
      bpverify
    82.  
      cat_convert
    83.  
      cat_export
    84.  
      cat_import
    85.  
      configureCerts
    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.  
      mklogdir
    101.  
      nbauditreport
    102.  
      nbcallhomeproxyconfig
    103.  
      nbcatsync
    104.  
      NBCC
    105.  
      NBCCR
    106.  
      nbcertcmd
    107.  
      nbcertupdater
    108.  
      nbcldutil
    109.  
      nbcloudrestore
    110.  
      nbcomponentupdate
    111.  
      nbcplogs
    112.  
      nbcredkeyutil
    113.  
      nbdb_admin
    114.  
      nbdb_backup
    115.  
      nbdb_move
    116.  
      nbdb_ping
    117.  
      nbdb_restore
    118.  
      nbdb_unload
    119.  
      nbdb2adutl
    120.  
      nbdbms_start_server
    121.  
      nbdbms_start_stop
    122.  
      nbdc
    123.  
      nbdecommission
    124.  
      nbdelete
    125.  
      nbdeployutil
    126.  
      nbdevconfig
    127.  
      nbdevquery
    128.  
      nbdiscover
    129.  
      nbdna
    130.  
      nbemm
    131.  
      nbemmcmd
    132.  
      nbfindfile
    133.  
      nbfirescan
    134.  
      nbfp
    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.  
    索引

名称

nbhostidentity — 发生灾难后,导入 NetBackup 主服务器身份。

大纲

nbhostidentity -import -infile file_path [-altdir directory_path [-noacls]] [-mapuser domain1\user1:domain2\user2 [,domain3\user3:domain4\user4] [-dryrun]

nbhostidentity –testpassphrase –infile file_path

nbhostidentity [-import | -testpassphrase] -help

nbhostidentity -info [-infile file_path] -query string [-json]

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

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

描述

nbhostidentity 命令用于在发生灾难后导入主服务器身份。需要为要还原的主服务器身份提供灾难恢复软件包的文件路径和文件名。

灾难恢复软件包用于存储主服务器身份,这些软件包会在目录库备份期间创建。发生灾难后,NetBackup 需要使用灾难恢复软件包来还原主服务器身份。

注意:

如果安装期间选择的是灾难恢复模式,请勿运行 nbhostidentity 命令。在这种情况下,安装期间会自动导入主服务器身份。

安装 NetBackup 后,可在主服务器上运行 nbhostidentity 命令,以便在发生灾难后手动导入主服务器身份。

运行此命令时,系统将显示以下所示的警告信息:

If new certificates are deployed on the media servers or clients after NetBackup master server installation, certificates on those hosts should be redeployed. To identify the hosts that need certificate redeployment, go to NetBackup Administration Console > Host Properties > Clients.

This process requires you to restart the NetBackup services.

Are you sure you want to proceed (y/n)?

请仔细阅读该警告消息,然后指定相应选项。

N 可终止执行命令。按 Y 可运行 nbhostidentity 命令并重新启动 NetBackup 服务。

输入 Y 后,必须提供相应的密码对指定的灾难恢复软件包进行解密。如果该密码与先前设置的密码不匹配,则主机身份导入操作将失败。

注意:

请确保该密码与目录库备份期间设置的密码相同。该密码必须与指定的灾难恢复软件包所关联的密码相同。

选项

-altdir directory_path

-altdir 参数指定要还原灾难恢复软件包的备用目录位置。

-dryrun

执行模拟运行,以测试灾难恢复软件包及其内容。-altdir-noacls 选项不支持此选项。该选项运行以下检查:

  • 密码检查

  • 主机名检查

  • 检查用户是否存在

-import

为要还原的主服务器身份指定灾难恢复软件包的路径名称和文件名。

灾难恢复软件包将与灾难恢复文件存储在同一位置。此位置会在目录库备份策略配置期间指定。灾难恢复软件包名称与灾难恢复文件名相同。灾难恢复软件包的扩展名为 .drpkg。必须将 inifile 参数和 -import 选项一起使用。

要运行 nbhostidentity -import 命令,您必须是具有系统管理员或超级用户权限的授权用户。

-import -help

显示 -import 选项的命令用法说明。

-infile file_path

要验证或导入的灾难恢复软件包的路径名称和文件名。-import–testpassphrase 选项必须使用此参数。如果您要使用网络共享,则必须指定指向该共享上某个子文件夹的路径。

-info

提供有关灾难恢复软件包及其内容的信息。

-mapuser

将灾难恢复软件包中引用的用户或组映射到此系统中的现有用户或组。可以映射多个用户或组。

此选项不得与 -noacls 选项一起使用。

-noacls

允许您在未设置访问控制列表 (ACL) 的情况下还原文件。仅当灾难恢复软件包还原到备用路径时,此选项才可用。

-query string

检索查询的数据。将字符串替换为所显示的值之一:

  • files -infile file_path

    检索存储在灾难恢复软件包中的身份文件。

  • nonexistingusers | neu

    从当前不存在的主机中检索用户身份文件。

  • nonexistingusers | neu -infile file_path

    检索灾难恢复软件包中引用的,但此系统中不存在的用户或组。

-testpassphrase

用于确认灾难恢复软件包的密码正确无误。您必须是具有系统管理员或超级用户权限的授权用户才能运行 nbhostidentity -testpassphrase 命令。

使用此选项将开始一个交互式会话,系统将提示您输入指定的灾难恢复软件包的密码。nbhostidentity 命令可确认输入的密码是否与灾难恢复软件包的关联密码匹配。必须将 inifile 参数和 –testpassphrase 选项一起使用。

-testpassphrase -help

显示 -testpassphrase 选项的命令用法说明。

-help

显示 nbhostidentity 命令的命令用法说明。

示例

用于恢复主服务器身份的 nbhostidentity 命令示例。

# nbhostidentity -import -infile /dr/nbu_dr_file/
cat_backup_1438271286_INCR.drpkg

包含无效密码的 -testpassphrase 选项的示例。

# ./nbhostidentity -testpassphrase -infile /test2.drpkg
Specify the passphrase that is associated with the disaster recovery 
package.
Passphrase:
The specified passphrase is not valid for the disaster recovery 
package - /test2.drpkg.
nbhostidentity command failed.

包含有效密码的 -testpassphrase 选项的示例。

# ./nbhostidentity -testpassphrase -infile /test2.drpkg
Specify the passphrase that is associated with the disaster recovery 
package.
Passphrase:
The specified passphrase is valid for the disaster recovery 
package - /test2.drpkg.
Command is successfully carried out.

另请参见

请参见nbseccmd(1m)。