Veritas NetBackup™ 命令参考指南

Last Published:
Product(s): NetBackup (8.3)
  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.  
      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.  
      bptpcinfo
    79.  
      bpup
    80.  
      bpverify
    81.  
      cat_convert
    82.  
      cat_export
    83.  
      cat_import
    84.  
      configureCerts
    85.  
      configureCertsForPlugins
    86.  
      configureMQ
    87.  
      configurePorts
    88.  
      configureWebServerCerts
    89.  
      create_nbdb
    90.  
      csconfig cldinstance
    91.  
      csconfig cldprovider
    92.  
      csconfig meter
    93.  
      csconfig throttle
    94.  
      csconfig reinitialize
    95.  
      duplicatetrace
    96.  
      importtrace
    97.  
      jbpSA
    98.  
      jnbSA
    99.  
      ltid
    100.  
      manageClientCerts
    101.  
      mklogdir
    102.  
      nbauditreport
    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.  
      nbftadm
    135.  
      nbftconfig
    136.  
      nbgetconfig
    137.  
      nbhba
    138.  
      nbholdutil
    139.  
      nbhostidentity
    140.  
      nbhostmgmt
    141.  
      nbhypervtool
    142.  
      nbidpcmd
    143.  
      nbimageshare
    144.  
      nbinstallcmd
    145.  
      nbjm
    146.  
      nbkmiputil
    147.  
      nbkmscmd
    148.  
      nbkmsutil
    149.  
      nboraadm
    150.  
      nborair
    151.  
      nbpem
    152.  
      nbpemreq
    153.  
      nbmlb
    154.  
      nbperfchk
    155.  
      nbplupgrade
    156.  
      nbrb
    157.  
      nbrbutil
    158.  
      nbregopsc
    159.  
      nbreplicate
    160.  
      nbrepo
    161.  
      nbrestorevm
    162.  
      nbseccmd
    163.  
      nbsetconfig
    164.  
      nbsnapimport
    165.  
      nbsnapreplicate
    166.  
      nbsqladm
    167.  
      nbstl
    168.  
      nbstlutil
    169.  
      nbstop
    170.  
      nbsu
    171.  
      nbsvrgrp
    172.  
      resilient_clients
    173.  
      restoretrace
    174.  
      stopltid
    175.  
      tldd
    176.  
      tldcd
    177.  
      tpautoconf
    178.  
      tpclean
    179.  
      tpconfig
    180.  
      tpext
    181.  
      tpreq
    182.  
      tpunmount
    183.  
      verifytrace
    184.  
      vltadm
    185.  
      vltcontainers
    186.  
      vlteject
    187.  
      vltinject
    188.  
      vltoffsitemedia
    189.  
      vltopmenu
    190.  
      vltrun
    191.  
      vmadd
    192.  
      vmchange
    193.  
      vmcheckxxx
    194.  
      vmd
    195.  
      vmdelete
    196.  
      vmoprcmd
    197.  
      vmphyinv
    198.  
      vmpool
    199.  
      vmquery
    200.  
      vmrule
    201.  
      vmupdate
    202.  
      vnetd
    203.  
      vssat
    204.  
      vwcp_manage
    205.  
      vxlogcfg
    206.  
      vxlogmgr
    207.  
      vxlogview
    208.  
      W2KOption
  3.  
    索引

名称

nbcomponentupdate — 更新 JRE 版本

大纲

nbcomponentupdate -product [NetBackup | OpsCenterServer | OpsCenterAgent | OpsCenterViewBuilder | RemoteJavaConsole] -component value -path component_path | -revert [-logpath path] [-help | -?] [-dryrun | -force] [-version value] [-skipmajorversioncheck]

 

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

在 Windows 系统上,此命令的目录路径为 install_path\NetBackup\bin\goodies\

描述

可使用此实用程序升级 Veritas NetBackup 和 OpsCenter 产品中已安装的 JRE 版本。此实用程序不支持 NetBackup Plug-in for VMware vCenter 的 JRE 更新。

NetBackup 安装的 JRE 版本是支持该 NetBackup 版本的主要版本。使用此实用程序可更新到受支持的 JRE 主要版本的次要版本。Veritas 建议您仅在 JRE 供应商声明终止使用已安装的 JRE 版本时,再更新至另一个 JRE 主要版本。

关闭产品(如 NetBackup),然后再尝试更新 JRE。如果尝试更新时产品处于活动状态,该实用程序将退出并显示一条错误消息,要求您关闭该产品。

小心:

JRE 正在更新时请勿停止该实用程序。此操作可能会导致使用 JRE 的产品(例如 NetBackup)变得不稳定。

如果系统上安装了用于不同应用程序的其他 JRE 版本,NetBackup JRE 对它们没有影响。NetBackup JRE 既不与 Web 浏览器集成,也不允许 Java 小程序或 Web Start 运行。因此,在利用 Java 小程序或 Web Start 漏洞等基于浏览器的攻击中,不能使用 NetBackup JRE。

我们提供了有关 nbcomponentupdate 命令的更多信息。

https://www.veritas.com/support/en_US/article.000115043

如果您使用 OpsCenter 或 NetBackup 远程管理控制台,则此命令的位置如下:

  • OpsCenter 服务器

    UNIX/Linux:SYMCOpsCenterServer/bin/

    Windows:install_path\server\bin\

  • OpsCenter 代理

    Windows:install_path\agent\bin\

  • OpsCenter View Builder

    Windows:install_path\viewbuilder\bin

  • NetBackup 远程管理控制台

    Windows:install_path\java

选项

-component value

更新指定的组件。此选项的唯一有效值为 JRE

-dryrun

运行测试以验证是否允许执行操作。

-force

跳过交互模式。如果您使用 -force-productRemoteJavaConsole,则必须使用-version 选项。

-help | -?

打印帮助信息。

-logpath path

指定日志文件的位置。默认情况下,会在系统临时文件夹中生成日志。在 Windows 计算机上,可以将 path 指定为 %temp%nbcomponentupdate_date_time.log。请注意,此选项的行为取决于所指定的内容。

  • 如果您指定的路径是文件夹或驱动器,则会在指定的位置中生成日志文件。如果将 -logpath 指定为 C:\logs,则日志文件是 C:\logs\nbcomponentupdate_date_time.log

  • 如果已为 -logpath 指定了文件名,但文件在该位置中不存在,则会生成具有指定名称的新文件。如果指定了 C:\samplelogfile.log,则在 C:\samplelogfile.log 文件中生成日志。

  • 如果在日志路径中指定了文件名且该位置中存在文件,则日志将附加到该文件。如果将 -logpath 指定为 C:\samplelogfile.log,则日志将附加到 samplelogfile.log 文件。

注意:

请勿为日志路径指定网络路径,如 NFS 或 CIFS。

-path component_path

指定用于升级的 JRE 新版本所在的路径。component_path 为已安装的 JRE 的位置或已提取的 JRE 文件夹。

-product [NetBackup | OpsCenterServer | OpsCenterAgent | OpsCenterViewBuilder | RemoteJavaConsole]

更新指定产品的 JRE 版本。此选项不分大小写。如果所选产品是 NetBackup 远程管理控制台,则该命令会列出所有已安装的远程管理控制台版本。然后,系统会提示您选择需要更新的受支持的远程管理控制台版本。

-revert

将当前安装的 JRE 更新还原到先前安装的 JRE 版本。

-skipmajorversioncheck

允许实用程序将 JRE 更新到任何更高的主要版本或次要版本。

-version value

需要升级或还原的远程 Java 控制台的版本。仅当为 -product 选项指定了 RemoteJavaConsole 时,此选项才可用。之所以存在此限制,是因为只在远程 Java 控制台中保留了您可以升级或还原的多个版本。

如果不指定此选项,该实用程序会列出所有已安装的远程 Java 控制台版本。然后,实用程序会提示您选择受支持的控制台版本以进行升级或还原。如果使用 -force 选项,则必须指定 -version 选项。

示例

示例 1:OpsCenter 升级的试运行

C:\Program Files\Symantec\OpsCenter\server\bin>nbcomponentupdate -product OpsCenterServer -component jre -path f:\JRE_Download\jre1.8.0_66 -logpath %temp%\nbcomponentupdate.log -dryrun Command line: C:\Program Files\Symantec\OpsCenter\server\bin\nbcomponentupdate.exe -product OpsCenterServer -component jre -path f:\JRE_Download\jre1.8.0_66 -logpath C:\Users\ADMINI~1 \AppData\Local\Temp\2\nbcomponentupdate.log -dryrun Java Runtime Envrionment(JRE) version installed with product 'Veritas OpsCenter Server' : 1.8.0_31 (64bit) Java Runtime Envrionment(JRE) version found at path 'f:\JRE_Download\jre1.8.0_66' : 1.8.0_66 (64bit) This utility will update the Java Runtime Envrionment(JRE) binaries present at 'C:\Program Files\Symantec\OpsCenter\server\jre' path This utility may start and stop all (or some) services depending upon the present state of services. Upgrade operation is permitted. Please re-run this command without 'dryrun' option.

示例 2:NetBackup 的交互式更新

$ /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product NetBackup -component jre -path /downloadedJre/jre1.8.0_91/ Command line: /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product NetBackup -component jre -path /downloadedJre/jre1.8.0_91/ Java Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 1.8.0_31 (64bit) Java Runtime Envrionment(JRE) version found at path '/downloadedJre/jre1.8.0_91' : 1.8.0_91 (64bit) This utility will update the Java Runtime Envrionment(JRE) binaries present at '/usr/openv/ java/jre' path This utility may start and stop all (or some) services depending upon the present state of services. Do you want to continue (Y[es]/N[o]): Yes Performing upgrade steps ... [1/4] Pre-installation step is in progress [1/4] Pre-installation step is completed successfully [2/4] Installation step is in progress [2/4] Installation step is completed successfully [3/4] Post-installation step is in progress [3/4] Post-installation step is completed successfully [4/4] Commit and Cleanup step is in progress [4/4] Commit and Cleanup step is completed successfully After upgrading, Java Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 1.8.0_91 (64bit) Successfully upgraded Java Runtime Envrionment(JRE) for Veritas NetBackup. The log file generated for this operation is /tmp/logs/nbcomponentupdate/ nbcomponentupdate_12-08-2016_16.15.13.log

示例 3:NetBackup 的非交互式还原

# ./nbcomponentupdate -product NetBackup -component jre -revert -force Command line: /usr/openv/netbackup/bin/goodies/nbcomponentupdate -product NetBackup -component jre -revert -force Java Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 1.8.0_91 (64bit) After revert, Java Runtime Envrionment(JRE) version with product 'Veritas NetBackup' : 1.8.0_31 (64bit) This utility will update the Java Runtime Envrionment(JRE) binaries present at '/usr/openv/ java/jre' path This utility may start and stop all (or some) services depending upon the present state of services. Performing revert steps ... [1/4] Pre-installation step is in progress [1/4] Pre-installation step is completed successfully [2/4] Installation step is in progress [2/4] Installation step is completed successfully [3/4] Post-installation step is in progress [3/4] Post-installation step is completed successfully [4/4] Commit and Cleanup step is in progress [4/4] Commit and Cleanup step is completed successfully After reverting, Java Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup' : 1.8.0_31 (64bit) Successfully reverted Java Runtime Envrionment(JRE) for Veritas NetBackup. The log file generated for this operation is /tmp/logs/nbcomponentupdate/ nbcomponentupdate_22-08-2016_13.07.42.log

示例 4:远程 Java 控制台的交互式还原

D:\sandbox>nbcomponentupdate.exe -product remotejavaconsole -component jre -revert -logpath D:\LogFolder Command line: D:\sandbox\nbcomponentupdate.exe -product remotejavaconsole -component jre -revert -logpath D:\LogFolder Following NetBackup Remote Java Console instances found on the host are supported by the utility: 1> NetBackup - Java (NB-Java) 7.7 JRE : 1.8.0_31 (64bit) 2> NetBackup - Java (NB-Java) 7.7.1 JRE : 1.8.0_31 (64bit) 3> NetBackup - Java (NB-Java) 7.7.2 JRE : 1.8.0_77 (64bit) ** NOTE ** Unsupported versions of Veritas NetBackup Remote Java Console found on the host: NetBackup - Java (NB-Java) 7.6, NetBackup - Java (NB-Java) 7.5 Please enter choice [(1 - 3) or Q(uit) to exit]: 3 After revert, Java Runtime Envrionment(JRE) version with product 'Veritas NetBackup Remote Java Console' : 1.8.0_31 (64bit) This utility will update the Java Runtime Envrionment(JRE) binaries present at 'D:\RJC772\ Java\jre' path Do you want to continue (Y[es]/N[o]): y Performing revert steps ... [1/4] Pre-installation step is in progress [1/4] Pre-installation step is completed successfully [2/4] Installation step is in progress [2/4] Installation step is completed successfully [3/4] Post-installation step is in progress [3/4] Post-installation step is completed successfully [4/4] Commit and Cleanup step is in progress [4/4] Commit and Cleanup step is completed successfully After reverting, Java Runtime Envrionment(JRE) version installed with product 'Veritas NetBackup Remote Java Console' : 1.8.0_31 (64bit) Successfully reverted Java Runtime Envrionment(JRE) for Veritas NetBackup Remote Java Console. The log file generated for this operation is D:\LogFolder\ nbcomponentupdate_22-08-2016_16.22.13.log