当前位置:首页 > Brocade 光纤交换机常用命令
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 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命令,只升级单独某个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 \switch:admin>alicreate \switch:admin>alicreate \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 \switch:admin>aliadd \switch:admin>aliadd \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 \switch:admin>aliremove \switch:admin>aliremove \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 \switch:admin>cfgsave 7. 查看定义配置中的别名 switch:admin>alishow \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 \switch:admin>zonecreate \switch:admin>zonecreate \switch:admin>cfgsave 9. 向zone中增加设备 switch:admin>zoneadd \switch:admin>zoneadd \switch:admin>zoneadd \switch:admin>cfgsave 10. 从zone中删除设备 switch:admin>zoneremove \switch:admin>zoneremove \switch:admin>zoneremove \switch:admin>cfgsave 11. 删除一个zone
switch:admin>zonedelete \switch:admin>cfgsave
12. 查看当前定义配置中的zone
以下命令查看所有以字母A、B、C开头的zone switch:admin>zoneshow \
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 \switch:admin>cfgsave
14. 向zone配置成员中加入zone
switch:admin>cfgadd \switch:admin>cfgsave
15. 从zone配置成员中删除zone
switch:admin>cfgremove \switch:admin>cfgsave 16. 删除zone配置
switch:admin>cfgdelete \switch:admin>cfgsave 17. 撤销对zone配置的修改
命令cfgTransAbort将撤销所有未保存的修改,及恢复到上次执行cfgSave时的状态。
18. 查看zone配置信息
cfgShow不带任何参数:显示处于defined和effective状态的所有zone配置信息
switch:admin>cfgshow Defined configuration: cfg: USA1 Blue_zone
cfg: USA_cfgRed_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 \
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 \Updating flash ...
共分享92篇相关文档