NetBackup™ 命令参考指南

Last Published:
Product(s): NetBackup (11.0.0.1)
  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.  
      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

名称

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)