Unsolved
This post is more than 5 years old
308 Posts
0
15460
The Most Frequently Used Connectrix Commands for Cisco and Brocade SAN switch
The Most Frequently Used ConnectrixCommands for
Cisco and Brocade SAN switch
Introduction
This article will do a summary about the most frequently used Connectrix command for Cisco and Brocade san switch. It supposed to be a good handy reference for SAN troubleshooting and administration. All of the following commands are operated by the admin account or equal privilege.
Detailed Information
Collecting Support log
The support log can be using for troubleshooting. It’s a pre-requisite to create a switch case to get technical help from the connectivity support engineer.
Cisco:
show tech-support details
Brocade:
supportshow
supportsave
Note:
The outputs of command “show tech-support details”and“supportshow” are very long. Usually, we will use putty to capture all of the outputs and redirect into the session log in txt format. The output of command “supportsave” is a compressed file in Gzip format and aftp server is needed for storing.
Showing Switch firmware
It’s always recommended to upgrade the firmware into the newest version. The known issues may be fixed in the newer version and the older version may be end of support life.
Cisco:
show version
Example:
Switch# show version
Cisco Nexus Operating System (NX-OS) Software
…
System version: 5.2(8) –the switch firmware (NX-OS) version is 5.2(8)
…
Brocade:
firmwareshow
Example:
FabricAdmin:switch> firmwareshow
Appl Primary/Secondary Versions
------------------------------------------
FOS v6.4.3c – the switch firmware (FOS) version is v6.4.3c
v6.4.3c
Showing IP address of Management port
The management port of SAN switch is on Ethernet and only for management purpose.
Cisco:
show interface mgmt 0
Example:
Switch# show interface mgmt 0
mgmt0 is up
Hardware is GigabitEthernet
Address is 001d.a20f.a998
Internet address is 10.32.167.226/24 - IPv4 address of management interface
MTU 1500 bytes, BW 100 Mbps full Duplex
14702321 packets input, 1271551817 bytes
28651 multicast frames, 0 compressed
0 input errors, 0 frame
0 overrun, 0 fifo
1100201 packets output, 134319443 bytes
0 underruns, 0 output errors
0 collisions, 0 fifo
0 carrier errors
Brocade:
ipaddrshow
Example:
FabricAdmin:switch> ipaddrshow
SWITCH
Ethernet IP Address: 10.32.167.222 -IPv4 address of management interface
Ethernet Subnetmask: 255.255.255.0
Gateway IP Address: 10.32.167.1
DHCP: Off
Showing FC interface status
Cisco:
show interface brief
Example:
Switch# show interface brief
-------------------------------------------------------------------------------
Interface Vsan Admin Admin Status SFP Oper Oper Port
Mode Trunk Mode Speed Channel
Mode (Gbps)
-------------------------------------------------------------------------------
fc1/1 4 F on init swl -- -- -- - In normal, the value of Status column is UP and the OperMode and Oper Speed should be F and 4.
…
show interface
Example:
Switch# show interface fc1/1
fc1/1 is down (Initializing) –the status of interface fc1/1 is down and still in the progress of Initilalizing.
Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN)
Port WWN is 20:01:00:05:73:ad:26:00
…
Brocade:
switchshow
Example:
FabricAdmin:switch> switchshow
…
Index Port Address Media Speed State Proto
==============================================
0 0 050000 id N4 Online FC F-Port 50:06:01:6c:3c:e0:32:e7
…
portshow
Example:
FabricAdmin:switch> portshow 5
portIndex: 5
…
portState: 1 Online -port status is Online and is normal.
portId: 050500
portIfId: 4302000c
portWwn: 20:05:00:05:1e:57:10:84 -PWWN information of the switch port.
portWwn of device(s) connected:
50:06:01:6c:3c:e0:32:e7 -PWWN information of the node port.
Distance: normal
portSpeed: N4Gbps - running speed is 4Gbps.
…
Showing license usage
Cisco:
show license
Example:
switch# show license
Enterprise.lic:
SERVER this_host ANY
VENDOR cisco
INCREMENT ENTERPRISE_PKG cisco 1.0 permanent uncounted \
HOSTID=VDH=FOX0646XXXX \
NOTICE="<LicFileID> LicFileID><LicLineID>0 LicLineID> \
dummyPak " SIGN=EE9F91EAXXXX
Brocade:
licenseshow
Example:
FabricAdmin:switch> licenseshow
bQRyQccQyzchSzRc:
First Ports on Demand license - additional 8 port upgrade license
bQRyQccQyzcRWzRQ:
Second Ports on Demand license - additional 8 port upgrade license
…
Showing Zone configuration
Cisco:
show zoneset [active] – “active”isoptional.
Brocade:
cfgshow | zoneshow – cfgshow is equal with zoneshow. cfgshow can use pattern to filter the output.
Showing Switch Configuration
Cisco: show running-config
Example:
Switch# show running-config
!Command: show running-config
!Time: Thu Jun 13 13:53:54 2013
version 6.2(1)
feature npiv
feature telnet
feature fcip
…
Brocade: configshow
Example:
FabricAdmin:switch> configshow
date = Thu Jun 13 13:59:33 2013
[Switch Configuration Begin : 0]
SwitchName = DS_5100B
Fabric ID = 128
[Boot Parameters]
…
Showing VSAN/Virtual Fabric Configuration
Cisco: show vsan membership
Example:
Switch# show vsan membership
vsan 1 interfaces:
fc1/5
vsan 2 interfaces:
fc1/1 fc1/7 fc1/8
…
Brocade: lscfg --show
Example:
switch:admin> lscfg --show
Created switches: 128(ds) 1 2(bs)
Port 0 1 2 3 4 5 6 7 8 9
-------------------------------------------------------------------
FID 1 | 1 | 1 | 1 | 1 | 128 | 128 | 128 | 128 | 128 |
…
Showing switch error log
Cisco: show logging [logfile|nvram] – option “logfile” will display log from the logfile; option “nvram” will diplaylog from the nvram. nvram can contain more log items than logfile.
Example:
Switch# show logging nvram
2012 Dec 18 14:04:25 SWITCH %FCDOMAIN-2-EPORT_ISOLATED: %$VSAN 4%$ Isolation of interface port-channel 1 (reason: other side Eportindicates isolation)
…
Brocade: errdump | errshow– errshow will show the logs interactively one by one and errdump will dump the all logs.
Example:
FabricAdmin:switch> errdump
Fabric OS: v6.4.3c
2013/05/18-19:56:17, [TRCK-1001], 500444, FID 128, INFO, DS_5100B, Successful login by user admin.
…
Showing SAN/Fabric topology
Cisco: show fcs ie | show fcdomaindomain-list
Example:
Switch# show fcs ie
IE List for VSAN: 1
-------------------------------------------------------------------------------
IE-WWN IE Mgmt-Id Mgmt-Addr (Switch-name)
-------------------------------------------------------------------------------
20:01:00:05:73:ad:26:01 S(Loc) 0xfffc4f 10.32.167.226 (Switch)
[Total 1 IEs in Fabric]
…
Switch# show fcdomain domain-list
VSAN 1
Number of domains: 1
Domain ID WWN
--------- -----------------------
0x4f(79) 20:01:00:05:73:ad:26:01 [Local] [Principal]
…
Brocade: fabricshow | topologyshow
Example:
FabricAdmin:switch> fabricshow
Switch ID Worldwide Name Enet IP Addr FC IP Addr Name
-------------------------------------------------------------------------
3: fffc03 10:00:00:05:1e:f8:c3:94 10.32.167.227 0.0.0.0 "DS_300B"
5: fffc05 10:00:00:05:1e:57:10:84 10.32.167.222 0.0.0.0 >"DS_5100B" –the anchor “>” indicates the principle switch
…
FabricAdmin:switch> topologyshow
2 domain(s) in the fabric; Local Domain ID: 5
Domain: 3
Metric: 500
Name: DS_300B
Path Count: 1
Hops: 1
Out Port: 0
In Ports: 5 6 7
Total Bandwidth: 8.000 Gbps
Bandwidth Demand: 150 %
Flags: D
…
Showing Name Server information
Cisco: show fcns database | show flogidatabase – “show fcns database” will display the fabric name server information. “show flogi database” will display the local name server information.
Example:
switch# show fcns database
VSAN 1:
--------------------------------------------------------------------------
FCID TYPE PWWN (VENDOR) FC4-TYPE:FEATURE
--------------------------------------------------------------------------
0x9c0000 N 21:00:00:e0:8b:08:96:22 (Company 1) scsi-fcp:init
0x9c0100 N 10:00:00:05:30:00:59:1f (Company 2) ipfc
…
switch# show flogi database
---------------------------------------------------------------------------
INTERFACE VSAN FCID PORT NAME NODE NAME
---------------------------------------------------------------------------
sup-fc0 2 0xb30100 10:00:00:05:30:00:49:63 20:00:00:05:30:00:49:5e
fc9/13 1 0xb200e2 21:00:00:04:cf:27:25:2c 20:00:00:04:cf:27:25:2c
fc9/13 1 0xb200e1 21:00:00:04:cf:4c:18:61 20:00:00:04:cf:4c:18:61
…
Brocade: nsallshow | nscamshow| nsshow – “nsallshow” will display the fabric name server information; “nscamshow” will display the name server information from the remote swich; “nsshow” will display the local name server information.
Example:
FabricAdmin:switch> nsallshow
{
050500 050600 050700 - PID of all the port in the fabric
3 Nx_Ports in the Fabric }
…
FabricAdmin:switch>nscamshow
nscamshow for remote switches:-indicates these information come from the remote switch. All of these information will disappear where the remote switch is unreachable via the ISL link
Switch entry for 2
state rev owner
known v611 0xfffc01
Device list: count 13
Type Pid COS PortName NodeName
NL 0208d3; 3;20:0c:00:06:2b:0f:72:6d;20:00:00:06:2b:0f:72:6d;
FC4s: FCP
…
FabricAdmin:switch>nsshow
{
Type Pid COS PortName NodeName TTL(sec)
N 050500; 3;50:06:01:6c:3c:e0:32:e7;50:06:01:60:bc:e0:32:e7; na
FC4s: FCP [DGC LUNZ 0430]
Fabric Port Name: 20:05:00:05:1e:57:10:84
Permanent Port Name: 50:06:01:6c:3c:e0:32:e7
Port Index: 5
Share Area: No
Device Shared in Other AD: No
Redirect: No
Partial: No
Showing Link/Fabric event
Cisco: show tech-support internal link-events | show port internal event-history interface fc1/1
Brocade: fabriclog -s| portlogdump
Example:
DS_5100B:root> fabriclog -s
Time Stamp Input and *Action S, P Sn,Pn Port Xid
===================================================================================
Switch 0; Tue Jun 4 09:38:32 2013 CST (GMT-8:00)
09:38:32.062298 *Fss Init NA,NA NA,NA NA NA
09:38:32.064105 *Initiate State NA,NA F2,NA NA NA
09:38:32.270264 Expd1 0x00000000 00000000 000000ff ffffffffF2,NA F2,NA 0 NA
09:38:36.848443 Rcv FSS_RECOV_COLD F2,NA F2,NA NA NA
09:38:37.721067 RcvFAB_RECOV_COLD F2,NA F2,NA NA NA
…
DS_5100B:root> portlogdump
time task event port cmd args
-------------------------------------------------
Thu Jun 13 08:58:18 2013
08:58:18.648 PORT Rx 0 0 c0fffc05,00fffc03,23b60c24,00000001
08:58:18.682 PORT Rx 0 476 03fffc05,00fffc03,23b60c24,01000000
08:58:18.682 PORT Tx 0 0 c0fffc03,00fffc05,23b60c24,00000001
08:58:18.682 FCPH read 0 476 03fffc05,00fffc03,8b000000,00000000,23b60c24
08:58:18.682 FCPH seq 0 1dc 20980000,23b60c24,000004b0,0000001c,00000000
…
Clearing historical statistical counters
Cisco:
clear counters interface [all|fc]
debug system internal clear-counters all
Brocade:
portstatsclear | statsclear| slotstatsclear
Author: Jun
iEMC APJ
Please click here for for all contents shared by us.