




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、Brocade 光纖交換機常用命令標(biāo)簽: Brocadesan交換機命令2013-12-24 10:19 2062人閱讀 評論(0) 收藏 舉報 分類:SanIBM的雙機雙柜,兩光纖交換機分別引一根光纖到另一樓光纖交換機,插上無反應(yīng),后得知需要更改交換機的domain id 默認(rèn)出廠為1。需改為不同號。下面是博科的交換機命令轉(zhuǎn)。Brocade SAN交換機常用命令使用電腦連接管理網(wǎng)口,默認(rèn)IP地址為:,掩碼:默認(rèn)用戶名:admin,默認(rèn)密碼password1. switchStatusS
2、how查看交換機的總體健康狀態(tài)switch:admin> switchstatusshowSwitch Health ReportSwitch Name: SWFCRIP address: 76SwitchState: MARGINALDuration: 863:23Power supplies monitor MARGINALTemperatures monitor HEALTHYFans monitor HEALTHYWWN servers monitor HEALTHYStandby CP monitor HEALTHYBlades monitor HEALTH
3、YFlash monitor HEALTHYMarginal ports monitor HEALTHYFaulty ports monitor HEALTHYMissing SFPs monitor HEALTHYAll ports are healthyswitch:admin>2. switchShow查看交換機基本配置信息Enter the switchShow command, which displays the following information for a switch:- switchname - The switch name.- switchtype - T
4、he 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
5、 - 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 specifiedswitch:- Module type - The SFP type if an SFP is present.- Port speed - The speed of the Port (1G, 2G, 4G, N1, N2, N4,
6、or AN). The speed can befixed, 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 oran E_Port, the trunking state, or upstream or downstream status3. portShow查看端口狀態(tài)switch:admin> switch:user> ports
7、how 0portName:portHealth: OFFLINEAuthentication: NoneportDisableReason: NoneportCFlags: 0x1portFlags: 0x4001 PRESENT U_PORT LEDportType: 4.1portState: 2 OfflineportPhys: 2 No_ModuleportScn: 0port generation number: 0portId: 010000portIfId: 43020020portWwn: 20:00:00:60:69:00:02:53portWwn of device(s)
8、 connected:Distance: normalportSpeed: N2GbpsLE domain: 0Interrupts: 0 Link_failure: 0 Frjt: 0Unknown: 0 Loss_of_sync: 0 Fbsy: 0Lli: 0 Loss_of_sig: 0Proc_rqrd: 0 Protocol_err: 0Timed_out: 0 Invalid_word: 0Rx_flushed: 0 Invalid_crc: 0Tx_unavail: 0 Delim_err: 0Free_buffer: 0 Address_err: 0Port part of
9、other ADs: Yes4. fanShow查看交換機散熱風(fēng)扇的狀態(tài)Enter the fanShow command:switch:admin> fanshowFan 1 is OK speed is 7010 RPMFan 2 is OK speed is 7180 RPMFan 3 is OK speed is 7068 RPMFan 4 is OK speed is 7116 RPMFan 5 is OK speed is 7155 RPMFan 6 is OK speed is 7001 RPMswitch:admin>5. psShow查看交換機的電源狀態(tài)注:如果安
10、裝FR4-18i、FC4-16IP、FC10-6、FC8-48板,需要滿配4個電源Enter the psShow command:switch:admin> psshowPower Supply #1 is OK0335,FF2Z0007161,60-0000739-02, B,DCJ3002-01P, B,FF2Z0007161Power Supply #2 is faulty0335,FF2Z0007176,60-0000739-02, B,DCJ3002-01P, B,FF2Z0007176switch:admin>6. tempShow查看交換機的環(huán)境溫度Enter th
11、e tempShow command:switch:admin> tempshowIndex Status Centigrade Fahrenheit-1 OK 21 702 OK 22 723 OK 29 844 OK 24 755 OK 25 77switch:admin>7. errDump、errShow、errClear查看交換機的內(nèi)部消息日志To display the system message log, with no page breaksEnter the errDump command.To display the system message log on
12、e at a timeEnter the errShow command.To clear the system message logEnter the errClear command.8. supportShow、supportSave、pdShow收集交換機的診斷數(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:? T
13、he 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 logsfrom both of the CP blades)pdShow顯示panic dump文件的內(nèi)容,幫助診斷系統(tǒng)panic的原因9. nsShow、nsAllShow、fabricShow檢查連接到交換機的設(shè)備nsShow顯示連接到交換機的所有設(shè)備
14、nsAllShow顯示連接到Fabric的所有設(shè)備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
15、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> haShowLocal CP (Slot 6, CP1): ActiveRemote CP (Slot 5, CP0): StandbyHA Enabled, Heartbeat Up, State
16、 Synchronized13. slotShow查看各個Blade的狀態(tài)14. portCfgSpeed修改端口的速率15. portEnable或portCfgPersistentEnableReset端口16. 檢查WWN卡狀態(tài)下列命令如果不能正確執(zhí)行,則說明WWN卡需要更換:www,chassisShow:顯示交換機的WWN號chassisShow:顯示chassis和WWN卡的狀態(tài)ipAddrShow,ipAddrSet:顯示CP Blades的IP地址historyShow、historyLastShow:顯示歷史日志信息switchName:顯示交換機的名字修改Domain ID
17、1. 查看當(dāng)前的Domain ID輸入命令fabricShow,輸出結(jié)果中的Switch ID即包括交換機的Domain ID。2. 先關(guān)閉交換機輸入命令swichDisable3. 配置Domain ID輸入命令configureEnter y after the Fabric Parameters prompt:Fabric parameters (yes, y, no, n): no yEnter a unique domain ID at the Domain prompt. Use a domain ID value from 1 through 239 for normal ope
18、rating mode (FCSW compatible):Domain: (1.239) 1 3Respond to the remaining prompts, or press Ctrl-d to accept the other settings and exit.4. 重新啟用交換機輸入命令swichEnable升級FirmwareFC10-6 Blade需要Firmware Version 5.3以上FC4-16IP Blade、FC4-48 Port Blade需要Firmware Version 5.2以上FR4-18i router blade需要Firmware Versi
19、on 5.1以上如果M48有主備Control Processor,且主備CP處于synchronized狀態(tài),則升級過程可在線進(jìn)行,不干擾數(shù)據(jù)流量。如果M48只有一個CP,則升級微碼過程中需要reboot交換機來激活新的Firmware,數(shù)據(jù)訪問會中斷。升級M48 Firmware約需15分鐘1. 保存交換機的配置信息configUpload2. 保存主備Control Processor Blade的supportsave使用命令ipAddrShow,查看主備CP的IP地址使用telent分別登錄主備CP,使用命令supportSave分別收集主備CP的supportsave文件。3. 查
20、看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存儲器的使用率不超過90%。否則需聯(lián)系二線Support。4. 清除交換機中當(dāng)前保存的error report信息errClear5. 檢查當(dāng)前各個CP Blades的Firmware版本firmwareShow6. 檢查主備CP狀態(tài),是否處于同步狀
21、態(tài)haShow:查看主備CP是否處于Synchronized狀態(tài)如果主備CP不處于同步狀態(tài),則使用命令haSyncStart同步主備CP。switch:admin> hashowLocal CP (Slot 5, CP0): Active, Warm RecoveredRemote CP (Slot 6, CP1): Standby, HealthyHA enabled, Heartbeat Up, HA State synchronized7. 升級Firmware如果SAN交換機支持HA,則使用命令firmwareDownload,同時升級主備Control Blade。如果SAN交
22、換機不支持HA,則使用命令firmwareDownload -s,分別升級每個Control Blade。8. 檢查Firmware升級是否完成firmwareDownloadStatus9. 再次檢查當(dāng)前各個CP Blades的Firmware版本firmwareShow激活軟件License1. 查看當(dāng)前已經(jīng)激活的LicenselicenseShowswDir:admin> licenseShowAAbbccDDeeFFeeGG:Web licenseZoning licenseExtended Fabric licenseFabric Watch licensePerformanc
23、e Monitor licenseTrunking licenseSecurity license2. 獲取和激活License時需要提供64位的Chasis ID,查看Chasis ID:licenseIdShow3. 激活新的LicenselicenseAdd “key”4. 刪除舊的LicenselicenseRemove “key”刪除License后需要reboot交換機,或者switchDisable/switchEnable重啟交換機,以使需要刪除的License失效。備份交換機的配置信息1. 使用configUpload命令,將配置文件保存在自己的電腦上注:configUplo
24、ad無法保存用戶的密碼信息。2. 使用Telnet命令查看配置信息,并做Session LogconfigShowipaddrShowlicenseShowswitchShow3. 保存SupportSave文件supportSave安裝/更換Port Blade1. 查看當(dāng)前Port Blade的狀態(tài)switchShow2. 查看需要更換的Port Blade的備件號chassisShow包含有Port Blade的備件號、序列號和狀態(tài)。3. 確認(rèn)需要更換的Port Blade上已經(jīng)沒有數(shù)據(jù)流量查看Port Blade狀態(tài)LED,確保所有的Port Speed和Port Status狀態(tài)燈處
25、于OFF狀態(tài)。4. 安裝/更換完畢后檢查nsShownsAllShowfabricShow更換M48 CP(Control Processor) Blade估計用時30分鐘注意事項:1. 在拿到新CP Blade備件,可以開始物理更換前,不要將故障CP Blade取出,以免影響散熱。2. Acitve狀態(tài)的CP Blade將自動把配置信息鏡像到Standby狀態(tài)的CP Blade上。必須在線更換CP Blade,才能實現(xiàn)配置信息的自動同步。3. 新?lián)Q上的CP Blade將繼承舊CP Blade的IP地址和主機名。4. 確保兩個CP Blade處于同一FOS版本。更換前的檢查:1. 查看CP B
26、lade上的Status LED是否為黃色,Power LED是否點亮。2. 使用slotShow命令查看CP Blade是否處于Enabled狀態(tài)。3. 使用hsShow命令是否報錯。4. 使用errShow命令查看錯誤日志。備份配置信息:1. 切換健康的CP Blade為當(dāng)前Active狀態(tài)的CP Blade。使用命令haFailover,實現(xiàn)CP Blade間的手動切換。使用命令haShow,確認(rèn)當(dāng)前Active狀態(tài)的CP Blade為健康的CP Blade。等待CP Blade上的Status LED熄滅,表明HA Failover已經(jīng)完成。2. 使用firmwareShow命令檢查F
27、irmware版本3. 使用haDisable命令,暫時取消Failover功能。4. 使用configUpload命令保存配置信息。swDir:admin> configUploadProtocol (scp or ftp) ftp: ftpServer Name or IP Address host: 123.456.78.90User Name None: userFile Name config.txt: config.txtPassword: xxxxxxxxupload complete更換CP Blade1. 將CP Blade上的電源開關(guān)撥至Down位置,切斷CP Bla
28、de的電源。2. 拔下CP Blade。3. 插入新的CP Blade。4. 將CP Blade上的電源開關(guān)撥至Up位置,給CP Blade供電。更換后的驗證:1. 等待兩個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> slotShowSlot Blade Type ID Sta
29、tus -1 SW BLADE 17 ENABLED2 SW BLADE 17 ENABLED3 SW BLADE 17 ENABLED4 SW BLADE 17 ENABLED5 CP BLADE 16 ENABLED6 CP BLADE 16 ENABLED7 SW BLADE 17 ENABLED8 SW BLADE 17 ENABLED9 SW BLADE 17 ENABLED10 SW BLADE 17 ENABLEDswDir:admin>5. 使用命令firmwareShow命令,檢查FW版本是否一致swDir:admin> firmwareShowLocal CP
30、(Slot 6, CP1): ActivePrimary partition: v5.0.1Secondary Partition: v5.0.1Remote CP (Slot 5, CP0): StandbyPrimary partition: v5.0.1Secondary Partition: v5.0.1Note: If Local CP and Remote CP have different versions of firmware, please retry firmwaredownload command.swDir:admin>6. 使用firmwareDownload
31、 -s命令,只升級單獨某個CP Blade的微碼。7. 使用firmwareDownloadStatus命令,驗證微碼安裝是否成功。ZONE配置1. 概念zone configuration:為一組zone的集合。一個zone可以同時屬于不同的zone configuration之中。當(dāng)一個zone configuration生效時,屬于該zone configuration的所有zone都生效。創(chuàng)建zone配置基本步驟:創(chuàng)建alias -> 創(chuàng)建zone -> 創(chuàng)建zone configuration -> cfgSave -> cfgEnable2. 常用命令con
32、figUpload:備份zone configurationconfigDownload:恢復(fù)zone configuration3. 創(chuàng)建別名(1)aliCreate(2)cfgSaveswitch: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&
33、quot;, "4,6"switch:admin> cfgsaveYou are about to save the Defined zoning configuration. Thisaction will only save the changes on the Defined configuration.Any changes made on the Effective configuration will nottake effect until it is re-enabled.Do you want to save Defined zoning confi
34、guration only? (yes, y, no, n): no y4. 向別名中增加成員(1)aliAdd(2)cfgSaveswitch: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> cfgsaveYou are about
35、to save the Defined zoning configuration. Thisaction will only save the changes on the Defined configuration.Any changes made on the Effective configuration will nottake effect until it is re-enabled.Do you want to save Defined zoning configuration only? (yes, y, no, n): no y5. 刪除別名中的成員(1)aliRemove(
36、2)cfgSaveswitch: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> cfgsaveYou are about to save the Defined zoning configuration. Thisac
37、tion will only save the changes on the Defined configuration.Any changes made on the Effective configuration will nottake effect until it is re-enabled.Do you want to save Defined zoning configuration only? (yes, y, no, n): no y6. 刪除別名switch:admin> alidelete "array1"switch:admin> cfg
38、save7. 查看定義配置中的別名switch:admin> alishow "arr*"alias: array1 21:00:00:20:37:0c:76:8calias: array2 21:00:00:20:37:0c:66:238. 創(chuàng)建zoneswitch:admin> zonecreate "greenzone", "2,32; 2,33; 2,34; 4,4"switch:admin> zonecreate "redzone", "21:00:00:20:37:0c:66
39、:23; 4,3"switch:admin> zonecreate "broadcast", "1,2; 2,33; 2,34"switch:admin> cfgsave9. 向zone中增加設(shè)備switch:admin> zoneadd "greenzone", "1,2"switch:admin> zoneadd "redzone", "21:00:00:20:37:0c:72:51"switch:admin> zoneadd &q
40、uot;broadcast", "1,3"switch:admin> cfgsave10. 從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:ad
41、min> cfgsave11. 刪除一個zoneswitch:admin> zonedelete "redzone"switch:admin> cfgsave12. 查看當(dāng)前定義配置中的zone以下命令查看所有以字母A、B、C開頭的zoneswitch:admin> zoneshow "A-C*"zone: Blue_zone 1,1; array1; 1,2; array2zone: Bobs_zone 4,5; 4,6; 4,7; 4,8; 4,913. 創(chuàng)建zone配置switch:admin> cfgcreate "NEW_cfg", "redzone;
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 三方駕駛培訓(xùn)合作協(xié)議
- 長沙報關(guān)委托協(xié)議
- 汽車租賃合同范本大全
- 鋼筋運輸應(yīng)急預(yù)案協(xié)議
- 《Linux操作系統(tǒng)》課件-9.Linux軟件包管理
- 產(chǎn)品銷售周期趨勢報告表
- 基于物聯(lián)網(wǎng)技術(shù)的智能農(nóng)產(chǎn)品倉儲解決方案
- 電力行業(yè)清潔能源與智能電網(wǎng)方案
- 商砼站建設(shè)項目可行性研究報告
- 環(huán)境保護行業(yè)報告
- 中國國際航空內(nèi)蒙古有限公司2025屆空中乘務(wù)員航空安全員高校畢業(yè)生校園招聘筆試參考題庫附帶答案詳解
- 2025江蘇省安全員考試題庫附答案
- 4.2 明確概念的方法 課件高中政治統(tǒng)編版選擇性必修三邏輯與思維
- 2024年國網(wǎng)陜西省電力有限公司招聘筆試真題
- 2025年共同成立子公司的戰(zhàn)略合作協(xié)議書
- 安保部績效考核方案
- 2025年中國硫酸慶大霉素片行業(yè)市場深度分析及行業(yè)發(fā)展趨勢報告
- 2025年江蘇農(nóng)林職業(yè)技術(shù)學(xué)院高職單招職業(yè)技能測試近5年??及鎱⒖碱}庫含答案解析
- 2025年背光源導(dǎo)光板市場分析現(xiàn)狀
- 2025山東能源集團中級人才庫選拔高頻重點提升(共500題)附帶答案詳解
- 2025年度新股東增資擴股股權(quán)激勵與員工持股計劃協(xié)議3篇
評論
0/150
提交評論