Obtaining diagnostic data for FCP channels
Diagnostic data about FCP channels is available as of z14 and FICON® Express8S.
About this task
FCP channel diagnostic data is available through sysfs attributes in /sys/bus/ccw/drivers/zfcp/<device_bus_id>/diagnostics, where <device_bus_id> is the device-bus ID of the FCP device that corresponds to the FCP channel.
After the diagnostic data is retrieved from the FCP channel, it is cached for a specific expiration interval, 5 seconds by default. Reading attributes within this interval results in the cached values. If you read attributes after the cache has expired, current values are retrieved from the FCP channel. You can use the diag_max_age sysfs attribute of the FCP device to change the expiration interval.
The following table summarizes the available attributes with diagnostic data.
Attribute | Explanation |
---|---|
sfp_invalid | Flag that indicates whether the attributes with physical properties of the FCP channel provide valid (0) or useless (1) data. These attributes are: temperature, vcc, tx_bias, tx_power, and rx_power. |
temperature | Temperature of the transceiver. The value is a signed integer in units of 1/256 ℃. For example, interpret 1024 as 4 ℃. |
vcc | Supply voltage of the transceiver. The value is in units of 100 µV. |
tx_bias | Bias current of the transmitter laser. The value is in units of 2 µA. |
tx_power | Coupled output power of the transmitter laser. The value is in units of 0.1 µW. |
rx_power | Optical power that is measured at the receiving element. The value is in units of 0.1 µW. |
optical_port | Flag that indicates whether the transceiver uses an optical element (1) or does not use an optical element (0). |
fec_active | Flag that indicates whether forward error correction (FEC) is active (1) or inactive (0). |
port_tx_type | Type of the transmitting element. Possible values are:
|
connector_type | Connector type. Possible values are:
|
b2b_credit | Number of buffers available for receiving Class 2, or Class 3 frames on the local FC port. |
Procedure
Examples
- In this example, the expiration interval for an FCP device that corresponds to bus ID 0.0.3d5c
is changed from 5 seconds to 10
seconds.
# cat /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diag_max_age 5000 # echo 10000 > /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diag_max_age
- In this example, the first command confirms that the attributes with physical properties of the
FCP channel contain valid data. The next commands display data about the transceiver temperature,
supply voltage, and type of the transmitting
element.
The 0 returned from the first command confirms that the physical data is valid. The transceiver temperature is 30.55 ℃ (7822 / 256) and the supply voltage is 3.3000 V (33000 × 10-4). The connector_type is SFP+ (value 1).# cat /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diagnostics/sfp_invalid 0 # cat /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diagnostics/temperature 7822 # cat /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diagnostics/vcc 33000 # cat /sys/bus/ccw/drivers/zfcp/0.0.3d5c/diagnostics/connector_type 1