Import an XML Configuration
To import an XML configuration file to configure Oracle ILOM, use the ilomconfig import config
command. You can also use this command to restore the system configuration by importing a known reliable XML file.
Note:
Exit or close all active ILOM login sessions before proceeding. The ilomconfig
import
file command imports the current Oracle ILOM configuration. Before an import
operation can be executed, all active open sessions must be closed. There must be no active ILOM
sessions logged in to /SP/console
during the import operation.
Note:
If the --xmfile
option is
specified, the changes are only made to the XML file. If the XML file option is
omitted, the changes are made directly to the Oracle ILOM. The XML file cannot be
manually edited by a user, it can only be changed by using ilomconfig
.
-
Do one of the following:
-
To import an XML configuration using a passphrase, choose one of the following commands.
-
To get a prompt asking whether you want to enter a passphrase, type:
#
ilomconfig import config --xmlfile=filename.xmlwhere filename represents the file from which you are importing the ILOM configuration.
For example:
# 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. -
To set up a passphrase to be used with an automated script, provide a passphrase or a file containing the passphrase as follows:
#
echo passphrase | ilomconfig import config --xmlfile=filename.xmlwhere passphrase is passphrase that you want to use.
or
#
cat file_with_passphrase | ilomconfig import config --xmlfile=filename.xmlwhere file_with_passphrase is the file containing the passphrase.
For example:
# 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.
The passphrase is automatically passed in through the command line.
-
-
To import an XML configuration without using a passphrase, type:
#
ilomconfig import config --xmlfile=filename.xml -ywhere filename represents the file from which you are importing the ILOM configuration.
For example:
# 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.
This option imports the ILOM configuration without using a passphrase.
-
Parent topic: Importing and Exporting XML Configurations