Go to main content

Oracle® Server CLI Tools for Oracle Solaris 11.3 User's Guide

Exit Print View

Updated: April 2018
 
 

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.
  • 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.xml

        where filename.xml 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.xml

        where passphrase is passphrase that you want to use.

        or

        # cat file_with_passphrase | ilomconfig import config --xmlfile=filename.xml

        where 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 -y

      where filename.xml 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.