hmc_set_sriov_adapter_mode
Switch an SR-IOV adapter between SR-IOV and dedicated modes on IBM HMC. Specify system, adapter ID, and mode to enable shared virtual functions or use passthrough.
Instructions
Toggle a physical SR-IOV adapter between SR-IOV and dedicated mode.
Runs chhwres -r sriov -m <system_name> -o s --id <adapter_id> -a "sriov_adapter_mode=<mode>" 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.
adapter_id is the physical adapter identifier as reported by
hmc_list_io_slots.
mode must be one of:
"sriov"— enable SR-IOV mode (shared virtual functions)"dedicated"— disable SR-IOV, use as a dedicated (passthrough) adapter
WARNING: Changing SR-IOV adapter mode affects all partitions using virtual functions on that adapter. Confirm system_name_or_uuid and adapter_id 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>",
"adapter_id": "<adapter_id>",
"mode": "<mode>"
},
"name": "hmc_set_sriov_adapter_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| adapter_id | Yes | ||
| system_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |