Veritas NetBackup™ 命令参考指南

Last Published:
Product(s): NetBackup (8.1.1)
  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.  
      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.  
      bppolicynew
    62.  
      bpps
    63.  
      bprd
    64.  
      bprecover
    65.  
      bprestore
    66.  
      bpretlevel
    67.  
      bpschedule
    68.  
      bpschedulerep
    69.  
      bpsetconfig
    70.  
      bpstsinfo
    71.  
      bpstuadd
    72.  
      bpstudel
    73.  
      bpstulist
    74.  
      bpsturep
    75.  
      bptestbpcd
    76.  
      bptestnetconn
    77.  
      bptpcinfo
    78.  
      bpup
    79.  
      bpverify
    80.  
      cat_convert
    81.  
      cat_export
    82.  
      cat_import
    83.  
      configurePorts
    84.  
      create_nbdb
    85.  
      csconfig cldinstance
    86.  
      csconfig cldprovider
    87.  
      csconfig meter
    88.  
      csconfig throttle
    89.  
      duplicatetrace
    90.  
      importtrace
    91.  
      jbpSA
    92.  
      jnbSA
    93.  
      ltid
    94.  
      manageClientCerts
    95.  
      mklogdir
    96.  
      nbauditreport
    97.  
      nbcatsync
    98.  
      NBCC
    99.  
      NBCCR
    100.  
      nbcertcmd
    101.  
      nbcertupdater
    102.  
      nbcldutil
    103.  
      nbcomponentupdate
    104.  
      nbcplogs
    105.  
      nbdb_admin
    106.  
      nbdb_backup
    107.  
      nbdb_move
    108.  
      nbdb_ping
    109.  
      nbdb_restore
    110.  
      nbdb_unload
    111.  
      nbdbms_start_server
    112.  
      nbdbms_start_stop
    113.  
      nbdc
    114.  
      nbdecommission
    115.  
      nbdelete
    116.  
      nbdeployutil
    117.  
      nbdevconfig
    118.  
      nbdevquery
    119.  
      nbdiscover
    120.  
      nbdna
    121.  
      nbemm
    122.  
      nbemmcmd
    123.  
      nbexecute
    124.  
      nbfindfile
    125.  
      nbfirescan
    126.  
      nbftadm
    127.  
      nbftconfig
    128.  
      nbgetconfig
    129.  
      nbhba
    130.  
      nbholdutil
    131.  
      nbhostidentity
    132.  
      nbhostmgmt
    133.  
      nbhypervtool
    134.  
      nbjm
    135.  
      nbkmsutil
    136.  
      nboraadm
    137.  
      nborair
    138.  
      nbpem
    139.  
      nbpemreq
    140.  
      nbperfchk
    141.  
      nbplupgrade
    142.  
      nbrb
    143.  
      nbrbutil
    144.  
      nbregopsc
    145.  
      nbreplicate
    146.  
      nbrestorevm
    147.  
      nbseccmd
    148.  
      nbsetconfig
    149.  
      nbsnapimport
    150.  
      nbsnapreplicate
    151.  
      nbsqladm
    152.  
      nbstl
    153.  
      nbstlutil
    154.  
      nbstop
    155.  
      nbsu
    156.  
      nbsvrgrp
    157.  
      resilient_clients
    158.  
      restoretrace
    159.  
      stopltid
    160.  
      tl4d
    161.  
      tl8d
    162.  
      tl8cd
    163.  
      tldd
    164.  
      tldcd
    165.  
      tlhd
    166.  
      tlhcd
    167.  
      tlmd
    168.  
      tpautoconf
    169.  
      tpclean
    170.  
      tpconfig
    171.  
      tpext
    172.  
      tpreq
    173.  
      tpunmount
    174.  
      verifytrace
    175.  
      vltadm
    176.  
      vltcontainers
    177.  
      vlteject
    178.  
      vltinject
    179.  
      vltoffsitemedia
    180.  
      vltopmenu
    181.  
      vltrun
    182.  
      vmadd
    183.  
      vmchange
    184.  
      vmcheckxxx
    185.  
      vmd
    186.  
      vmdelete
    187.  
      vmoprcmd
    188.  
      vmphyinv
    189.  
      vmpool
    190.  
      vmquery
    191.  
      vmrule
    192.  
      vmupdate
    193.  
      vnetd
    194.  
      vwcp_manage
    195.  
      vxlogcfg
    196.  
      vxlogmgr
    197.  
      vxlogview
    198.  
      W2KOption

名称

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

大纲

nbhostidentity -import -infile file_path [-altdir directory_path [-noacls]]

nbhostidentity –testpassphrase –infile file_path

nbhostidentity [-import | -testpassphrase] -help

 

在 UNIX 系统上,此命令的目录路径为 /usr/openv/netbackup/bin/admincmd/

在 Windows 系统上,此命令的目录路径为 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 参数指定要还原灾难恢复软件包的备用目录位置。

-import

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

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

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

-import -help

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

-infile file_path

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

-noacls

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

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