hmc_list_fc_ports
List virtual Fibre Channel (NPIV) adapters for a managed system via HMC CLI, with optional LPAR filter to return WWPNs, slot numbers, and remote LPAR IDs.
Instructions
List Virtual Fibre Channel (NPIV) adapters for a managed system via the HMC CLI.
Runs lshwres -r virtualio --rsubtype fc --level lpar -m <system_name>
on the HMC via SSH and returns parsed dicts with fields including
lpar_name, slot_num, wwpns, and remote_lpar_id.
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. Pass lpar_name_or_uuid to restrict results to a single partition. Either a CLI name or UUID works; 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 | No | ||
| system_name_or_uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |