Pour importer un fichier de configuration XML afin de configurer Oracle ILOM, exécutez la commande ilomconfig import config. Vous pouvez également utiliser cette commande pour restaurer la configuration système en important un fichier XML réputé fiable.
ilomconfig import config --xmlfile=filename.xml
où filename.xml représente le fichier à partir duquel vous importez la configuration d'ILOM.
Par exemple :
# 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
où passphrase est la phrase de passe à utiliser.
ou
cat file_with_passphrase | ilomconfig import config --xmlfile=filename.xml
où file_with_passphrase est le fichier contenant la phrase de passe.
Par exemple :
# 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 phrase de passe est automatiquement renseignée par la ligne de commande.
ilomconfig import config --xmlfile=filename.xml -y
où filename.xml représente le fichier à partir duquel vous importez la configuration d'ILOM.
Par exemple :
# 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.
Cette option importe la configuration ILOM sans utiliser de phrase de passe.