要将整个配置导出到 XML 文件,请使用 ilomconfig export config 命令。
ilomconfig export config --xmlfile=filename.xml
其中,filename.xml 表示要向其中导出 ILOM 配置的文件。
例如:
# ilomconfig export config --xmlfile=config.xml Do you want to enter a passphrase to back up sensitive data? [y/n]? y Enter passphrase: ******** Wrote backup of ILOM configuration to 'config.xml'.
echo passphrase | ilomconfig export config --xmlfile=filename.xml
其中,passphrase 是要使用的密码短语。
或
cat file_with_passphrase | ilomconfig export config --xmlfile=filename.xml
其中,file_with_passphrase 是包含密码短语的文件。
例如:
# echo passphrase | ilomconfig export config --xmlfile=config.xml Enter passphrase: ******** Wrote backup of ILOM configuration to 'config.xml'.
密码短语是通过命令行自动传递的。
ilomconfig export config --xmlfile=filename.xml -y
其中,filename.xml 表示要向其中导出 ILOM 配置的文件。
例如:
# ilomconfig export config --xmlfile=config.xml -y Wrote backup of ILOM configuration to 'config.xml'.
此选项在不使用密码短语的情况下导出 ILOM 配置。