Symantec NetBackup™ コマンドリファレンスガイド
- 概要
- 付録 A. NetBackup コマンド
名前
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\
です。
機能説明
このユーティリティを使うと、Symantec NetBackup および OpsCenter 製品でインストールされている JRE のバージョンをアップグレードすることができます。このユーティリティは、NetBackup Plug-in for VMware vCenter の JRE 更新をサポートしません。
NetBackup とともにインストールされる JRE は、その NetBackup リリースに対してサポートされているメジャーバージョンです。サポートされているメジャー JRE バージョンのマイナーバージョンに更新するには、このユーティリティを使用します。たとえば、NetBackup 8.0 が JRE 1.8.0.31 をインストールした場合、サポート対象のメジャーバージョンは 1.8 です。JRE 1.8.0.92 に更新するには、このユーティリティを使用します。
ベリタスは、JRE ベンダーがインストール済みの JRE バージョンに対し End-of-Life を宣言した場合にのみ別のメジャー JRE バージョンに更新することを推奨します。たとえば、お使いの環境にインストール済みの JRE バージョンでもある JRE 1.8 に対し、JRE ベンダーが End-of-Life を宣言した場合は、JRE 1.9 に更新します。
JRE を更新しようとする前に、NetBackup などの製品を終了します。更新時に製品が実行中である場合、ユーティリティが終了し、製品を終了するように求めるエラーメッセージが表示されます。
注意:
JRE 更新が進行中の場合、ユーティリティを停止しないでください。このアクションにより、JRE を使用する NetBackup などの製品が不安定になる可能性があります。
追加バージョンの JRE が異なるアプリケーションに対してシステムにインストールされている場合、NetBackup JRE はそれらの JRE と干渉しません。NetBackup JRE は Web ブラウザとの統合を行ったり、Java アプレットまたは Web Start の実行を許可したりするものではありません。したがって、NetBackup JRE は Java アプレットまたは Web Start の脆弱性を利用するタイプのブラウザベースの攻撃で使用されることがありません。
nbcomponentupdate コマンドについての詳しい情報を参照できます。
https://www.veritas.com/support/ja_JP/article.000115043
OpsCenter またはリモート管理コンソールを使用する場合は、コマンドの場所は次の通りです。
OpsCenter Server
UNIX/Linux: SYMCOpsCenterServer/bin/
Windows: install_path\server\bin\
OpsCenter Agent
Windows: install_path\agent\bin\
OpsCenter View Builder
Windows: install_path\viewbuilder\bin
リモート管理コンソール
Windows: install_path\java
オプション
- -component value
指定したコンポーネントを更新します。このオプションの唯一の有効な値は JRE です。
- -dryrun
操作が許可される場合、確認のためテストを実行します。
- -force
対話モードをスキップします。-force を使用して -product が RemoteJavaConsole である場合、-version オプションを使用する必要があります。
- -help | -?
ヘルプを印刷します。
- -logpath path
ログファイルの場所を指定します。デフォルトでは、ログはシステムの一時フォルダに生成されます。Windows コンピュータでは、パス
%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
アップグレードまたは戻したい Remote Java Console のバージョン。このオプションは、RemoteJavaConsole を -product オプションに指定する場合のみ使用できます。この制約は、Remote Java Console のみ、アップグレードまたは戻すことのできる複数のバージョンを維持するからです。
このオプションを指定しない場合、ユーティリティはインストールされた Remote Java Console のすべてのバージョンをリストします。そして、ユーティリティが、コンソールをアップグレードまたは戻すサポートされるバージョンを選択するプロンプトを表示します。-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: Remote Java Console を対話型で戻す
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