Para importar una configuración XML a fin de configurar Oracle ILOM, utilice el comando ilomconfig import config. También puede utilizar este comando para restablecer la configuración del sistema importando un archivo XML fiable conocido.
ilomconfig import config --xmlfile=filename.xml
Donde filename.xml representa el archivo desde el que se importa la configuración de ILOM.
Por ejemplo:
# 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
Donde passphrase es la frase de contraseña que desea usar.
O bien:
cat file_with_passphrase | ilomconfig import config --xmlfile=filename.xml
Donde file_with_passphrase es el archivo que contiene la frase de contraseña.
Por ejemplo:
# 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.
La frase de contraseña pasa de manera automática por la línea de comandos.
ilomconfig import config --xmlfile=filename.xml -y
Donde filename.xml representa el archivo desde el que se importa la configuración de ILOM.
Por ejemplo:
# 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.
Esta opción importa la configuración ILOM sin necesidad de usar una frase de contraseña.