Brocade光纖交換機(jī)常用命令
IBM的雙機(jī)雙柜,兩光纖交換機(jī)分別引一根光纖到另一樓光纖交換機(jī),插上無反應(yīng),后得知需要更改交換機(jī)的domain id 默認(rèn)出廠為1。需改為不同號(hào)。接下來是小編為大家收集的Brocade 光纖交換機(jī)常用命令,希望能幫到大家。
Brocade 光纖交換機(jī)常用命令
使用電腦連接管理網(wǎng)口,默認(rèn)IP地址為:192.168.0.1,掩碼:255.255.255.0
默認(rèn)用戶名:admin,默認(rèn)密碼password
1. switchStatusShow
查看交換機(jī)的總體健康狀態(tài)
switch:admin> switchstatusshow Switch Health Report Switch Name: SWFCR IP address: 10.33.54.176 SwitchState: MARGINAL Duration: 863:23 Power supplies monitor MARGINAL Temperatures monitor HEALTHY Fans monitor HEALTHY WWN servers monitor HEALTHY Standby CP monitor HEALTHY Blades monitor HEALTHY Flash monitor HEALTHY Marginal ports monitor HEALTHY Faulty ports monitor HEALTHY Missing SFPs monitor HEALTHY All ports are healthy switch:admin> |
2. switchShow
查看交換機(jī)基本配置信息
Enter the switchShow command, which displays the following information for a switch: - switchname - The switch name. - switchtype - The switch model and firmware version numbers. - switchstate - The switch state: Online, Offline, Testing, or Faulty. - switchrole - Displays the switch role: Principal, Subordinate, or Disabled. - switchdomain - Displays the switch Domain ID. - switchid - The embedded port D_ID of the switch. - switchwwn - The switch World Wide Name. - switchbeacon - The switch beaconing state: either ON or OFF. The switchShow command also displays the following information for ports on the specified switch: - Module type - The SFP type if an SFP is present. - Port speed - The speed of the Port (1G, 2G, 4G, N1, N2, N4, or AN). The speed can be fixed, negotiated, or auto-negotiated. - Port state - The port status. - Comment - About the port. This section may be blank or display the WWN for an F_Port or an E_Port, the trunking state, or upstream or downstream status |
3. portShow
查看端口狀態(tài)
switch:admin> switch:user> portshow 0 portName: portHealth: OFFLINE Authentication: None portDisableReason: None portCFlags: 0x1 portFlags: 0x4001 PRESENT U_PORT LED portType: 4.1 portState: 2 Offline portPhys: 2 No_Module portScn: 0 port generation number: 0 portId: 010000 portIfId: 43020020 portWwn: 20:00:00:60:69:00:02:53 portWwn of device(s) connected: Distance: normal portSpeed: N2Gbps LE domain: 0 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 Port part of other ADs: Yes |
4. fanShow
查看交換機(jī)散熱風(fēng)扇的狀態(tài)
Enter the fanShow command: switch:admin> fanshow Fan 1 is OK speed is 7010 RPM Fan 2 is OK speed is 7180 RPM Fan 3 is OK speed is 7068 RPM Fan 4 is OK speed is 7116 RPM Fan 5 is OK speed is 7155 RPM Fan 6 is OK speed is 7001 RPM switch:admin> |
5. psShow
查看交換機(jī)的電源狀態(tài)
注:如果安裝FR4-18i、FC4-16IP、FC10-6、FC8-48板,需要滿配4個(gè)電源
Enter the psShow command: switch:admin> psshow Power Supply #1 is OK 0335,FF2Z0007161,60-0000739-02, B,,DCJ3002-01P, B,FF2Z0007161 Power Supply #2 is faulty 0335,FF2Z0007176,60-0000739-02, B,,DCJ3002-01P, B,FF2Z0007176 switch:admin> |
6. tempShow
查看交換機(jī)的環(huán)境溫度
Enter the tempShow command: switch:admin> tempshow Index Status Centigrade Fahrenheit ---------------------------------------------------- 1 OK 21 70 2 OK 22 72 3 OK 29 84 4 OK 24 75 5 OK 25 77 switch:admin> |
7. errDump、errShow、errClear
查看交換機(jī)的內(nèi)部消息日志
To display the system message log, with no page breaks Enter the errDump command. To display the system message log one at a time Enter the errShow command. To clear the system message log Enter the errClear command. |
8. supportShow、supportSave、pdShow
收集交換機(jī)的診斷數(shù)據(jù)
supportShow 顯示診斷信息和狀態(tài)信息 supportSave 將數(shù)據(jù)打包、上傳至指定的FTP服務(wù)器 The command prompts for an FTP server, packages the following files, and sends them to the specified server: ? The output of the supportShow command ? The contents of any trace dump files on the switch ? System message logs (for Brocade directors, supportSave saves the system message logs from both of the CP blades) pdShow 顯示panic dump文件的內(nèi)容,幫助診斷系統(tǒng)panic的原因 |
9. nsShow、nsAllShow、fabricShow
檢查連接到交換機(jī)的設(shè)備
nsShow 顯示連接到交換機(jī)的所有設(shè)備 nsAllShow 顯示連接到Fabric的所有設(shè)備 fabricShow 顯示Fabric中的所有交換機(jī) |
10. licenseShow、wwn
檢查license文件和交換機(jī)的WWN號(hào)
11. version
檢查Fabric OS的版本,將顯示如下信息:
- Kernel: displays the version of switch kernel operating system. - Fabric OS: displays the version of switch Fabric OS. - Made on: displays the build date of firmware running in switch. - Flash: displays the install date of firmware stored in nonvolatile memory. - BootProm: displays the version of the firmware stored in the boot PROM. |
12. haShow
查看Control Blade的狀態(tài)
swDir: admin> haShow Local CP (Slot 6, CP1): Active Remote CP (Slot 5, CP0): Standby HA Enabled, Heartbeat Up, State Synchronized |
13. slotShow
查看各個(gè)Blade的狀態(tài)
14. portCfgSpeed
修改端口的速率
15. portEnable或portCfgPersistentEnable
Reset端口
16. 檢查WWN卡狀態(tài)
下列命令如果不能正確執(zhí)行,則說明WWN卡需要更換:
www,chassisShow:顯示交換機(jī)的WWN號(hào)
chassisShow:顯示chassis和WWN卡的狀態(tài)
ipAddrShow,ipAddrSet:顯示CP Blades的IP地址
historyShow、historyLastShow:顯示歷史日志信息
switchName:顯示交換機(jī)的名字
修改Domain ID
1. 查看當(dāng)前的Domain ID
輸入命令fabricShow,輸出結(jié)果中的Switch ID即包括交換機(jī)的Domain ID。
2. 先關(guān)閉交換機(jī)
輸入命令swichDisable
3. 配置Domain ID
輸入命令configure
Enter y after the Fabric Parameters prompt: Fabric parameters (yes, y, no, n): [no] y Enter a unique domain ID at the Domain prompt. Use a domain ID value from 1 through 239 for normal operating mode (FCSW compatible): Domain: (1..239) [1] 3 Respond to the remaining prompts, or press Ctrl-d to accept the other settings and exit. |
4. 重新啟用交換機(jī)
輸入命令swichEnable
升級(jí)Firmware
FC10-6 Blade需要Firmware Version 5.3以上
FC4-16IP Blade、FC4-48 Port Blade需要Firmware Version 5.2以上
FR4-18i router blade需要Firmware Version 5.1以上
如果M48有主備Control Processor,且主備CP處于synchronized狀態(tài),則升級(jí)過程可在線進(jìn)行,不干擾數(shù)據(jù)流量。
如果M48只有一個(gè)CP,則升級(jí)微碼過程中需要reboot交換機(jī)來激活新的Firmware,數(shù)據(jù)訪問會(huì)中斷。
升級(jí)M48 Firmware約需15分鐘
1. 保存交換機(jī)的配置信息
configUpload
2. 保存主備Control Processor Blade的supportsave
使用命令ipAddrShow,查看主備CP的IP地址
使用telent分別登錄主備CP,使用命令supportSave分別收集主備CP的supportsave文件。
3. 查看supportsave中的XXX_SUPPORTSHOW文件,查找如下字段:
/bin/df: Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 120112 61128 58984 51% / /dev/hda2 120128 72356 47772 60% /mnt |
確認(rèn)Flash存儲(chǔ)器的使用率不超過90%。否則需聯(lián)系二線Support。
4. 清除交換機(jī)中當(dāng)前保存的error report信息
errClear
5. 檢查當(dāng)前各個(gè)CP Blades的Firmware版本
firmwareShow
6. 檢查主備CP狀態(tài),是否處于同步狀態(tài)
haShow:查看主備CP是否處于Synchronized狀態(tài)
如果主備CP不處于同步狀態(tài),則使用命令haSyncStart同步主備CP。
switch:admin> hashow Local CP (Slot 5, CP0): Active, Warm Recovered Remote CP (Slot 6, CP1): Standby, Healthy HA enabled, Heartbeat Up, HA State synchronized |
7. 升級(jí)Firmware
如果SAN交換機(jī)支持HA,則使用命令firmwareDownload,同時(shí)升級(jí)主備Control Blade。
如果SAN交換機(jī)不支持HA,則使用命令firmwareDownload -s,分別升級(jí)每個(gè)Control Blade。
8. 檢查Firmware升級(jí)是否完成
firmwareDownloadStatus
9. 再次檢查當(dāng)前各個(gè)CP Blades的Firmware版本
firmwareShow
激活軟件License
1. 查看當(dāng)前已經(jīng)激活的License
licenseShow
swDir:admin> licenseShow AAbbccDDeeFFeeGG: Web license Zoning license Extended Fabric license Fabric Watch license Performance Monitor license Trunking license Security license |
2. 獲取和激活License時(shí)需要提供64位的Chasis ID,查看Chasis ID:
licenseIdShow
3. 激活新的License
licenseAdd “key”
4. 刪除舊的License
licenseRemove “key”
刪除License后需要reboot交換機(jī),或者switchDisable/switchEnable重啟交換機(jī),以使需要?jiǎng)h除的License失效。
備份交換機(jī)的配置信息
1. 使用configUpload命令,將配置文件保存在自己的電腦上
注:configUpload無法保存用戶的密碼信息。
2. 使用Telnet命令查看配置信息,并做Session Log
configShow
ipaddrShow
licenseShow
switchShow
3. 保存SupportSave文件
supportSave
安裝/更換Port Blade
1. 查看當(dāng)前Port Blade的狀態(tài)
switchShow
2. 查看需要更換的Port Blade的備件號(hào)
chassisShow
包含有Port Blade的備件號(hào)、序列號(hào)和狀態(tài)。
3. 確認(rèn)需要更換的Port Blade上已經(jīng)沒有數(shù)據(jù)流量
查看Port Blade狀態(tài)LED,確保所有的Port Speed和Port Status狀態(tài)燈處于OFF狀態(tài)。
4. 安裝/更換完畢后檢查
nsShow
nsAllShow
fabricShow
更換M48 CP(Control Processor) Blade
估計(jì)用時(shí)30分鐘
注意事項(xiàng):
1. 在拿到新CP Blade備件,可以開始物理更換前,不要將故障CP Blade取出,以免影響散熱。
2. Acitve狀態(tài)的CP Blade將自動(dòng)把配置信息鏡像到Standby狀態(tài)的CP Blade上。必須在線更換CP Blade,才能實(shí)現(xiàn)配置信息的自動(dòng)同步。
3. 新?lián)Q上的CP Blade將繼承舊CP Blade的IP地址和主機(jī)名。
4. 確保兩個(gè)CP Blade處于同一FOS版本。
更換前的檢查:
1. 查看CP Blade上的Status LED是否為黃色,Power LED是否點(diǎn)亮。
2. 使用slotShow命令查看CP Blade是否處于Enabled狀態(tài)。
3. 使用hsShow命令是否報(bào)錯(cuò)。
4. 使用errShow命令查看錯(cuò)誤日志。
備份配置信息:
1. 切換健康的CP Blade為當(dāng)前Active狀態(tài)的CP Blade。
使用命令haFailover,實(shí)現(xiàn)CP Blade間的手動(dòng)切換。
使用命令haShow,確認(rèn)當(dāng)前Active狀態(tài)的CP Blade為健康的CP Blade。
等待CP Blade上的Status LED熄滅,表明HA Failover已經(jīng)完成。
2. 使用firmwareShow命令檢查Firmware版本
3. 使用haDisable命令,暫時(shí)取消Failover功能。
4. 使用configUpload命令保存配置信息。
swDir:admin> configUpload Protocol (scp or ftp) [ftp]: ftp Server Name or IP Address [host]: 123.456.78.90 User Name [None]: user File Name [config.txt]: config.txt Password: xxxxxxxx upload complete |
更換CP Blade
1. 將CP Blade上的電源開關(guān)撥至Down位置,切斷CP Blade的電源。
2. 拔下CP Blade。
3. 插入新的CP Blade。
4. 將CP Blade上的電源開關(guān)撥至Up位置,給CP Blade供電。
更換后的驗(yàn)證:
1. 等待兩個(gè)CP Blade上的Status LED都熄滅。
2. 使用命令haEnable啟用HA Failover功能。
3. 使用命令haShow檢查HA狀態(tài),確認(rèn)“HA Enabled Heartbeat Up” and “HA-state in sync”。
4. 使用命令slotShow檢查所有的CP Blade都處于Enabled狀態(tài)。
swDir:admin> slotShow Slot Blade Type ID Status --------------------------------- 1 SW BLADE 17 ENABLED 2 SW BLADE 17 ENABLED 3 SW BLADE 17 ENABLED 4 SW BLADE 17 ENABLED 5 CP BLADE 16 ENABLED 6 CP BLADE 16 ENABLED 7 SW BLADE 17 ENABLED 8 SW BLADE 17 ENABLED 9 SW BLADE 17 ENABLED 10 SW BLADE 17 ENABLED swDir:admin> |
5. 使用命令firmwareShow命令,檢查FW版本是否一致
swDir:admin> firmwareShow Local CP (Slot 6, CP1): Active Primary partition: v5.0.1 Secondary Partition: v5.0.1 Remote CP (Slot 5, CP0): Standby Primary partition: v5.0.1 Secondary Partition: v5.0.1 Note: If Local CP and Remote CP have different versions of firmware, please retry firmwaredownload command. swDir:admin> |
6. 使用firmwareDownload -s命令,只升級(jí)單獨(dú)某個(gè)CP Blade的微碼。
7. 使用firmwareDownloadStatus命令,驗(yàn)證微碼安裝是否成功。
ZONE配置
1. 概念
zone configuration:
為一組zone的集合。一個(gè)zone可以同時(shí)屬于不同的zone configuration之中。當(dāng)一個(gè)zone configuration生效時(shí),屬于該zone configuration的所有zone都生效。
創(chuàng)建zone配置基本步驟:
創(chuàng)建alias -> 創(chuàng)建zone -> 創(chuàng)建zone configuration -> cfgSave -> cfgEnable
2. 常用命令
configUpload:備份zone configuration
configDownload:恢復(fù)zone configuration
3. 創(chuàng)建別名
(1)aliCreate
(2)cfgSave
switch:admin> alicreate "array1", "2,32; 2,33; 2,34; 4,4" switch:admin> alicreate "array2", "21:00:00:20:37:0c:66:23; 4,3" switch:admin> alicreate "loop1", "4,6" switch:admin> cfgsave You are about to save the Defined zoning configuration. This action will only save the changes on the Defined configuration. Any changes made on the Effective configuration will not take effect until it is re-enabled. Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y |
4. 向別名中增加成員
(1)aliAdd
(2)cfgSave
switch:admin> aliadd "array1", "1,2" switch:admin> aliadd "array2", "21:00:00:20:37:0c:72:51" switch:admin> aliadd "loop1", "5,6" switch:admin> cfgsave You are about to save the Defined zoning configuration. This action will only save the changes on the Defined configuration. Any changes made on the Effective configuration will not take effect until it is re-enabled. Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y |
5. 刪除別名中的成員
(1)aliRemove
(2)cfgSave
switch:admin> aliremove "array1", "1,2" switch:admin> aliremove "array2", "21:00:00:20:37:0c:72:51" switch:admin> aliremove "loop1", "4,6" switch:admin> cfgsave You are about to save the Defined zoning configuration. This action will only save the changes on the Defined configuration. Any changes made on the Effective configuration will not take effect until it is re-enabled. Do you want to save Defined zoning configuration only? (yes, y, no, n): [no] y |
6. 刪除別名
switch:admin> alidelete "array1"
switch:admin> cfgsave
7. 查看定義配置中的別名
switch:admin> alishow "arr*"
alias: array1 21:00:00:20:37:0c:76:8c
alias: array2 21:00:00:20:37:0c:66:23
8. 創(chuàng)建zone
switch:admin> zonecreate "greenzone", "2,32; 2,33; 2,34; 4,4"
switch:admin> zonecreate "redzone", "21:00:00:20:37:0c:66:23; 4,3"
switch:admin> zonecreate "broadcast", "1,2; 2,33; 2,34"
switch:admin> cfgsave
9. 向zone中增加設(shè)備
switch:admin> zoneadd "greenzone", "1,2"
switch:admin> zoneadd "redzone", "21:00:00:20:37:0c:72:51"
switch:admin> zoneadd "broadcast", "1,3"
switch:admin> cfgsave
10. 從zone中刪除設(shè)備
switch:admin> zoneremove "greenzone", "1,2"
switch:admin> zoneremove "redzone", "21:00:00:20:37:0c:72:51"
switch:admin> zoneremove "broadcast", "2,34"
switch:admin> cfgsave
11. 刪除一個(gè)zone
switch:admin> zonedelete "redzone"
switch:admin> cfgsave
12. 查看當(dāng)前定義配置中的zone
以下命令查看所有以字母A、B、C開頭的zone
switch:admin> zoneshow "[A-C]*"
zone: Blue_zone 1,1; array1; 1,2; array2
zone: Bobs_zone 4,5; 4,6; 4,7; 4,8; 4,9
13. 創(chuàng)建zone配置
switch:admin> cfgcreate "NEW_cfg", "redzone; bluezone; greenzone"
switch:admin> cfgsave
14. 向zone配置成員中加入zone
switch:admin> cfgadd "newcfg", "bluezone"
switch:admin> cfgsave
15. 從zone配置成員中刪除zone
switch:admin> cfgremove "NEW_cfg", "redzone"
switch:admin> cfgsave
16. 刪除zone配置
switch:admin> cfgdelete "testcfg"
switch:admin> cfgsave
17. 撤銷對(duì)zone配置的修改
命令cfgTransAbort將撤銷所有未保存的修改,及恢復(fù)到上次執(zhí)行cfgSave時(shí)的狀態(tài)。
18. 查看zone配置信息
cfgShow不帶任何參數(shù):顯示處于defined和effective狀態(tài)的所有zone配置信息
switch:admin> cfgshow
Defined configuration:
cfg: USA1 Blue_zone
cfg: USA_cfg Red_zone; Blue_zone
zone: Blue_zone
1,1; array1; 1,2; array2
zone: Red_zone
1,0; loop1
alias: array1 21:00:00:20:37:0c:76:8c; 21:00:00:20:37:0c:71:02
alias: array2 21:00:00:20:37:0c:76:22; 21:00:00:20:37:0c:76:28
alias: loop1 21:00:00:20:37:0c:76:85; 21:00:00:20:37:0c:71:df
Effective configuration:
cfg: USA_cfg
zone: Blue_zone
1,1
21:00:00:20:37:0c:76:8c
21:00:00:20:37:0c:71:02
1,2
21:00:00:20:37:0c:76:22
21:00:00:20:37:0c:76:28
zone: Red_zone
1,0
21:00:00:20:37:0c:76:85
21:00:00:20:37:0c:71:df
19. 保存zone配置
switch:admin> cfgenable "USA_cfg"
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected.
Do you want to enable 'USA_cfg' configuration (yes, y, no, n): [no] y
zone config "USA_cfg" is in effect
Updating flash ...
看了“Brocade 光纖交換機(jī)常用命令”還想看:、