戴尔博科交换机重要命令

管理博科交换机
*********************************************************************
1、连接PC与交换机
1.1 设置本机IP为10.77.77.77.* 网段255.255.255.0
1.2 连接PC与交换机
1.3 使用Putty/SecureCRT 用SSH方式连接10.77.77.77.端口22
1.4 用户名:admin 密码:password

2、常用命令
2.1 ipaddrshow 查看ip地址
2.2 ipaddrset 设置ip地址
2.3 version 查看OS信息
2.4 licenseadd 添加license授权信息
2.5 licenseshow 查看license授权信息(Fabric license)
2.6 password 修改密码
2.7 switchshow 查看交换机状态
2.8 switchstatusshow 查看设备健康状态
2.9 portshow 查看端口状态
2.10 sfpshow 查看sfp状态
2.11 configupload 将交换机配置保存到本地电脑
2.12 configdownload 将配置从本地恢复到交换机(需要switchdisable)
2.13 switchenable
2.14 switchdisable
2.15 supportshow 日志
2.16 porterrshow 显示所有端口错误率

  重点观察porterrshow里,crc g_eof 和 C3timeout (TX) 和PCS err有没有增长,errdump有没有新的报错。
2.17 fabricshow 显示交换机状态
2.18 portshow 2/15 显示端口详细信息(2是插槽号)
2.19 chassisshow 查看博科序列号

-----------------------------------------------------------------------------
uptime 显示交换机工作时间
ipaddrshow 显示交换机IP地址信息
licenseshow 显示交换机所添加的license信息
switchshow 检查交换机信息及端口状态
switchstatusshow 显示交换机的运行状态
firmwareshow 显示微码版本
fanshow 显示风扇运行状态
tempshow 显示交换机当前温度信息
psshow 显示电源运行状态
slotshow 显示板卡运行状态
hashshow 显示CP板卡HA状态
errdump 显示错误日志
fabricshow 显示fabric信息及级联信息
cfgshow 显示交换机配置信息
porterrshow 显示交换机端口的错误统计

  重点观察porterrshow里,crc g_eof 和 C3timeout (TX) 和PCS err有没有增长,errdump有没有新的报错。

chassisshow 显示外壳信息及序列号
version 查看版本
userconfig --show -a 查看登录账号
domainsshow 查看交换机的domain信息
aliashow 查看别名
chassisshow 显示chassis和wwn卡的状态
historyshow/historylastshow 显示历史日志消息

级联互ping:fcping --number 10000 --length 2036 --interval 1 10:00:00:05:33:9f:06:28
级联更改portcfglongdistance 0

备份:
  configuplocad
  Protocol(scp or ftp):ftp
  host:
  user name:
  filename:
  password:
恢复:
  switchdisable 停用交换机
  configdownload
  Protocol(scp or ftp):ftp
  Server Name or IP Address[host]:
  User Name[user]:
  File Name[config.txt]:config.txt
  ……
  Do you want to continue[y/n]:y
  Password:

设置IP
  ipaddrset
  Ethernet IP Address[10.77.77.77]:
  Ethernet Subnetmask[255.255.255.0]:
  Fibre Channel IP Address[none]:
  Fibre Channel Subnetmask[none]:
  Gateway IP Address[]:
  DHCP[on]

Zone配置示例:
创建别名
  alicreate "member1","1,1;1,2;1,3"
  alicreate "member2","1,2;1,3;1,4"
  alicreate "member3","1,3;1,4;1,5"
  alishow
  cfgsave

新建zone并添加端口
  zonecreate "zone1","member1;member2"
  zonecreate "zone2","1,1;1,7"
  zonecreate "zone3","member3;1,8"
  zoneshow
  cfgsave

添加zone
  zoneadd "zone1" "test1;test2"
  新建配置并添加zone
  cfgcreate "conf1","zone1;zone2;zone3"
  cfgshow
  cfgsave

添加zone至配置
  cfgadd "conf1","zone4;zone5;zone6"
  cfgsave
  cfgshow

启用配置
  cfgenable conf1

存储配置
  cfgsave
  alias别名
  alicreate "port01","0,1"

删除cfg

  IBM_2005_H16:admin>cfgremove "H16_cfg","vmtest"

  IBM_2005_H16:admin>cfgsave
  IBM_2005_H16:admin>cfgenable H16_cfg

删除zone
IBM_2005_H16:admin>zonedelete vmtest
-------------------------------------------------------------------


3、博科交换机重要命令
3.1改变admin账号密码
  switch:admin> passwd  
  Changing password for admin Enter new password: Re-type new password: Password  changed. 
  Saving password to stable storage. 
  Password saved to stable storage successfully.
3.2设置和查看管理IP地址
  ipaddrset
  ipaddrshow
3.3设置交换机名
  switchname MideaTsw ----交换机名设置为MideaTsw
  switchname ----查看当前交换机名称
3.4新建zone
  zonecreate "cpdtestzone","1,0;50,14" --50 Domain ID;14是交换机端口号
3.5删除zone
  zonedelete "testzone"
3.6新建一个配置(configuration)并指派zone
  cfgcreate "GDHospital","svripsql" ----新建一个GDHospital配置,并把zone svrisql指派给它
3.7激活一个配置(configuration)
  cfgenable "GDHospital"
3.8把zone指派给一个配置(Configuration)
  cfgadd "MideaJD01","cpdtestzone" ---把zonecpdtestzone指派给MideaJD01的配置(configuration)
3.9把zone从一个配置(Configuration)中移除
  cfgmove "GDHospital","svripsql"
3.10查看zone
  zoneshow
3.11查看Domain ID
  toplogyshow -----该交换机Domain ID :1。另一个交换机(连接到本交换机端口3),其Domian ID:500
  2 domains in the fabric:Local Domain ID:1
  Domain:  50 
  Metric:  500 
  Name:MideaJD
  Path Count:1

  Hops:1
  Out Port:3
  In Ports:5 6 7
  Total Bandwidth:2Gbps
  Bandwidth Demand:30%
  Flags:D
3.12设置Domian ID
  switchdisable
  configure
  Fabric parameters (yes, y, no, n): [no] y 
  Domain: (1..239) [1] 3 
  相应剩余提示
  switchenable
------------完整流程--------------
To set the domain ID 
1. Connect to the switch and log in as admin. 
2. Enter the switchdisable command to disable the switch. 
3. Enter the configure command. 
4. Enter y after the Fabric Parameters prompt:  
Fabric parameters (yes, y, no, n): [no] y  
5. Enter a unique domain ID at the Domain prompt. Use a domain ID value from 1 through 239  for normal operating mode (FCSW compatible). For example:  
Domain: (1..239) [1] 3  
6. Respond to the remaining prompts (or press Ctrl-d to accept the other settings and exit). 
7. Enter the switchenable command to reenable the switch


3.13 增加zone成员
  zoneadd "cpdtestzone","1,10" ---1是Domain ID,10是端口号
3.14 删除zone成员
  zoneremove "cpdtestzone","1,10" ---1是Domain ID,10是端口号
3.15 保存zone配置
  cfgsave
3.16 别名表示zone的成员
  凡是涉及到zone成员之外,都可以用“domian,port"形式来表示,也可用别名来标识。
3.17 定义别名
  alicreate "cdptest",”1,0"
3.18引用别名例
  zonecreate "cpdtestzone","cdptest;50,14"
  命令等同于
  zonecreate "cpdtestzone","1,0;50,14"
3.19查看别名
  alishow
3.20删除别名
  alidelete "test-alias"
3.21在现有SAN网络中增加一台新交换机时所要求的zone设置
  当一台新交换机连接到现有网络(Fabric)时,它会自动获取现有zone配置。
  在新交换机连接到网络之前,应当清除该交换机现有的zone配置(如果有的话),以免和现有Fabric的配置冲突。
3.22清除新交换机zone配置
  cfgclear
  cfgsave


特别说明:以上命令必须在新交换机连接到现有网络(Fabric)之前执行,否则将导致清楚整个网络的zone配置
另外:需要重启交换机或者cfgdisable关闭当前激活的zone配置

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

博科Brocade光纤存储交换机主要有以下系列产品型号,也就是常用的市场上存在的热销产品,其中包含:

第4代光纤通道:8Gb/s 端口带宽,博科Brocade 300系列

第5代光纤通道:16Gb/s 端口带宽,博科Brocade 6505系列,博科Brocade 6510系列,博科Brocade 6520系列

第6代光纤通道:32Gb/s 端口带宽,博科Brocade G610系列,博科Brocade G620系列,博科Brocade G630系列

Brocade博科交换机在SAN存储区域网络中的拓扑应用,详见下图:

 

e6f5cc66f5c67b469a2e542da6713cfe.png

 

71a8b89645846b80ebf1adae71f68123.png


————————————————
版权声明:本文为CSDN博主「永不言弃的小黑马」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/nizhengaisia/article/details/107384782

posted on 2022-05-16 22:23  林一木  阅读(2969)  评论(0编辑  收藏  举报

导航