使用電腦連接配接管理網口,預設IP位址為:192.168.0.1,掩碼:255.255.255.0
預設使用者名:admin,預設密碼password
1. switchStatusShow
檢視交換機的總體健康狀态
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
檢視交換機基本配置資訊
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
檢視端口狀态
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
檢視交換機散熱風扇的狀态
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
5. psShow
檢視交換機的電源狀态
注:如果安裝FR4-18i、FC4-16IP、FC10-6、FC8-48闆,需要滿配4個電源
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
6. tempShow
檢視交換機的環境溫度
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
7. errDump、errShow、errClear
檢視交換機的内部消息日志
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
收集交換機的診斷資料
supportShow
顯示診斷資訊和狀态資訊
supportSave
将資料打包、上傳至指定的FTP伺服器
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檔案的内容,幫助診斷系統panic的原因
9. nsShow、nsAllShow、fabricShow
檢查連接配接到交換機的裝置
nsShow
顯示連接配接到交換機的所有裝置
nsAllShow
顯示連接配接到Fabric的所有裝置
fabricShow
顯示Fabric中的所有交換機
10. licenseShow、wwn
檢查license檔案和交換機的WWN号
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的狀态
swDir: admin> haShow
Local CP (Slot 6, CP1): Active
Remote CP (Slot 5, CP0): Standby
HA Enabled, Heartbeat Up, State Synchronized
13. slotShow
檢視各個Blade的狀态
14. portCfgSpeed
修改端口的速率
15. portEnable或portCfgPersistentEnable
Reset端口
16. 檢查WWN卡狀态
下列指令如果不能正确執行,則說明WWN卡需要更換:
www,chassisShow:顯示交換機的WWN号
chassisShow:顯示chassis和WWN卡的狀态
ipAddrShow,ipAddrSet:顯示CP Blades的IP位址
historyShow、historyLastShow:顯示曆史日志資訊
switchName:顯示交換機的名字
修改Domain ID
1. 檢視目前的Domain ID
輸入指令fabricShow,輸出結果中的Switch ID即包括交換機的Domain ID。
2. 先關閉交換機
輸入指令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. 重新啟用交換機
輸入指令swichEnable
更新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狀态,則更新過程可線上進行,不幹擾資料流量。
如果M48隻有一個CP,則更新微碼過程中需要reboot交換機來激活新的Firmware,資料通路會中斷。
更新M48 Firmware約需15分鐘
1. 儲存交換機的配置資訊
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
确認Flash存儲器的使用率不超過90%。否則需聯系二線Support。
4. 清除交換機中目前儲存的error report資訊
errClear
5. 檢查目前各個CP Blades的Firmware版本
firmwareShow
6. 檢查主備CP狀态,是否處于同步狀态
haShow:檢視主備CP是否處于Synchronized狀态
如果主備CP不處于同步狀态,則使用指令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. 更新Firmware
如果SAN交換機支援HA,則使用指令firmwareDownload,同時更新主備Control Blade。
如果SAN交換機不支援HA,則使用指令firmwareDownload -s,分别更新每個Control Blade。
8. 檢查Firmware更新是否完成
firmwareDownloadStatus
9. 再次檢查目前各個CP Blades的Firmware版本
激活軟體License
1. 檢視目前已經激活的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時需要提供64位的Chasis ID,檢視Chasis ID:
licenseIdShow
3. 激活新的License
licenseAdd “key”
4. 删除舊的License
licenseRemove “key”
删除License後需要reboot交換機,或者switchDisable/switchEnable重新開機交換機,以使需要删除的License失效。
備份交換機的配置資訊
1. 使用configUpload指令,将配置檔案儲存在自己的電腦上
注:configUpload無法儲存使用者的密碼資訊。
2. 使用Telnet指令檢視配置資訊,并做Session Log
configShow
ipaddrShow
switchShow
3. 儲存SupportSave檔案
安裝/更換Port Blade
1. 檢視目前Port Blade的狀态
2. 檢視需要更換的Port Blade的備件号
chassisShow
包含有Port Blade的備件号、序列号和狀态。
3. 确認需要更換的Port Blade上已經沒有資料流量
檢視Port Blade狀态LED,確定所有的Port Speed和Port Status狀态燈處于OFF狀态。
4. 安裝/更換完畢後檢查
更換M48 CP(Control Processor) Blade
估計用時30分鐘
注意事項:
1. 在拿到新CP Blade備件,可以開始實體更換前,不要将故障CP Blade取出,以免影響散熱。
2. Acitve狀态的CP Blade将自動把配置資訊鏡像到Standby狀态的CP Blade上。必須線上更換CP Blade,才能實作配置資訊的自動同步。
3. 新換上的CP Blade将繼承舊CP Blade的IP位址和主機名。
4. 確定兩個CP Blade處于同一FOS版本。
更換前的檢查:
1. 檢視CP Blade上的Status LED是否為黃色,Power LED是否點亮。
2. 使用slotShow指令檢視CP Blade是否處于Enabled狀态。
3. 使用hsShow指令是否報錯。
4. 使用errShow指令檢視錯誤日志。
備份配置資訊:
1. 切換健康的CP Blade為目前Active狀态的CP Blade。
使用指令haFailover,實作CP Blade間的手動切換。
使用指令haShow,确認目前Active狀态的CP Blade為健康的CP Blade。
等待CP Blade上的Status LED熄滅,表明HA Failover已經完成。
2. 使用firmwareShow指令檢查Firmware版本
3. 使用haDisable指令,暫時取消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上的電源開關撥至Down位置,切斷CP Blade的電源。
2. 拔下CP Blade。
3. 插入新的CP Blade。
4. 将CP Blade上的電源開關撥至Up位置,給CP Blade供電。
更換後的驗證:
1. 等待兩個CP Blade上的Status LED都熄滅。
2. 使用指令haEnable啟用HA Failover功能。
3. 使用指令haShow檢查HA狀态,确認“HA Enabled Heartbeat Up” and “HA-state in sync”。
4. 使用指令slotShow檢查所有的CP Blade都處于Enabled狀态。
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
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.
6. 使用firmwareDownload -s指令,隻更新單獨某個CP Blade的微碼。
7. 使用firmwareDownloadStatus指令,驗證微碼安裝是否成功。
ZONE配置
1. 概念
zone configuration:
為一組zone的集合。一個zone可以同時屬于不同的zone configuration之中。當一個zone configuration生效時,屬于該zone configuration的所有zone都生效。
建立zone配置基本步驟:
建立alias -> 建立zone -> 建立zone configuration -> cfgSave -> cfgEnable
2. 常用指令
configUpload:備份zone configuration
configDownload:恢複zone configuration
3. 建立别名
(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
switch:admin> aliadd "array1", "1,2"
switch:admin> aliadd "array2", "21:00:00:20:37:0c:72:51"
switch:admin> aliadd "loop1", "5,6"
5. 删除别名中的成員
(1)aliRemove
switch:admin> aliremove "array1", "1,2"
switch:admin> aliremove "array2", "21:00:00:20:37:0c:72:51"
switch:admin> aliremove "loop1", "4,6"
6. 删除别名
switch:admin> alidelete "array1"
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. 建立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"
9. 向zone中增加裝置
switch:admin> zoneadd "greenzone", "1,2"
switch:admin> zoneadd "redzone", "21:00:00:20:37:0c:72:51"
switch:admin> zoneadd "broadcast", "1,3"
10. 從zone中删除裝置
switch:admin> zoneremove "greenzone", "1,2"
switch:admin> zoneremove "redzone", "21:00:00:20:37:0c:72:51"
switch:admin> zoneremove "broadcast", "2,34"
11. 删除一個zone
switch:admin> zonedelete "redzone"
12. 檢視目前定義配置中的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. 建立zone配置
switch:admin> cfgcreate "NEW_cfg", "redzone; bluezone; greenzone"
14. 向zone配置成員中加入zone
switch:admin> cfgadd "newcfg", "bluezone"
15. 從zone配置成員中删除zone
switch:admin> cfgremove "NEW_cfg", "redzone"
16. 删除zone配置
switch:admin> cfgdelete "testcfg"
17. 撤銷對zone配置的修改
指令cfgTransAbort将撤銷所有未儲存的修改,及恢複到上次執行cfgSave時的狀态。
18. 檢視zone配置資訊
cfgShow不帶任何參數:顯示處于defined和effective狀态的所有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
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
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 ...
檢視交換機端口狀态
switchshow
porterrshow
portshow
檢視伺服器到存儲的路徑條目
hpdsm devices
hpdsm device=x
本文轉自 高文龍 51CTO部落格,原文連結:http://blog.51cto.com/gaowenlong/1035337,如需轉載請自行聯系原作者