Finding out the bus ID of a qeth interface

SUSE Linux Enterprise Server 15 SP5 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/eth0 for interface eth0. 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 eth0 issue, for example:
# readlink /sys/class/net/eth0/device
../../../0.0.a100
In this example, eth0 corresponds to the device bus-ID 0.0.a100.