hmc_sync_lpar_profile
Save a logical partition's current running configuration to its named profile, overwriting the previous definition so the profile matches the live state.
Instructions
Sync an LPAR's running configuration back to its current profile.
Runs chsyscfg -r lpar -m <system_name> -i "name=<lpar_name>,sync_curr_profile=1"
on the HMC via SSH and returns the raw command output.
This operation saves the LPAR's current running configuration to its current named profile, overwriting the previous profile definition.
WARNING: Overwrites the current profile definition. Confirm the system_name_or_uuid and lpar_name_or_uuid before calling.
The system and partition may be given by CLI name or by UUID; UUIDs are resolved to their CLI names via REST (falling back to an lssyscfg lookup over SSH when the REST API is unreachable) before the command runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lpar_name_or_uuid | Yes | The name or UUID of the logical partition to sync. | |
| system_name_or_uuid | Yes | The name or UUID of the managed system (Power server). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |