General Page
AIX Support Analysis Tool
NAME
fcerr_stat.sh
PURPOSE
Diagnostic tool to inspect the quality of the physical link between a fibre channel adapter and SAN switch.
SYNTAX
fcerr_stat.sh [Flag]
FLAGS
-s Collect snap for IBM Support + analysis (no flag) Run analysis only
DESCRIPTION
The fcerr_stat.sh command is an AIX diagnostic tool used to inspect the quality of the physical link between a fibre channel adapter and SAN switch.
The script generates analysis and problem initial recommendations, as well as first failure data capture for further IBM Support engagement.
The tool is considered safe to run in a production environment.
fcerr_stat.sh performs initial connectivity assessment of all physical Fibre Channel adapter ports using the fcstat -e command, and delivers analysis with suggested actions.
The AIX fcstat command's flag -e is added for FC HBAs that has data rates equal to or more than 16Gb from the following releases onwards:
- AIX 7.3 TL2 SP1, AIX 7.2 TL5 SP7
VIOS 4.1.0.10, VIOS 3.1.4.31
Install
fcerr_stat.shon the supported versions only.
DOWNLOAD NOTE: The fcerr_stat.sh script is provided as a courtesy, and it is provided as-is, without warranty and without guarantee of having no defects. 1) Download and install fcerr_stat.260501.epkg.Z using the emgr command as root. No reboot required.
|
EXAMPLE
The following snippet of data is an output generated upon running fcerr_stat.sh on a Virtual I/O Server.
[oem_setup_env @ vio1] /tmp
./fcerr_stat.sh
Scanning FC ports...fcs0 is switch-attachedfcs1 is not-cabled / unused port (has 'none')fcs10 is switch-attachedfcs12 is not-cabled / unused port (has 'none')fcs13 is not-cabled / unused port (has 'none')fcs14 is switch-attachedfcs15 is not-cabled / unused port (has 'none')fcs16 is switch-attachedfcs17 is not-cabled / unused port (has 'none')fcs2 is switch-attachedfcs3 is not-cabled / unused port (has 'none')fcs4 is switch-attachedfcs5 is not-cabled / unused port (has 'none')fcs6 is not-cabled / unused port (has 'none')fcs7 is not-cabled / unused port (has 'none')fcs8 is switch-attachedfcs9 is not-cabled / unused port (has 'none')
Starting fcstat collection. Please wait...
=== END OF DATA COLLECTION ===
=== SFP SUMMARY ===Port | Status---------+-------fcs0 | OKfcs10 | OKfcs14 | OKfcs16 | OKfcs2 | OKfcs4 | OKfcs8 | LOW RX
==============================================================
SUMMARY OF ANALYSIS & RECOMMENDATIONS
==============================================================
RECOMMENDATION: Non-cabled ports detected:fcs1fcs12fcs13fcs15fcs17fcs3fcs5fcs6fcs7fcs9Verify cabling or follow procedure https://www.ibm.com/support/pages/node/1284358
RECOMMENDATION: Low RX Power detected.fcs8Contact SAN switch vendor.
If problems persist, collect 'fcerr_stat.sh -s' and send to IBM Support.
==============================================================Script finished successfullyCollected data file: /tmp/ibmsupt/testcase/fcstat_e_20260501_054303.outDetailed debug log: /tmp/ibmsupt/testcase/fcerr_stat_debug.logDuration: 5 seconds==============================================================
Was this topic helpful?
Document Information
Modified date:
03 May 2026
UID
ibm17271411