要导入 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 配置。