Finding out the interface name of a qeth group device

Red Hat Enterprise Linux 9.2 LPAR mode z/VM guest

When a qeth group device is set online, an interface name is assigned to it.

Procedure

To find the interface name of a qeth group device, either:

  • Obtain a list of all attributes for a device by issuing the lszdev command for the device.
    Issue a command of the form:
    # lszdev -a qeth <device_bus_id> --info --info
  • Obtain a mapping for all qeth interfaces and devices by issuing the lsqeth -p command.
  • Find out the interface name of a qeth group device for which you know the device bus-ID by reading the group device's if_name attribute.
    Issue a command of the form:
    # cat /sys/bus/ccwgroup/drivers/qeth/<device_bus_id>/if_name

Example

# lszdev -a qeth 0.0.a100 --info --info
 ...
if_name   "enca100"
....
or, using sysfs:
# cat /sys/bus/ccwgroup/drivers/qeth/0.0.a100/if_name
enca100