Monitoring Fibre Channel ports
To monitor a Fibre Channel port, in privileged EXEC mode, enter the show interface FibreChannel rbridge-id/slot/port command for the Fibre Channel port you want to monitor. The command output provides lots of information about the various hardware counters associated with the port.
This command has a basic version and a detail version. The basic version of the command provides general port information such as status, identification, and configuration information, along with interrupt statistics, link status counters, and so on, as shown in the following example:
switch# show interface FibreChannel 66/0/1 fibrechannel 66/0/1 is down (No_Light). Protocol state is down. Pluggable media present LineSpeed Actual: PortSpeed: N8Gbps portDisableReason: Persistently disabled port PortId: 010000 PortIfId: 43010000 PortWwn: 20:00:00:27:f8:d4:79:be Distance: normal FEC: Inactive Last clearing of show interface counters: 00:00:00 Interrupts: 0 Link_failure: 0 Frjt: 0 Unknown: 0 Loss_of_sync: 0 Fbsy: 0 Lli: 0 Loss_of_sig: 0 Proc_rqrd: 0 Protocol_err: 0 Timed_out: 0 Invalid_word: 0 Rx_flushed: 0 Invalid_crc: 0 Tx_unavail: 0 Delim_err: 0 Free_buffer: 0 Address_err: 0 Overrun: 0 Lr_in: 0 Suspended: 0 Lr_out: 0 Parity_err: 0 Ols_in: 0 2_parity_err: 0 Ols_out: 0 CMI_bus_err: 0 Rate info: Bandwidth: 8.00G Tx performance: 0 B/sec Rx performance: 0 B/sec
The detailed version of the command, illustrated below, tells you how much traffic has been transmitted or received, and how many times certain error conditions have occurred. Specifically, the tim_txcrd_z counters tell you how many times the port was unable to transmit frames because the transmit BB credit was zero. A number greater than zero indicates either that there is congestion on the port or that a device is affected by latency. A larger number indicates a greater problem. A sample is taken every 2.5 microseconds.
switch# show interface FibreChannel 66/0/1 detail fibrechannel 66/0/1 is down (No_Light). Protocol state is down. Pluggable media present LineSpeed Actual: PortSpeed: N8Gbps portDisableReason: Persistently disabled port PortId: 010000 PortIfId: 43010000 PortWwn: 20:00:00:27:f8:d4:79:be Distance: normal FEC: Inactive Last clearing of show interface counters: 00:00:00 Rx Statistics: stat_wrx 0 4-byte words received stat_frx 0 Frames received Tx Statistics: stat_wtx 0 4-byte words transmitted stat_ftx 0 Frames transmitted Error Statistics: er_enc_in 0 Encoding errors inside of frames er_crc 0 Frames with CRC errors er_trunc 0 Frames shorter than minimum er_toolong 0 Frames longer than maximum er_bad_eof 0 Frames with bad end-of-frame er_enc_out 0 Encoding error outside of frames er_bad_os 0 Invalid ordered set er_crc_good_eof 0 Crc error with good eof Port Error Info: loss_of_sync: 0 lossofsig: 0 frjt: 0 fbsy: 0 Buffer Information: Lx Max/Resv Buffer Needed Link Remaining Mode Buffers Usage Buffers Distance Buffers ================================================================= - 8 0 0 - 0 Rate info: Bandwidth: 8.00G Tx performance: 0 B/sec Rx performance: 0 B/sec