Tuesday, August 27, 2013

Brocade FC Switch basic troubleshooting commands



  
Information Commands

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

fabricshow              - Helps identify domain id conflicts and gives an overview of all fabric members
nscamshow | grep <WWN> 
nodefind "WWN"          - Find the port attributes and alias the wwn is member of 

 

Zoning
 

cfgshow               - Displays zoning configurationdefzone -
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 <wwn>          - To ping a WWN, if it is connected to fabric
alishow <alias name>  - To List the WWN of an alias
zoneshow | grep <XXX> - To see the zones and its members matching after grep
cfgshow | grep <XXX>  - To list the active zone configuration and members matching after grep

To Modify a WWN in the alias
aliadd "ad2_hostname", "newwwn"
aliremove "ad2_hostname", "oldwwn"




Licensing

licenseshow - To see the updated license details



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

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
<slotnumber/portnumber>       - Disable port
portenable <slotnumber/portnumber>        - To enable the port

portcfgeport                    - Disable E port
portcfglport                    - Lock port to L port
portcfggport                    - Lock port to E or F port



Log collection


supportshow

supportsave