Brocade光交命令手册.docx
《Brocade光交命令手册.docx》由会员分享,可在线阅读,更多相关《Brocade光交命令手册.docx(8页珍藏版)》请在冰豆网上搜索。
Brocade光交命令手册
第一章管理地址设置
一.1默认管理地址
Brocade光交默认管理地址为默认用户名密码为admin/password
也可以使用串口进行连接,波特率为9600
一.2更改管理地址
DS_300B_1:
admin>ipaddrset
EthernetIPAddress[Subnetmask[IPAddress[]:
[Off]:
一.3查看管理地址
DS_300B_1:
admin>ipaddrshow
SWITCH
EthernetIPAddress:
Subnetmask:
IPAddress:
Off
第二章ZONE基本命令
二.1alias命令
alias是可选项,对于软zone(wwnzone)来说是非常有必要配置的,它的主要作用就是对每一个wwn或者物理端口取一个别名
alicreate"aliName","member[;member...]"
如
alicreate"VNX5400_1_A0","50:
06:
01:
60:
09:
60:
12:
fd"
alicreate"VNX5400_1_B0","50:
06:
01:
68:
09:
60:
12:
fd"
alicreate"HIS01_HBA0","21:
00:
00:
24:
ff:
09:
c4:
29"
aliadd"aliName","member[;member...]"
假设HIS01的HBA0卡坏掉了,这个时候我们换了一块卡,就需要对其成员进行更新,先把新的WWN加进去,如
aliadd"HIS01_HBA0","21:
00:
00:
24:
ff:
09:
c4:
44"
aliremove"aliName","member[;member...]"
再比如把原先坏掉的HBA卡的WWN信息从alias里去除,如
aliremove"HIS01_HBA0","21:
00:
00:
24:
ff:
09:
c4:
29"
alidelete"aliName"
如果这个成员我们彻底不需要了,例如主机移除,如
alidelete"HIS01_HBA0"
二.2zone命令
zonecreate"zonename","member[;member...]"
假设我们需要让HIS01的HBA0能够访问VNX5400_1的SPA和SPB,如
zonecreate"HIS01_HBA0_VNX5400_1_A0","HIS01_HBA0;VNX5400_1_A0"
zonecreate"HIS01_HBA0_VNX5400_1_B0","HIS01_HBA0;VNX5400_1_B0"
和aliadd/aliremove的语法类似,zoneadd/zoneremove也是从一个ZONE里面加入一个成员或者移除一个成员,这里就不具体举例了
zonedelete"zonename"
假设我们这个时候不需要让HIS01能够访问存储了,我们就删除该Zone,实际上为了达到这个目的,不删除Zone也是可以的,只要让这个Zone不加入到CFG配置中去就可以了,这里只是为了演示如何删除。
另外多提一点,删除的Zone也必须从CFG中remove掉(cfgremove,如果已经加入到CFG中)
zonedelete"HIS01_HBA0_VNX5400_1_A0"
zonedelete"HIS01_HBA0_VNX5400_1_B0"
第三章CFG基本命令
cfgcreate"cfgName","member[;member]"
创建一个CFG,把ZONE加入进来,注意,1台交换机或者说1个Fabric(交换机级联的时候),当前只能有一个CFG生效,可以允许有多个CFG配置存在(一般也只建一个)
cfgcreate"CFG_A","HIS01_HBA0_VNX5400_1_A0"
cfgadd"cfgName","member[;member]"
再把其他需要生效的Zone加进来
cfgadd"CFG_A","HIS01_HBA0_VNX5400_1_B0"
cfgremove"cfgName,"member[;member...]"
如果发现加错了,也可以移除
cfgremove"CFG_A","HIS01_HBA0_VNX5400_1_B0"
(cfgsave)
cfgenable"cfgName"
CFG创建完成后或者进行修改后,保存并生效
cfgenable"CFG_A"
提示输入y,观察是否有报错
第四章常用维护命令
四.1switchname
四.2switchshow
查看光交基本信息,一般较多的用来看每个端口的设备连接WWN号
DS_300B_1:
admin>switchshow
switchName:
DS_300B_1
switchType:
switchState:
Online
switchMode:
Native
switchRole:
Principal
switchDomain:
1
switchId:
fffc01
switchWwn:
10:
00:
50:
eb:
1a:
ec:
26:
bd
zoning:
ON(CFG)
switchBeacon:
OFF
IndexPortAddressMediaSpeedStateProto
==============================================
00010000idN8OnlineFCF-Port50:
06:
01:
60:
09:
60:
12:
fd
11010100idN8OnlineFCF-Port50:
06:
01:
68:
09:
60:
12:
fd
22010200idN8OnlineFCF-Port50:
06:
01:
60:
09:
60:
18:
30
33010300idN8OnlineFCF-Port50:
06:
01:
68:
09:
60:
18:
30
44010400idN8OnlineFCF-Port21:
00:
00:
24:
ff:
91:
4a:
4a
55010500idN8OnlineFCF-Port21:
00:
00:
24:
ff:
91:
4a:
4b
66010600idN8OnlineFCF-Port21:
00:
00:
24:
ff:
91:
4d:
74
77010700idN8OnlineFCF-Port21:
00:
00:
24:
ff:
91:
4d:
75
88010800idN8OnlineFCF-Port21:
00:
00:
24:
ff:
09:
c4:
29
99010900idN8OnlineFCF-Port21:
00:
00:
24:
ff:
09:
c4:
44
1010010a00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
11:
76:
39
1111010b00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
11:
6b:
06
1212010c00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
11:
6a:
5d
1313010d00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
11:
6a:
e5
1414010e00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
09:
c4:
32
1515010f00idN8OnlineFCF-Port21:
00:
00:
24:
ff:
11:
6b:
09
1616011000idN8No_LightFC
1717011100idN8No_LightFC
1818011200idN8No_LightFC
1919011300idN8No_LightFC
2020011400idN8No_LightFC
2121011500idN8No_LightFC
2222011600idN8No_LightFC
2323011700idN8No_LightFC
四.3switchstatusshow
一般用来检查交换机的健康状态,包括电源、风扇、温度等
DS_300B_1:
admin>switchstatusshow
SwitchHealthReportReporttime:
04/10/201604:
37:
12PM
SwitchName:
DS_300B_1
IPaddress:
SwitchState:
HEALTHY
Duration:
1704:
42
PowersuppliesmonitorHEALTHY
TemperaturesmonitorHEALTHY
FansmonitorHEALTHY
FlashmonitorHEALTHY
MarginalportsmonitorHEALTHY
FaultyportsmonitorHEALTHY
MissingSFPsmonitorHEALTHY
FabricWatchisnotlicensed
Detailedportinformationisnotincluded
四.4porterrshow
用来查看光交端口是否有报错,是链路故障诊断中极为重要的命令
重点关注crcerr、discc3、linkfail、encout参数
其中encout参数一般有值是正常的,因为每次服务器重启或者光纤拔插都会引起数值增长,但是如果在正常运行时,值一直是上涨的,一般都是模块或者线有问题。
其它参数像crcerr和diskc3一般100以内可以接受,到几k或者几m的话是一定要换光纤线(偶尔也有模块坏掉的情况,一般都是劣质光纤线造成的,OM1的或者是假冒的OM3光纤)
statsclear
清零计算器
四.5licenseshow
licenseidshow
查看光交日志
DS_300B_1:
admin>licenseshow
GmXLgE4AYtmXNm4ESt7FEPPFG7NSYTQWBANBD:
Fabriclicense
GYDXm7D3GGGCWNGC7DSaKLGfPJFmHKBZBANfN:
EnhancedGroupManagementlicense
fCF9BrEEDXKN9C4aN979TWF9HEAW7KJHBJB3M:
8GigFClicense
GZZQNaMSXHLHXrWTMHXQ7PNJGK4ff4ZFBAt7P:
SecondPortsonDemandlicense-additional8portupgradelicense
FGgMLAfHXCQKK4GrWYPF4LAYaKRrSrWQBJK3J:
FullPortsonDemandlicense-additional16portupgradelicense
四.6chassisshow
DS_300B_1:
admin>chassisshow
POWERSUPPLYUnit:
1
TimeAwake:
70days
FANUnit:
1
TimeAwake:
70days
FANUnit:
2
TimeAwake:
70days
FANUnit:
3
TimeAwake:
70days
CHASSIS/WWNUnit:
1
HeaderVersion:
2
FactoryPartNum:
40-1000165-14
FactorySerialNum:
ALJ1947L0BD
Manufacture:
Day:
21Month:
9Year:
2015
Update:
Day:
10Month:
4Year:
2016
TimeAlive:
70days
TimeAwake:
70days
ID:
EMC0000CA
PartNum:
CONTRX0000300
SerialNum:
BRCALJ1947L0BD
四.7supportshow
收集系统日志,这里不贴出来了