hmc_restore_lpar_profiles
Restore LPAR profiles from a backup file on the HMC, overwriting current configuration. Specify the system name or UUID and the file path on the HMC.
Instructions
Restore LPAR profiles from a backup file via the HMC CLI.
Runs rstprofdata -m <system_name> -f <file_path> on the HMC via SSH
and returns the raw command output.
The system may be given by CLI name or by UUID; a UUID is resolved to its CLI name via REST (falling back to an lssyscfg lookup over SSH when the REST API is unreachable) before the command runs.
IMPORTANT: file_path is on the HMC filesystem, not the local machine. The backup file must already exist at that path on the HMC host.
WARNING: Restoring overwrites the current LPAR profile configuration. Confirm the system_name_or_uuid and file_path before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path on the HMC filesystem where the backup file is located. | |
| system_name_or_uuid | Yes | The name or UUID of the managed system (Power server). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |