Export an XML Configuration

To export an entire configuration to an XML file, use the ilomconfig export config command.

Note:

Exit or close all active ILOM login sessions before proceeding. The ilomconfig export file command enables exports of the current Oracle ILOM configuration. Before an export 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 export 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.

  1. Do one of the following:

    Note:

    To back up sensitive data such as passwords, SSH keys, certificates, LDoms and so forth, you must specify a passphrase. The passphrase length must be a minimum of 16 characters.

    • To export an XML configuration using a passphrase, choose one of the following commands:

      • To get a prompt asking whether you want to enter a passphrase:

        # ilomconfig export config --xmlfile=filename.xml

        where filename represents the file to which you are exporting the ILOM configuration.

        For example:

        # 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'. 
      • 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 export config --xmlfile=filename.xml

        where passphrase is the passphrase that you want to use.

        or

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

        where file_with_passphrase is the file containing the passphrase.

        For example:

        # echo passphrase | ilomconfig export config --xmlfile=config.xml
        Enter passphrase: ******** 
        Wrote backup of ILOM configuration to 'config.xml'. 

        The passphrase is automatically passed through the command line.

    • To export an XML configuration without using a passphrase:

      # ilomconfig export config --xmlfile=filename.xml -y

      where filename represents the file to which you are exporting the ILOM configuration.

      For example:

      # ilomconfig export config --xmlfile=config.xml -y 
      Wrote backup of ILOM configuration to 'config.xml'. 

      This option exports the ILOM configuration without using a passphrase.