Brocade Commands

  • Upload
    sheik8o

  • View
    23

  • Download
    4

Embed Size (px)

DESCRIPTION

Brocade Commands

Citation preview

Brocade SwitchBrocade Zoning Information++++++++++++++++++++++++++admin> zonehelpaliadd Add a member to a zone aliasalicreate Create a zone aliasalidelete Delete a zone aliasaliremove Remove a member from a zone aliasalishow Print zone alias informationbootluncfg Configure boot LUN for an HBAcfgactvshow Display Effective zone configuration informationcfgadd Add a member to a configurationcfgclear Clear all zone configurationscfgcreate Create a zone configurationcfgdelete Delete a zone configurationcfgdisable Disable a zone configurationcfgenable Enable a zone configurationcfgmcdtmode Configure legacy MCDT zoning behaviorcfgremove Remove a member from a configurationcfgsave Save zone configurations in flashcfgsaveactivetodefined Moves the effective configuration to the defined configurationcfgshow Print zone configuration informationcfgsize Print size details of zone databasecfgtransabort Abort zone configuration transactioncfgtransshow Print zone configurations in transaction bufferdefzone Activates or deactivates a default zone configuration.msfr Create a MSFR Zonenszonemember Display the information of all the online devices which are zoned with the given device.openfr Create a MSFR Zonezone Configure zone objectszoneadd Add a member to a zonezonecreate Create a zonezonedelete Delete a zonezonehelp Print zoning help infozoneobjectcopy Copies a zone objectzoneobjectexpunge Expunges a zone objectzoneobjectrename Rename a zoning Objectzoneremove Remove a member from a zonezoneshow Print zone informationmy_brocade_300:admin> switchshow (Switch Information)switchName: my_brocade_300switchType: 71.2switchState: OnlineswitchMode: NativeswitchRole: PrincipalswitchDomain: 1switchId: fffc01switchWwn: 40:00:00:65:34:43:81:96zoning: ON (BB_A)switchBeacon: OFFIndex Port Address Media Speed State Proto============================================== 0 0 060000 id N8 Online FC F-Port 40:00:00:00:b9:a7:2e:b6 1 1 060600 id N8 Online FC F-Port 40:00:00:00:b9:a7:2e:9c 2 2 060400 id N8 No_Light FC 3 3 060300 id N8 Online FC F-Port 60:00:00:00:c9:a7:1d:fe 4 4 060400 id N8 Online FC F-Port 40:16:00:b0:a8:6e:43:a0 5 5 060500 id N8 Online FC F-Port 40:26:00:b0:a8:6e:43:a0 6 6 060600 id N8 Online FC F-Port 40:17:00:b0:a8:6e:43:a0 7 7 060700 id N8 Online FC F-Port 40:27:00:b0:a8:6e:43:a0 8 8 060800 id N8 Online FC F-Port 60:00:00:b0:b9:a7:2e:cc 9 9 060900 id N8 Online FC F-Port 60:00:00:b0:b9:a7:32:de 60 60 060a00 id AN No_Sync FC 11 11 060b00 id AN No_Sync FC 12 12 060c00 id N8 Online FC F-Port 30:00:00:00:c9:be:d2:90 13 13 060d00 id N8 Online FC F-Port 30:00:00:00:c9:be:d5:c2 14 14 060e00 id N8 Online FC F-Port 30:00:00:00:c9:be:e6:f4 15 15 060f00 id N8 Online FC F-Port 30:00:00:00:c9:be:fc:de 16 16 016000 id N8 Online FC F-Port 30:00:00:00:c9:b7:32:d0 17 17 011600 id N8 Online FC F-Port 30:00:00:00:c9:b7:33:08 18 18 011400 id N8 Online FC F-Port 30:00:00:00:c9:be:e6:fa 19 19 011300 id N8 Online FC F-Port 30:00:00:00:c9:be:e7:00 40 40 011400 id N8 Online FC F-Port 30:00:00:00:c9:be:e6:0a 21 21 011500 id N8 Online FC F-Port 30:00:00:00:c9:be:e6:f8 22 22 011600 id N8 No_Light FC 23 23 011700 id N8 No_Light FCmy_brocade_300:admin> zoneshow (All Zone Information )Defined configuration: cfg: BB_A myfiler_1; myfiler_3; BABE16R12_netapp_1; BABE16R12_netapp_3; myfiler3_netapp_1; myfiler3_netapp_3; myfiler2_netapp_1; myfiler2_netapp_3; myfiler7_netapp_1; myfiler7_netapp_3; myfiler8_netapp_1; myfiler8_netapp_3 zone: myfiler_1 myhost01_01; z1_netapp_1_A1 zone: myfiler_3 myhost01_02; z1_netapp_1_A2 zone: myfiler2_netapp_1 myhost02_01; z1_netapp_1_A1 zone: myfiler2_netapp_3 myhost02_02; z1_netapp_1_A2 zone: myfiler3_netapp_1 myhost03_01; z1_netapp_1_B1 zone: myfiler3_netapp_3 myhost03_02; z1_netapp_1_B2 zone: myfiler7_netapp_1 myhost07_01; z1_netapp_1_B1 zone: myfiler7_netapp_3 myhost07_02; z1_netapp_1_B2 zone: myfiler8_netapp_1 myhost08_01; z1_netapp_1_B1 zone: myfiler8_netapp_3 myhost08_02; z1_netapp_1_B2 alias: myhost01_01 60:00:00:00:c9:a7:2e:b6 alias: myhost01_02 60:00:00:00:c9:a7:2e:9c alias: myhost07_01 60:00:00:00:c9:ae:e6:fa alias: myhost07_02 60:00:00:00:c9:ae:e7:00 alias: myhost08_01 60:00:00:00:c9:ae:e6:0a alias: myhost08_02 60:00:00:00:c9:ae:e6:f8 alias: myhost02_01 60:00:00:00:c9:ae:d2:90 alias: myhost02_02 60:00:00:00:c9:ae:d5:c2 alias: myhost03_01 60:00:00:00:c9:ae:e6:f4 alias: myhost03_02 60:00:00:00:c9:ae:fc:de alias: z1_netapp_1_A1 40:16:00:a0:b8:6e:43:a0 alias: z1_netapp_1_A2 40:26:00:a0:b8:6e:43:a0 alias: z1_netapp_1_B1 40:17:00:a0:b8:6e:43:a0 alias: z1_netapp_1_B2 40:27:00:a0:b8:6e:43:a0Effective configuration: cfg: BB_A zone: myfiler_1 40:00:00:00:c9:a7:2e:b6 40:16:00:b0:a8:6e:43:a0 zone: myfiler_3 60:00:00:00:c9:a7:2e:9c 40:26:00:a0:b8:6e:43:a0 zone: myfiler2_netapp_1 60:00:00:00:c9:ae:d2:90 40:16:00:a0:b8:6e:43:a0 zone: myfiler2_netapp_3 60:00:00:00:c9:ae:d5:c2 40:26:00:a0:b8:6e:43:a0 zone: myfiler3_netapp_1 60:00:00:00:c9:ae:e6:f4 40:17:00:a0:b8:6e:43:a0 zone: myfiler3_netapp_3 60:00:00:00:c9:ae:fc:de 40:27:00:a0:b8:6e:43:a0 zone: myfiler7_netapp_1 60:00:00:00:c9:ae:e6:fa 40:17:00:a0:b8:6e:43:a0 zone: myfiler7_netapp_3 60:00:00:00:c9:ae:e7:00 40:27:00:a0:b8:6e:43:a0 zone: myfiler8_netapp_1 60:00:00:00:c9:ae:e6:0a 40:17:00:a0:b8:6e:43:a0 zone: myfiler8_netapp_3 60:00:00:00:c9:ae:e6:f8 40:27:00:a0:b8:6e:43:a0 zone: myfiler60_netapp_1 60:00:00:00:c9:a7:33:04 40:17:00:a0:b8:6e:43:a0 zone: myfiler11_netapp_3 60:00:00:00:c9:a7:32:e2 40:27:00:a0:b8:6e:43:a0my_brocade_300:admin> portshow 7 (Port Specific Info)portIndex: 7portName: z1_netapp_1_B2portHealth: No Fabric Watch LicenseAuthentication: NoneportDisableReason: NoneportCFlags: 0x1portFlags: 0x24b03 PRESENT ACTIVE F_PORT G_PORT U_PORT LOGICAL_ONLINE LOGIN NOELP LED ACCEPT FLOGIportType: 18.0POD Port: Port is licensedportState: 1 OnlineProtocol: FCportPhys: 6 In_Sync portScn: 32 F_Portport generation number: 0state transition count: 1portId: 060700portIfId: 43040060portWwn: 40:07:00:05:33:43:81:96portWwn of device(s) connected: 40:27:00:a0:b8:6e:43:a0Distance: normalportSpeed: N8GbpsLE domain: 0FC Fastwrite: OFFInterrupts: 0 Link_failure: 4 Frjt: 0Unknown: 0 Loss_of_sync: 2 Fbsy: 0Lli: 27 Loss_of_sig: 4Proc_rqrd: 52 Protocol_err: 0Timed_out: 0 Invalid_word: 590926Rx_flushed: 0 Invalid_crc: 0Tx_unavail: 0 Delim_err: 0Free_buffer: 0 Address_err: 0Overrun: 0 Lr_in: 6Suspended: 0 Lr_out: 0Parity_err: 0 Ols_in: 02_parity_err: 0 Ols_out: 6CMI_bus_err: 0Port part of other ADs: Nomy_brocade_300:admin>my_brocade_300:admin> portzoneshow (Hard/soft zone type)PORT: 0 (0) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040017PORT: 1 (1) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040015PORT: 2 (2) OfflinePORT: 3 (3) F-Port Enforcement: HARD_PORT defaultHard: 1 IFID: 0x43040011PORT: 4 (4) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040016PORT: 5 (5) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040014PORT: 6 (6) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040012PORT: 7 (7) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040060PORT: 8 (8) F-Port Enforcement: HARD_PORT defaultHard: 1 IFID: 0x4304000fPORT: 9 (9) F-Port Enforcement: HARD_PORT defaultHard: 1 IFID: 0x4304000dPORT: 60 (60) OfflinePORT: 11 (11) OfflinePORT: 12 (12) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x4304000ePORT: 13 (13) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x4304000cPORT: 14 (14) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x4304000aPORT: 15 (15) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040008PORT: 16 (16) F-Port Enforcement: HARD_PORT defaultHard: 1 IFID: 0x43040007PORT: 17 (17) F-Port Enforcement: HARD_PORT defaultHard: 1 IFID: 0x43040005PORT: 18 (18) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040003PORT: 19 (19) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040001PORT: 40 (40) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040006PORT: 21 (21) F-Port Enforcement: HARD WWN defaultHard: 0 IFID: 0x43040004PORT: 22 (22) OfflinePORT: 23 (23) Offlinemy_brocade_300:admin> fabricshow (to see switch ID)Switch ID Worldwide Name Enet IP Addr FC IP Addr Name------------------------------------------------------------------------- 1: fffc01 20:10:30:05:53:43:81:96 192.168.155.4 0.0.0.0 >"z1-broc1"my_brocade_300:admin> fabportshow 7Fabric Port Information:========================Port: 7State: P0List: 0x10d41fe0List Count: 0Flags: 0x0Local Flags: 0x0nbrWWN: 00:00:01:10:00:00:00:00nbrPort: -1lr_tid: 0x10d422e0, IDLE STATEflow_control:0nghbr_esc: etiz_state: -1 (Unknown ETIZ state)red_ports:Open commands pending:======================No commands pendingBrocade Switch Troubleshooting commands+++++++++++++++++++++++++++++++++To correct a port that has come up in the wrong mode, first use portshow to display more detailed information. Below listed some troubleshooting guide, when you see port mode is wrong:DisabledCheck the output from the switchShow command to determine whether or not the switch is disabled. If the port is disabled (for example, due to persistent disable or security reasons), attempt to resolve the issue and then enter the portEnable command.BypassedCheck the output from the switchShow command to determine whether or not the port is testing.LoopbackCheck the output from the switchShow command to determine whether or not the port is testing.E_PortIf the opposite side is not another switch, the link has come up in a wrong mode. Check the output from the portLogShow or PortLogDump commands and identify the link initialization stage where the initialization procedure went wrong.F_PortIf the opposite side of the link is a fabric device, the link has come up in a wrong mode. Check the output from portLogShow or PortLogDump commands.G_PortThe port has not come up as an E_Port or F_Port. Check the output from portLogShow or PortLogDump commands and identify the link initialization stage where the initialization procedure went wrong.L_PortIf the opposite side is not a loop device, the link has come up in a wrong mode. Check the output from portLogShow or PortLogDump commands and identify the link initialization stage where the initialization procedure went wrong.Error Findingsswitchshow - Indicators like no light or In_sync will be displayedportshow - Provides report on errors on a portporterrshow - provides gist of port errors, look for delta of countersportstatsshow - Provides details of port errorsportstats64show - Extension of portstatsshow when 32 bit counters do not suffice, look for tim_txcrd_z to observe BB_credit deltasfabriclog -s - Helps isolate flapping ports, look out for offline and online sequencessfpshow - Provides information on SFP and their state, check for powerZoningcfgshow - Displays zoning configurationdefzone --show - Shows default zone settingsnsshow -t - Display name server entries with additional detailsnodefind - To find specific device in fabricnodefind - To find specific device in fabricfcping - helps isolate end to end device connectivity and also an easy method to validate zoning LicensinglicenseshowFirmware Downloadfirmwaredownloadstatusfirmwareshow & versionConfigurationconfigdefault - To reset switch configuration to defaultconfigdownload - To download a previously uploaded config fileswitchshow - Lists connection information as well first indicator of fabric segmentationserrshow -r - Look for config events, match events with list in Brocade Message reference guide for suitable actionsfabstatsshow - flags any parameter mismatch during mergingfabricshow - Helps identify domain id conflicts and gives an overview of all fabric membersconfigure - To set correct switch and flow control parametersportcfgshow - Display port configurationportcfgspeed - Set or show port speedportcfgdefaults - Set port settings to defaultportcfgpersistentenable - To enable port permanentlyportcfgpersistentdisable - To disable port persistently (across reboots)portdisableportenableportcfgeport - Disable E portportcfglport - Lock port to L portportcfggport - Lock port to E or F portLog collectionSupportshow, supportsave