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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"system_name_or_uuid": "<system_name_or_uuid>",
"file_path": "<file_path>"
},
"name": "hmc_restore_lpar_profiles"
}
}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 |