Finding out the bus ID of a qeth interface

Red Hat Enterprise Linux 8.6 LPAR mode z/VM guest

Use the lsqeth -p command to obtain a mapping for all qeth interfaces and devices. Alternatively, you can use sysfs.

Procedure

To find the device bus-ID that corresponds to an interface, either:

  • Use the lsqeth -p command.
  • Use the readlink command.
    For each network interface, there is a directory in sysfs under /sys/class/net/, for example, /sys/class/net/encf500 for interface encf500. This directory contains a symbolic link device to the corresponding device in /sys/devices. Read this link to find the device bus-ID of the device that corresponds to the interface.

Example

To find out which device bus-ID corresponds to an interface enca100 issue, for example:
# readlink /sys/class/net/enca100/device
../../../0.0.a100
In this example, enca100 corresponds to the device bus-ID 0.0.a100.