hmc_list_vnics
List SR-IOV-backed virtual NICs on an LPAR, returning vNIC ID, capacity, VLAN, and backing devices. Identify the system and LPAR by name or UUID.
Instructions
List vNICs (SR-IOV-backed Virtual NICs) on an LPAR via the HMC CLI.
Runs lshwres -r virtualio --rsubtype vnic --level lpar -m <system_name> --filter lpar_names=<lpar_name> on the HMC via SSH and returns one dict
per vNIC with fields such as vnic_id, capacity, vswitch_name,
port_vlan_id, and backing_devices.
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. Use hmc_systems to find a system UUID and
hmc_lpars to find an LPAR UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lpar_name_or_uuid | Yes | ||
| system_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |