NetBackup™ 命令参考指南

Last Published:
Product(s): NetBackup & Alta Data Protection (11.0)
  1. 介绍
    1.  
      关于 NetBackup 命令
    2.  
      浏览多个菜单级别
    3.  
      NetBackup 命令约定
    4.  
      NetBackup 介质管理器命令说明
    5.  
      IPv6 更新
  2. 附录 A. 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.  
      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.  
      nbhsmcmd
    142.  
      nbhypervtool
    143.  
      nbidpcmd
    144.  
      nbimageshare
    145.  
      nbinstallcmd
    146.  
      nbjm
    147.  
      nbkmiputil
    148.  
      nbkmscmd
    149.  
      nbkmsutil
    150.  
      nblogparser
    151.  
      nbmariadb
    152.  
      nbmysql
    153.  
      nbmlb
    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.  
      nbsqlcmd
    176.  
      nbsqlite
    177.  
      nbstl
    178.  
      nbstlutil
    179.  
      nbstop
    180.  
      nbsu
    181.  
      nbsvrgrp
    182.  
      netbackup_deployment_insights
    183.  
      resilient_clients
    184.  
      restoretrace
    185.  
      stopltid
    186.  
      tiermover
    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

名称

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 选项不支持此选项。该选项运行以下检查:

  • 密码检查

  • 主机名检查

  • 检查用户是否存在

  • FIPS 模式检查

-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)。