hmc_remove_vnic
Remove a vNIC from an LPAR on an IBM Power system via HMC. Supply system, LPAR, and vNIC ID to modify the partition's virtual networking configuration.
Instructions
Remove a vNIC from an LPAR via the HMC CLI.
Runs chhwres -r virtualio --rsubtype vnic -o r -m <system_name> --filter lpar_names=<lpar_name> -a "vnic_id=<vnic_id>" on the HMC
via SSH.
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.
vnic_id is the numeric ID as reported by hmc_list_vnics.
WARNING: This modifies the LPAR configuration on the HMC. Confirm system_name_or_uuid, lpar_name_or_uuid, and vnic_id before calling. Returns the HMC CLI output (immediate delete — no job to poll).
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>",
"lpar_name_or_uuid": "<lpar_name_or_uuid>",
"vnic_id": "<vnic_id>"
},
"name": "hmc_remove_vnic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vnic_id | Yes | ||
| lpar_name_or_uuid | Yes | ||
| system_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |