Fibre Channel (SAN)

Commands for basic FOS troubleshooting

by on ‎03-25-2010 12:29 AM (88 Views)

*********************************************************************************************************************************************************************

Disclaimer: The information in this Contribution is provided “AS IS,” without warranty of any kind.

The author reserves the right to make changes to this document at any time, without notice, and assumes no responsibility for its use.

The author shall have no liability or responsibility to any person or entity with respect to any loss, cost, liability, or damages arising from the information contained in this contribution.



*********************************************************************************************************************************************************************

There are lots of brocade commands that come handy when troubleshooting a fabric related problems. We divide these into

Marginal Links

switchshow - Indicators like no light or In_sync will be displayed

portshow <port> - Provides report on errors on a port

porterrshow - provides gist of port errors, look for delta of counters

portstatsshow <port> - Provides details of port errors

portstats64show - Extension of portstatsshow when 32 bit counters do not suffice, look for tim_txcrd_z to observe BB_credit deltas

fabriclog -s - Helps isolate flapping ports, look out for offline and online sequences

sfpshow - Provides information on SFP and their state, check for power

Zoning

cfgshow - Displays zoning configuration

defzone --show  - Shows default zone settings

nsshow -t - Display name server entries with additional details

nodefind <alias> - To find specific device in fabric

nodefind <WWPN> - To find specific device in fabric

fcping <initiator> <target> - helps isolate end to end device connectivity and also an easy method to validate zoning

Licensing

licenseshow

Firmware Download

firmwaredownloadstatus

firmwareshow

version

Configuration

configdefault - To reset switch configuration to default

configdownload - To download a previously uploaded config file

switchshow - Lists connection information as well first indicator of fabric segmentations

errshow -r - Look for config events, match events with list in Brocade Message reference guide for suitable actions

fabstatsshow - flags any parameter mismatch during merging

fabricshow - Helps identify domain id conflicts and gives an overview of all fabric members

configure - To set correct switch and flow control parameters

portcfgshow <port number> - Display port configuration

portcfgspeed <port number> - Set or show port speed

portcfgdefaults <port number> - Set port settings to default

portcfgpersistentenable <port> - To enable port permanently

portcfgpersistentdisable <port> - To disable port persistently (across reboots)

portdisable

portenable

portcfgeport - Disable E port

portcfglport - Lock port to L port

portcfggport - Lock port to E or F port

Log collection

supportshow

supportsave