list_host_vmks
List VMkernel adapters per host or across all hosts, showing IP, MTU, MAC, portgroup, and services. Flags unreachable hosts for accurate inventory.
Instructions
[READ] List VMkernel adapters, optionally scoped to one ESXi host.
Per vmk: device, IP/netmask/dhcp, MTU, MAC, portgroup (standard or DVS), netstack, and which host services it is selected for (management, vmotion, vsan, ...). The verify pair for add_host_vmk/remove_host_vmk.
Gotcha - this list is not automatically a complete estate inventory.
vCenter answers property reads for a host it has lost contact with out of
its own cache, so hosts it never reached appear here as rows with
reachable: false, device: null and a note naming the connectionState,
rather than being dropped. Check hosts_unreachable (and the
unreachable_note present only when it is non-zero) before reporting the
result as the full picture, and do not read a null field on such a row as a
measurement - it means nobody looked. Adapters shown for an unreachable
host are vCenter's last cached view.
Returns:
The family list envelope {items, returned, limit, total, truncated,
hint} plus hosts_unreachable (int) and, when that is non-zero,
unreachable_note (str). Each item is one VMkernel adapter, or one
unread host when reachable is false; services is null when a host's
service map could not be read. truncated stays a paging fact - an
incomplete estate is reported by hosts_unreachable, not by it.
vmks is kept as a deprecated alias for items. Errors return
"error" + hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max vmks to return (default 100). | |
| offset | No | Skip this many vmks first (paging). | |
| target | No | vCenter target name from config.yaml; omit to use the default target. | |
| host_name | No | ESXi host name; omit to list across all hosts. |