XML 構成ファイルをインポートして Oracle ILOM を構成するには、ilomconfig import config コマンドを使用します。また、このコマンドでは、信頼できる既知の XML ファイルをインポートしてシステム構成を復元することもできます。
ilomconfig import config --xmlfile=filename.xml
ここで、filename.xml は、ILOM 構成のインポート元のファイルを表します。
例:
# ilomconfig import config --xmlfile=config.xml Are you sure you want to import the settings from the XML file to ILOM? [y/n]? y Do you want to enter a passphrase to restore sensitive data? [y/n]? y Enter passphrase: ******** Preparing to restore XML file to ILOM... Done preparing to restore XML file ILOM. Restoring configuration (allow several minutes)............................... .............................................................................. .......Done.
echo passphrase | ilomconfig import config --xmlfile=filename.xml
ここで、passphrase は、使用するパスフレーズです。
または
cat file_with_passphrase | ilomconfig import config --xmlfile=filename.xml
ここで、file_with_passphrase は、パスフレーズが含まれているファイルです。
例:
# echo passphrase | ilomconfig import config --xmlfile=config.xml Enter passphrase: ******** Preparing to restore XML file to ILOM... Done preparing to restore XML file ILOM. Restoring configuration (allow several minutes)............................... .............................................................................. .......Done.
パスフレーズは、コマンド行を介して自動的に渡されます。
ilomconfig import config --xmlfile=filename.xml -y
ここで、filename.xml は、ILOM 構成のインポート元のファイルを表します。
例:
# ilomconfig import config --xmlfile=config.xml -y Preparing to restore XML file to ILOM... Done preparing to restore XML file ILOM. Restoring configuration (allow several minutes).............................. ............................................................................. .......Done.
このオプションは、パスフレーズを使用せずに ILOM 構成をインポートします。