博科SAN Switch 命令行配置

合集下载

Brocade光纤交换机常用命令

Brocade光纤交换机常用命令

标签:?2013-12-24 10:19?2062人阅读?(0)???分类:SanIBM的双机双柜,两光纤交换机分别引一根光纤到另一楼光纤交换机,插上无反应,后得知需要更改交换机的domain id 默认出厂为1。

需改为不同号。

下面是博科的交换机命令转。

Brocade SAN交换机常用命令默认用户名:admin,默认密码password1. switchStatusShow查看交换机的总体健康状态switch:admin> switchstatusshowSwitch Health ReportSwitch Name: SWFCRSwitchState: MARGINALDuration: 863:23Power supplies monitor MARGINALTemperatures monitor HEALTHYFans monitor HEALTHYWWN servers monitor HEALTHYStandby CP monitor HEALTHYBlades monitor HEALTHYFlash 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 - 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.13. slotShow查看各个Blade的状态14. portCfgSpeed修改端口的速率15. portEnable或portCfgPersistentEnable4. 重新启用交换机输入命令swichEnable升级FirmwareFC10-6 Blade需要Firmware Version 以上FC4-16IP Blade、FC4-48 Port Blade需要Firmware Version 以上FR4-18i router blade需要Firmware Version 以上如果M48有主备Control Processor,且主备CP处于synchronized状态,则升级过程可在线进行,不干扰数据流量。

博科Brocade交换机配置

博科Brocade交换机配置

设置博科Brocade交换机IP地址博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换机的IP地址进行设置和修改swd77:admin> ipaddrsetEthernet IP Address [10.77.77.77]: #输入交换机需要设置的IP地址Ethernet Subnetmask [255.255.255.0]: #输入掩码Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Gateway IP Address [none]: # 输入网关DHCP [Off]: #是否开启DHCPswd77:admin>一般情况下只需要设置Ethernet 的IP和掩码就可以了,这个IP地址主要是用来对交换机进行管理设置。

Brocade SAN交换机的几种管理方法为了对SAN网络进行管理,Brocade公司了丰富的管理工具,来适应不同场景下对SAN 网络的管理。

Telnet交换机管理的最基本方法,通过命令行的方式直接登录到交换机上,通过交换机上操作系统(Fabric OS)提供的命令对交换机作管理工作。

能完成对单台交换机管理的所有功能,对操作者对管理命令非常熟悉。

不适合非专业人士使用。

WEB TOOLS图形界面的管理工具,通过浏览器对交换机完成管理工作。

视觉效果比Telnet好很多,并且在性能监视时能提供多种视图。

能完成对单台交换机管理的大多数功能,适合大多数用户使用。

Fabric Manager对SAN网络中的交换机进行批量管理的工具。

能对SAN网络中的多台交换机,在一个管理站一次性的完成管理工作。

方便SAN网络的统一管理。

SNMP 网络管理的标准协议在Brocade交换机上运行有SNMP模块,让网络中的SNMP管理工作站对SAN网络完成管理工作。

通过管理工具,能完成对整个SAN网络的监视,但能修改的参数有限。

C 系列光纤交换机 - Cisco MDS san switch 中常用的命令

C 系列光纤交换机 - Cisco MDS san switch 中常用的命令

C 系列光纤交换机- Cisco MDS san switch 中常用的命令1. 通过以下命令可以查看接口信息:Cisco9124e# show interface brief-------------------------------------------------------------------------------Interface Vsan Admin Admin Status SFP Oper Oper PortMode Trunk Mode Speed ChannelMode (Gbps)------------------------------------------------------------------------------- bay1 2 auto on up -- F 4 -- bay2 1 auto on extDisabled -- -- -- bay3 1 auto on down -- -- -- bay4 1 auto on extDisabled -- -- -- bay5 1 auto on extDisabled -- -- -- bay6 1 auto on extDisabled -- -- -- bay7 1 auto on extDisabled -- -- -- bay8 1 auto on extDisabled -- -- -- bay9 1 auto on extDisabled -- -- -- bay10 1 auto on extDisabled -- -- -- bay11 1 auto on down -- -- -- bay12 1 auto on extDisabled -- -- -- bay13 1 auto on extDisabled -- -- -- bay14 1 auto on extDisabled -- -- -- bay15 1 auto on extDisabled -- -- -- bay16 1 auto on extDisabled -- -- ---------------------------------------------------------------------------------Interface Vsan Admin Admin Status SFP Oper Oper PortMode Trunk Mode Speed ChannelMode (Gbps)------------------------------------------------------------------------------ ext1 2 auto on up swl FL 4 -- ext2 2 auto on up swl FL 4 -- ext3 1 auto on sfpAbsent -- -- -- ext4 1 auto on sfpAbsent -- -- -- ext5 1 auto on sfpAbsent -- -- -- ext6 1 auto on sfpAbsent -- -- -- ext7 1 auto on sfpAbsent -- -- -- ext8 1 auto on sfpAbsent -- -- --------------------------------------------------------------------------------- Interface Status Speed(Gbps)------------------------------------------------------------------------------- sup-fc0 up 1 ------------------------------------------------------------------------------- Interface Status IP Address Speed MTU------------------------------------------------------------------------------- mgmt0 up 16.157.125.51/22 100 Mbps 15002. 查看VSAN的情况:Cisco9124e# show fcdomain domain-listVSAN 1 Number of domains: 1Domain ID WWN--------- -----------------------0x64(100) 20:01:00:0d:ec:80:f6:c1 [Local] [Principal]VSAN 2 Number of domains: 1Domain ID WWN--------- -----------------------0x11(17) 20:02:00:0d:ec:80:f6:c1 [Local] [Principal]3. 查看zone的配置:Cisco9124e# show zone status vsan 1VSAN: 1 default-zone: deny distribute: active only Interop: default mode: basic merge-control: allowsession: nonehard-zoning: enabled broadcast: unsupportedDefault zone:qos: none broadcast: unsupported ronly: disabledFull Zoning Database :DB size: 4 bytesZonesets:0 Zones:0 Aliases: 0Active Zoning Database :Database Not AvailableStatus:Cisco9124e# show zone status vsan 2VSAN: 2 default-zone: permit distribute: active only Interop: default mode: basic merge-control: allowsession: nonehard-zoning: enabled broadcast: unsupportedDefault zone:qos: none broadcast: unsupported ronly: disabledFull Zoning Database :DB size: 4 bytesZonesets:0 Zones:0 Aliases: 0Active Zoning Database :Database Not Available Status:4. 配置zone:Cisco9124e# conf tEnter configuration commands, one per line. End with CNTL/Z. Cisco9124e(config)# zone name zone2 vsan 2Cisco9124e(config-zone)# member fwwn 20:10:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0a:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0e:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# exitCisco9124e(config)# zoneset name zoneset2 vsan 2Cisco9124e(config-zoneset)# member zone2Cisco9124e(config-zoneset)# exitCisco9124e(config)# zoneset activate name zoneset2 vsan 2 Zoneset activation initiated. check zone statusCisco9124e(config)# exitCisco9124e# show zoneset activezoneset name zoneset2 vsan 2zone name zone2 vsan 2* fcid 0x110200 [fwwn 20:10:00:0d:ec:80:f6:c0]* fcid 0x1100ef [fwwn 20:0a:00:0d:ec:80:f6:c0]* fcid 0x1101ef [fwwn 20:0e:00:0d:ec:80:f6:c0]zone name $default_zone$ vsan 2Cisco9124e#。

博科光纤交换机san siwtch用命令创建zone

博科光纤交换机san siwtch用命令创建zone

Zoning的配置主要途径有两种:Telnet和WEB方式。

Zoning的配置可以动态的进行,当使用cfgenable指定某个配置成为生效的配置后,Zoning的配置会立即在SAN网络中生效,隔离Zone间的相互访问。

在交换机上新创建Zoing的配置一般会按如下的方式进行:alicreate在创建Zoning的配置时,可以首先创建Alias,为需要划分Zone的设备都创建一个别名。

一个Alias中可以同时有多个设备作为它的成员。

当然我们也可以不配置Aliaszonecreate创建Zone,并使用Alias作为Zone的成员,创建Zone应该遵循每个Zone中只有一个Initiator的原则,这里的initiator可以是主机中的HBA卡的WWN或者是它连接到交换机的端口cfgcreate所有的Zone都创建完成后,需要创建Configuration,把需要同时存在的Zone放在一个Configuration中,根据需要可以创建多个Configuration存储不同场景下Zone的配置方案cfgenable在创建了一个或多个Configuration后,这些配置都还没有生效,这里我们需要用cfgenable 命令指定一个Configuration配置,使其生效cfgsave上面做的所有Zone的配置只是临时保存在内存中,一旦交换机重新启动,配置会丢失。

我们可以使用cfgsave命令把内存中Zone的配置保存到Flash中,长时间保留此外,Zoning配置中使用的名字都是大小写敏感的,比如“zone0”和“ZONE0”是不同的名字。

Zoning的配置示例—创建Members– alicreate “EngHost1”, “1,2”– alicreate “EngStor”, “s1wwn;s2wwn”– alicreate “Mkt”, “1,4;s5wwn;s4wwn”—创建Zones– zonecreate “Zone0”,"1,1;1,2;1,3”– zonecreate “Zone1”,"1,4;1,5;1,6”– zonecreate “ZoneEng”,"EngHost1;EngStor”– zonecreate “ZoneMkt”,"Mkt”—创建Configurations– cfgcreate “cfg1”, "Zone0;Zone1”– cfgcreate “cfgEngMkt”, "ZoneEng;ZoneMkt”—选用配置、存储配置– cfgenable “cfg1”– cfgsave修改zone成员—增加s3到zoneMkt– aliAdd “mkt”, “s3wwn”– ZoneAdd “ZoneMkt”, “s3wwn”– cfgEnable “cfgEngMkt”– cfgSave在进行Zone的配置时,应该注意下面的问题:1.Zone的配置可以动态完成,当某个Configuration被激活了后,它的Zone的配置马上会在SAN网络中生效。

BrocadeSAN交换机常用配置操作指南

BrocadeSAN交换机常用配置操作指南

BrocadeSAN交换机常用配置操作指南介绍本文档主要为大家介绍Brocade交换机常见配置操作指南。

主要内容包括:交换机命名、交换机时间配置和NTP同步、交换机状态检查、交换机启用和禁用、交换机关机操作。

更多信息自定义交换机名称:1. 使用admin用户登录交换机2. 输入switchname命令,后面加一个交换机名称。

Switch:admin> switchname newname检查交换机状态:1.使用admin用户登录交换机2.输入switchshow命令查看交换机所有端口状态3.输入switchstatusshow命令产看交换机整体状态自定义机柜名字:Brocade推荐客户为每个交换机平台自定义好机柜名字。

部分交换机日志通过机柜名字来区分设备,分配一个合理的机会名字,更有助于分析交换机日志。

所有机柜名字最长不超过15个字符,Brocade 300,5100,5300,VA-40DC,5410,5424,5450和5480这些除外(这些最长长度31个字符)。

机柜名字必须以字母开头,可以包含字母,数字,下划线。

操作步骤如下:1. 使用admin用户登录交换机2. 输入chassisname命令switch:admin> chassisname newname自定义Fabric名字:Fabric名字和fabric ID 一样用于识别和管理一个逻辑的fabric。

Fabric名字方便记忆,每个fabric名字和一个 Fabric ID关联。

Fabric 名字和fabric ID不冲突,分配fabric名字应注意以下事项:每个fabric名字在机柜里面必须不能重复。

Fabric名字长度范围是1-128个数字或者字母所有交换机配置fabric名字要求微码版本在v7.0.0及以上。

Fabric里面可以拥有早前微码版本的交换机,但是fabric名字不会再v7.0.0以前微码上显示出来。

配置fabric名字必须要求admin权限。

博科BrocadeSAN交换机常用命令

博科BrocadeSAN交换机常用命令

博科BrocadeSAN交换机常用命令博科Brocade SAN交换机通用命令1。

查看IP地址命令............................................................................................................2 2.查看固件版本.......................................................................................................2 3.查看开关状态 (2)4.查看交换机许可证-id........................................................................................35.配置ZONE........................................................................................................... .......36.查看区域配置文件.................................................................................................………47.查看区域..................................................................................................................5 8.检查系统日志信息...................................................................................................6 9.停工.................................................................................................................. ................6 10.设置博科锦交换机的IP地址.............................................................................6 11.博科brocade交换机查看操作系统版本信息.................................................................6 12.锦缎交换机添加许可证授权信息 (7)13.查看锦缎交换机许可证授权信息..........................................................7 14.Brocade Slikworm 300交换机许可证......................................................7 15.博科锦缎交换机密码更改命令..........................................................................7 16.博科锦缎交换机密码重置..................................................................................7 17.登录后,使用passwddefault命令恢复出厂密码................................................9 18.交换机升级..................................................................................................................9 19.帮助信息 (13)1。

Brocade_300

Brocade_300
要进行购买。ຫໍສະໝຸດ 三、更改Domain ID
光纤交换机默认Domain ID均为1,在做级联前需要将其中一台设备 Domain ID改为其他值(非1,否则将会冲突,连接后指示灯将慢速闪烁)。
1、通过管理端口登录到交换机管理页面; 2、点击“Switch Admin”,如下图所示:
3、准备更改Domain ID,按下图操作:
or Factory password will result in fabric downtime. for user - root Changing password for root Enter new password: Password unchanged. 略去输出信息....
现如下信息: Warning: Access to the Root and Factory accounts may be required
for proper support of the switch. Please ensure the Root and Factory
passwords are documented in a secure location. Recovery of a lost Root
4、更改Domain ID,按下图操作:
配置Zone
登录Web控制台,单击打开 “Zone Admin”,→“ New” → “New Zone”, 如下图
输入zone名称,vsphere3,再点击 Zone Config , 如下图
把vsphere3加入到成员中,然后点击“Enable Config”
给vsphere3添加成员,HBA卡的WWN号,然后保存,启用即可
常用命令

SAN交换机常用命令

SAN交换机常用命令

SAN交换机常用命令brocadesan交换机常用命令使用电脑连接管理网口,默认ip地址为:10.77.77.77,掩码:255.255.255.0预设用户名:admin,预设密码password1.switchstatusshow查阅交换机的总体身心健康状态2.switchshow查阅交换机基本布局信息3.portshow4.fanshow5.psshow查阅交换机的电源状态6.tempshow7.errdump、errshow、errclear查看交换机的内部消息日志8.supportshow、supportsave、pdshow收集交换机的诊断数据9.nsshow、nsallshow、fabricshow10.licenseshow、wwn检查license文件和交换机的wwn号11.version12.hashow查阅controlblade的状态13.slotshow查阅各个blade的状态14.portcfgspeed修正端口的速率15.portenable或portcfgpersistentenablereset端口16.检查wwn卡状态以下命令如果无法恰当继续执行,则表明wwn卡须要更改:chassisshow:显示chassis和wwn卡的状态ipaddrshow,ipaddrset:表明cpblades的ip地址historyshow、historylastshow:显示历史日志信息switchname:表明交换机的名字修改domainid1.查阅当前的domainid输入命令fabricshow,输出结果中的switchid即包括交换机的domainid。

2.先停用交换机输入命令swichdisable3.布局domainid输入命令configure4.再次投入使用交换机输入命令swichenable升级firmwarefc10-6blade需要firmwareversion5.3以上fc4-16ipblade、fc4-48portblade须要firmwareversion5.2以上fr4-18irouterblade需要firmwareversion5.1以上如果m48存有主备controlprocessor,且主备cp处在synchronized状态,则升级过程可以在线展开,不阻碍数据流量。

博科交换机划zone简单配置

博科交换机划zone简单配置

1博科光纤交换机划zone应用对象:博科光纤交换机,光纤交换模块将一条链路上的所有设备对应端口划在同一zone里,保存链路畅通,具体步骤如下:关于SAN Switch Zone设置,请登录SAN Switch命令行界面。

SAN Switch管理口IP为10.77.77.77,用户名为admin,密码为password1.进入命令行界面后,请首先设置别名命令格式为alicreate “aliName”, “member[; member...]”例如,alicreate “zonetest”,”1,10; 1,11; 1,12”,即设置别名zonetest,其中包含Domain ID 为1的光纤交换机上的10,11,12三个光纤口。

如不确认光纤交换机的Domain ID,可输入命令switchshow,先确认一下。

2.创建Zone命令格式为zonecreate "zonename", "member[; member...]"例如,zonecreate “zonestore”,”zonetest”,即创建Zone,Zone名称为zonestore,包含zonetest。

3.创建配置文件命令格式为cfgcreate "cfgName", "member[ ;member...]"例如,cfgcreate “cfgstore”,”zonestore”,即创建配置文件cfgstore,包含zonestore。

4.选用配置命令格式为cfgenable "cfgName"例如,cfgenable “cfgstore”,即启用配置配置文件cfgarray,输入后会提示确认启用配置文件,输入yes确认。

5.保存配置cfgsave,保存zone设置,根据提示,输入yes确认保存配置。

6.查看Zone配置完成后,可输入zoneshow,查看zone配置。

博科交换机配置命令

博科交换机配置命令

光纤交换机常用操作命令,下面以博科(Brocade)的光纤交换机操作说明,IBM和HP的光纤交换机都是OEM博科的,操作命令类似。

uptime 显示交换机工作时间ipaddrshow 显示交换机IP地址信息licenseshow 显示当前交换机所添加的license信息switchshow 检查交换机信息及端口状态switchstatusshow 显示交换机的运行状态firmwareshow 显示微码版本fanshow 显示风扇运行状态tempshow 显示交换机当前温度信息psshow 显示电源运行状态slotshow 显示板卡运行状态hashshow 显示CP版卡HA状态,errdump 显示错误日志fabricshow 显示fabric信息及级联信息cfgshow 显示交换机配置信息porterrshow 显示交换机端口的错误统计chassisshow 显示外壳信息及序列号version 相看版本userconfig --show -a 查看登录帐号domainsshow 查看交换机的domain信息aliashow 查看别名级联互ping:fcping --number 10000 --length 2036 --interval 1 10:00:00:05:33:9f:06:28级联更改portcfglongdistance 0备份configupload ["host","user","file"[,"passwd"]]configuplocadProtocol (scp or ftp):ftphost:user name:filename:password:恢复switchdisable 停用交换机configdownloadProtocol (scp or ftp):ftpServer Name or IP Address [host]:User Name [user]:File Name [config.txt]:config.txt.........Do you want to continue [y/n]:yPassword:设置IPipaddrsetEthernet IP Address [10.77.77.77]:Ethernet Subnetmask [255.255.255.0]:Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Gataway IP Address []:DHCP [OZone配置示例:创建别名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划分zonezonecreate "zone1","member1;member2" zonecreate "zone2","1,1;1,7"zonecreate "zone2","member3;1,8"zoneshow将zone添加到配置中cfgcreate "conf1","zone1;zone2;zone3"cfgshow启用配置cfgenable conf1存储配置cfgsave删除cfgIBM_2005_H16:admin> cfgRemove "H16_cfg","vmtest" IBM_2005_H16:admin> cfgsaveIBM_2005_H16:admin> cfgenable H16_cfg删除zoneIBM_2005_H16:admin> zonedelete vmtest删除ali设置Domain ID 以admin用户登录交换机switch:admin> switchdisableswitch:admin>configure提示输入Domain ID时,输入新ID,继续配置其他参数或者Ctrl+D不改变其他参数Switch:admin>switchenable/link?url=uV9Lxd_f3f95t6MRYxmV6EqDdUwuwk7QzDuqieBCcH8djolAJL _bt_1OyYY60HjWlrwIL7mUN_egw7dZftXMyglKmbfx39SafBY43K9jXdC。

博科BROCADE交换机配置详细

博科BROCADE交换机配置详细

与交换机交互,可以使用三种方式:串口以太网口光纤口缺省的串口参数是:9600,N,8,1缺省IP访问方式是:IP地址:用户名:admin密码:password时区:Pacific time交换机名称:switch可使用ipAddrSet命令来重新设置交换机的IP地址。

在2000和3000系列交换机之中,只能同时支持一个Telnet进程。

Brocade的交换机可以使用命令行和图形界面方式进行管理。

代表性的CLI方法代表性的如:Telnet,HyperTerm和tip。

对于Fabric OS v4.1,SSH v2可以被使用。

如果Brocade Secure Fabric OS被设置有效,CLI 接口必须是Brocade Secure Telnet.Brocade API v2.1提供给用户扩展访问到交换机的方法;可以轻松的整合Brocade SAN Fabric 的智能到已经存在的管理应用中,或者快速的开发用户SAN的特殊功能。

该工具包可以通过Brocade Connect 站点获得。

Brocade Fabric Manager v4.0 是一个实时管理多台Brocade 光纤交换机的很好的一个工具,它提供了有效的配置、监控、动态资源分配管理。

Brocade Web Tool是一个直观简单的管理小型SAN网络的管理工具。

运行支持JRE的Web Browser上。

Brocade 提供基于SNMP的MIBs用来在交换机上读和配置公共设置。

串口管理:n一条串口连接电缆DB9 (female-to-female)n使用超级终端或UNI*终端n Windows: Hyper Terminaln UNI*: tipu Microsoft Windows® 环境之中–传输速率: 9600bit/sec–数据位: 8–校验位: None–停止位: 1–流控制: Noneu UNI*® 环境下, 输入以下命令* tip /dev/ttyb –9600u安装步骤1. 通过串口线将两者进行连接2. 确保交换机已经加电3. 通过ipAddrSet命令设置IP地址(注意: 命令是大小写敏感,但是全大写或全小写也可。

Brocade-SAN交换机配置

Brocade-SAN交换机配置

Brocade-SAN交换机配置BROCADE交换机配置BROCADE交换机配置一与交换机交互,可以使用三种方式:w串口w以太网口w光纤口缺省的串口参数是:9600,N,8,1缺省IP访问方式是:IP地址:10.77.77.77用户名:admin密码:password时区:Pacific time交换机名称:switch可使用ipaddrset命令来重新设置交换机的IP地址。

在2000和3000系列交换机之中,只能同时支持一个Telnet进程。

Brocade的交换机可以使用命令行和图形界面方式进行管理。

代表性的CLI方法代表性的如:T elnet,HyperTerm和tip。

对于Fabric OS v4.1,SSH v2可以被使用。

如果Brocade Secure Fabric OS被设置有效,CLI 接口必须是Brocade Secure Telnet.Brocade API v2.1提供给用户扩展访问到交换机的方法;可以轻松的整合Brocade SAN Fabric 的智能到已经存在的管理应用中,或者快速的开发用户SAN的特殊功能。

该工具包可以通过Brocade Connect 站点获得。

Brocade Fabric Manager v4.0 是一个实时管理多台Brocade 光纤交换机的很好的一个工具,它提供了有效的配置、监控、动态资源分配管理。

Brocade Web Tool是一个直观简单的管理小型SAN网络的管理工具。

运行支持JRE的Web Browser上。

Brocade 提供基于SNMP的MIBs用来在交换机上读和配置公共设置。

串口管理:n 一条串口连接电缆DB9 (female-to-female)n 使用超级终端或UNIX终端n Windows: Hyper Terminaln UNIX: tipu Microsoft Windows?环境之中–传输速率: 9600bit/sec–数据位: 8–校验位: None–停止位: 1–流控制: Noneu UNIX?环境下, 输入以下命令# tip /dev/ttyb –9600u 安装步骤1. 通过串口线将两者进行连接2. 确保交换机已经加电3. 通过ipaddrset命令设置IP地址(注意: 命令是大小写敏感,但是全大写或全小写也可。

Brocade 光纤交换机常用命令

Brocade 光纤交换机常用命令

2013-12-24 10:19 2062人阅读评论(0) 收藏举报分类:San11. 删除一个zoneswitch:admin>zonedelete "redzone"switch:admin>cfgsave12. 查看当前定义配置中的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. 创建zone配置switch:admin>cfgcreate "NEW_cfg", "redzone; bluezone; greenzone" switch:admin>cfgsave14. 向zone配置成员中加入zoneswitch:admin>cfgadd "newcfg", "bluezone"switch:admin>cfgsave15. 从zone配置成员中删除zoneswitch:admin>cfgremove "NEW_cfg", "redzone"switch:admin>cfgsave16. 删除zone配置switch:admin>cfgdelete "testcfg"switch:admin>cfgsave17. 撤销对zone配置的修改命令cfgTransAbort将撤销所有未保存的修改,及恢复到上次执行cfgSave时的状态。

18. 查看zone配置信息cfgShow不带任何参数:显示处于defined和effective状态的所有zone配置信息switch:admin>cfgshowDefined configuration:cfg: USA1 Blue_zonecfg: USA_cfgRed_zone; Blue_zonezone: Blue_zone1,1; array1; 1,2; array2zone: Red_zone1,0; loop1alias: array1 21:00:00:20:37:0c:76:8c; 21:00:00:20:37:0c:71:02alias: array2 21:00:00:20:37:0c:76:22; 21:00:00:20:37:0c:76:28alias: loop1 21:00:00:20:37:0c:76:85; 21:00:00:20:37:0c:71:df Effective configuration:cfg: USA_cfgzone: Blue_zone1,121:00:00:20:37:0c:76:8c21:00:00:20:37:0c:71:021,221:00:00:20:37:0c:76:2221:00:00:20:37:0c:76:28zone: Red_zone1,021:00:00:20:37:0c:76:8521:00:00:20:37:0c:71:df19. 保存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 effectUpdating flash ...。

Brocade博科交换机划Zone实例解析,san switch问题解决方案

Brocade博科交换机划Zone实例解析,san switch问题解决方案

#ioscan –fnCfc硬件路径为*/0.0.1.6.* 1为FC Switch的ID,6为Port 6,两个交换机会有两个1.6#xpinfo > xpinfo.txt#strings /etc/lvmtab | grep c10 (举例)#tdutil /dev/td0 看光纤卡网线连接登录Brocade交换机DOS>arp –d 清mac地址DOS>telent 10.77.77.77登录第一台Brocade交换机Switch(DOWN)在下面那台zonecreate "lk_zone", "1,0;1,1;1,2;1,3;1,6;1,7;1,8"zonecreate "dzhd_zone","1,13;1,19;1,23"zonecreate "jj_zone","1,8;1,10;1,11"zonecreate "tape_zone","1,0;1,1;1,2;1,3;1,10;1,11;1,13;1,23;1,15"zonecreate "lssj_zone","1,24;1,25;1,26"zoneshowcfgcreate "cfg1","lk_zone;dzhd_zone;jj_zone;tape_zone;lssj_zone"cfgshowcfgsavecfgenable "cfg1"网线连接登录Brocade交换机DOS>arp –d 清mac地址DOS>telent 10.77.77.77登录第二台Brocade交换机Switch(UP)在上面那台zonecreate "lk_zone", "1,0;1,1;1,2;1,3;1,6;1,7;1,8"zonecreate "dzhd_zone","1,13;1,19;1,23"zonecreate "jj_zone","1,8;1,10;1,11"zonecreate "tape_zone","1,0;1,1;1,2;1,3;1,10;1,11;1,13;1,23;1,15"zonecreate "linux_zone","1,9;1,20;1,21"zonecreate "lssj_zone","1,24;1,25;1,26"zoneshowcfgcreate "cfg1","lk_zone;dzhd_zone;jj_zone;tape_zone;linux_zone;lssj_zone"cfgshowcfgsavecfgenable "cfg1"====================================================================================== 为原有zone加入新成员Switch(UP)zoneadd "dzhd_zone","1,25;1,26;1,28;1,29"cfgsavecfgenable "cfg1"Switch(DOWN)zoneadd "dzhd_zone","1,25;1,26;1,28;1,29"cfgshowcfgsavecfgenable "cfg1"实际SAN环境端口连接情况如下:0.带库switch(up) port 15switch(down) port 151.绿卡储蓄XP 1A,2A C18(1.6),C19(1.6)XP 1B,2B C20(1.7),C24(1.7)XP 1C,2C C21(1.8),C26(1.8)1D,2D C6(1.9)-15(1.9),C10(1.9)-22(1.9)lk0a:td3(2/0/14/0/0)(front slot 6). switch (up) port0 td1(0/0/6/0/0)(rear slot 5). switch (up) port1td2(2/0/4/0/0)(front slot 4). switch (down) port0 td0(0/0/4/0/0)(rear slot 4). switch (down) port1lk0b:1A,2A C23(1.6),C25(1.6)1B,2B C24(1.7),C26(1.7)1C,2C C27(1.8),C28(1.8)1D,2D C6(1.9)-15(1.9),C10(1.9)-19(1.9)lk0b:td3(2/0/14/0/0)(front slot 6). switch (up) port2 td1(0/0/14/0/0)(rear slot 6). switch (up) port3 td2(2/0/4/0/0)(front slot 4). switch (down) port2 td0(0/0/6/0/0)(rear slot 5). switch (down) port32.基金中心XP 1C, C10(1.8). switch(up) port 8XP 2C, C11(1.8). switch(down) port 8yzjj1:/dev/td0(1/0/2/1/0)(slot 7). switch(down) port10/dev/td1(1/0/4/1/0)(slot 6). switch(up) port10/dev/td3yzjj2:/dev/td0(1/0/2/1/0)(slot 7). switch(down) port11/dev/td1(1/0/4/1/0)(slot 6). switch(up) port11/dev/td2/dev/td33.电子汇兑P650-2-2. switch(down) port13P650-1-2. switch(down) port 23P650-1-1. switch(up) port 23P650-2-1. switch(up) port 13XP 3a. switch(up) port 19XP 4a. switch(down) port 19附录:switchshowSwitch(UP)swd77:admin> switchshowswitchName: swd77switchType: 12.4switchState: OnlineswitchMode: NativeswitchRole: PrincipalswitchDomain: 1switchId: fffc01switchWwn: 10:00:00:60:69:90:54:73zoning: OFFswitchBeacon: OFFPort Media Speed State=========================0 id N2 Online F-Port 50:06:0b:00:00:11:94:b0(HP主机)1 id N2 Online F-Port 50:06:0b:00:00:23:b7:b82 id N2 Online F-Port 50:06:0b:00:00:23:b9:c23 id N2 Online F-Port 50:06:0b:00:00:23:b9:c44 id N2 No_Light5 id N2 No_Light6 id N2 Online F-Port 50:06:0e:80:03:51:95:10(XP存储)7 id N2 Online F-Port 50:06:0e:80:03:51:95:118 id N2 Online F-Port 50:06:0e:80:03:51:95:129 id N2 Online L-Port 1 private, 9 phantom(有问题,L-Port为直连方式,需在XP上把该port类型改为Fabri c“ON”状态,现已改好)10 id N2 Online F-Port 50:06:0b:00:00:25:5c:c411 id N2 Online F-Port 50:06:0b:00:00:25:5c:ba12 id N2 No_Light Disabled13 id N2 Online F-Port 10:00:00:00:c9:3d:c7:e1(IBM主机)14 id N2 No_Light15 id N2 Online F-Port 10:00:00:e0:02:22:6c:5516 id N2 No_Light17 id N2 No_Light19 id N2 Online F-Port 50:06:0e:80:03:51:95:3020 id N2 Online F-Port 21:00:00:e0:8b:0e:00:28(Linux)21 id N2 Online F-Port 21:00:00:e0:8b:0e:15:2822 id N2 No_Light23 id N2 Online F-Port 10:00:00:00:c9:3d:66:6a24 -- N2 No_Module25 -- N2 No_Module26 -- N2 No_Module27 -- N2 No_Module28 -- N2 No_Module29 -- N2 No_Module30 -- N2 No_Module31 -- N2 No_ModuleSwitch(DOWN)swd77:admin> switchshowswitchName: swd77switchType: 12.4switchState: OnlineswitchMode: NativeswitchRole: PrincipalswitchDomain: 1switchId: fffc01switchWwn: 10:00:00:60:69:90:1c:a5zoning: OFFswitchBeacon: OFFPort Media Speed State=========================0 id N2 Online F-Port 50:06:0b:00:00:23:b7:d8(HP主机)1 id N2 Online F-Port 50:06:0b:00:00:23:b7:ca2 id N2 Online F-Port 50:06:0b:00:00:23:b9:b83 id N2 Online F-Port 50:06:0b:00:00:23:b9:d44 id N2 No_Light5 id N2 No_Light6 id N2 Online F-Port 50:06:0e:80:03:51:95:00(XP存储)7 id N2 Online F-Port 50:06:0e:80:03:51:95:018 id N2 Online F-Port 50:06:0e:80:03:51:95:029 id N2 Online F-Port 50:06:0e:80:03:51:95:0310 id N2 Online F-Port 50:06:0b:00:00:25:5c:c211 id N2 Online F-Port 50:06:0b:00:00:25:5c:b812 id N2 No_Light Disabled13 id N2 Online F-Port 10:00:00:00:c9:3d:c4:1a(IBM主机)14 id N2 No_Light15 id N2 Online F-Port 10:00:00:e0:02:22:9e:4716 id N2 No_Light17 id N2 No_Light18 id N2 No_Light19 id N2 Online F-Port 50:06:0e:80:03:51:95:2020 id N2 No_Light21 id N2 No_Light22 id N2 No_Light23 id N2 Online F-Port 10:00:00:00:c9:3d:67:0c24 -- N2 No_Module25 -- N2 No_Module27 -- N2 No_Module28 -- N2 No_Module29 -- N2 No_Module30 -- N2 No_Module31 -- N2 No_Module swd77:admin> cfgshowDefined configuration:no configuration defined Effective configuration:no configuration in effect。

博科 光纤交换机配置命令一览

博科 光纤交换机配置命令一览

DS_200B:admin> helpaaaconfig Configure RADIUS for AAA servicesad Specifies all administration domain (AD)-leveloperationsag Configure the Access Gateway featureagshow Displays the Access Gateway information registeredwith the fabricagtcfgdefault Reset SNMP agent to factory defaultaliadd Add a member to a zone aliasalicreate Create a zone aliasalidelete Delete a zone aliasaliremove Remove a member from a zone aliasalishow Print zone alias informationaptpolicy Get and set Advanced Performance Tuning policy auditcfg Modifies and displays audit log filterconfiguration.authutil Get and set authentication configuration backplanetest Backplane connection test for multi-blade systems. backport Test for back-end ASIC pair to ASIC pair links. bannerset Set security bannerbannershow Display security bannerbcastshow Display broadcast routing information bladebeacon Enables or disables blade beaconing or displays thecurrent mode.bladedisable Disables all user ports on a blade.bladeenable Enables all User Ports on a blade.burninerrclear Clear errors that are stored in the non-volatilestorageburninerrshow Display errors that are stored in the non-volatilestorageburninstatus Display the diagnostics burnin status.camtest Verify QuickLoop's Content Addressable Memory(CAM).SID translationcentralmemorytest Test ASIC central memory operation.cfgactvshow Display Effective zone configuration information cfgadd Add a member to a configurationcfgclear Clear all zone configurationscfgcreate Create a zone configurationcfgdelete Delete a zone configurationcfgdisable Disable a zone configurationcfgenable Enable a zone configurationcfgremove Remove a member from a configurationcfgsave Save zone configurations in flashcfgshow Print zone configuration informationcfgsize Print size details of zone databasecfgtransabort Abort zone configuration transaction cfgtransshow Print zone configurations in transaction buffer chassisconfig Display or set the chassis configuration chassisname Display or set the chassis's Namechassisshow Display all Field Replaceable Units (FRU) chipregshow Displays the port registers for a given chipnumber.cmemretentiontest Data retention test of the central memory SRAMs. cmitest Verify CMI bus between ASICs.configdefault Reset config to factory defaultconfigdownload Load switch config from a serverconfigshow Print switch config parametersconfigupload Save switch config to a serverconfigure Set switch config parametersdatatypeshow Display available diagnostic data types.date Print/set the system date and timedbgshow Display debug levels of various modules defzone Activates or deactivates a default zoneconfiguration.diagclearerror Clears diagnostics failure status. diagcommandshow Display diagnostic command descriptions. diagdisablepost Disable diagnostic POST.diagenablepost Enable diagnostic POST.diagenv Diagnostic debug parameters management package. diaghelp Display diagnostic command descriptions. diagloopid Select the diagnostics loop ID.diagmodeshow Displays diagnostic mode configuration. diagpost Displays the contents of port registers andmemories.diagretry Sets diagnostic retry modediagsetburnin Initializes the blade for a burnin run.diagsetcycle Set diagnostic script parameters. diagsetesdmode Set or display ESD mode.diagsetshowtime Set or display diagnostic show-time mode. diagshow Display diagnostic status.diagshowtime Set or display diagnostic show-time mode. diagstatus Display currently running diagnostic tests. diagstopburnin Terminate burnin run on a blade.distribute Distributes data to switches in a fabric.dlsreset Turn off the dynamic load sharing (DLS) option dlsset Turn on the dynamic load sharing (DLS) option dlsshow Display the state of the dynamic load sharingoptiondnsconfig Configure DNS serviceenclosureshow Display the switch enclosure attributes errclear Clear error logerrdelimiterset Sets the error log start and end delimiter formessages sent to the console and syslog errdump Print error log (no page breaks)errfilterset Sets a filter for an error log destination errmoduleshow Displays all the defined modules in the system errshow Print error logfabportshow Display contents of a particular port's data fabretryshow Display retry count of various fabric commands fabriclog Displays or manipulates the fabric log fabricprincipal Displays/Enables/Disables Principal SwitchSelection modefabricshow Print fabric membership infofabstateclear Clears the fabric state information fabstateresize Changes the number of state entries fabstateshow Displays the fabric state information fabstatsshow Displays the fabric statistics information fabswitchshow Display fabric switch state information fandisable Disables a fan unit.fanenable Enables a fan unit.fanshow Print fan statusfastboot Reboot this switch and bypass POST fastwritecfg Configure FC fastwrite featurefazoneadd Add a member to a fabric assist zone fazonecreate Create a fabric assist zonefazonedelete Delete a fabric assist zonefazoneremove Remove a member from a fabric assist zone fazoneshow Print Fabric Assist Zone information fcipchiptest Functional Test of Components in FCIP Complex. fciphelp Print FCIP help infofcippathtest Data Path Test of the FCIP complex.fcping Sends a FC ELS ECHO request to a port fcplogclear Clear the FCP logfcplogdisable Disable logging of FCP eventsfcplogenable Enable logging of FCP eventsfcplogshow Display FCP probing log information fcpprobeshow Display FCP probing information fcprlsshow Display FCP RLS (read link state) information fcrchiptest Functional Test of FCR FPGA.fcrconfigure Sets FC Router configuration parameters. fcrfabricshow Displays FC Routers on a backbone fabric. fcrlsancount Display maximum LSAN zone limit.fcrlsanmatrix Manage LSAN fabric matrix configuration. fcrpathtest Data Path Test on Connection between FCR FPGA andCentral ASIC.fcrphydevshow Displays FC Router physical device information. fcrproxyconfig Displays or configures proxy devices presented byan FC Router.fcrproxydevshow Displays FC Router proxy device information. fcrresourceshow Displays FC Router physical resource usage. fcrrouterportcost Displays FC Router route information.fcrrouteshow Displays FC Router route information. fcrxlateconfig Displays or persistently configures a translate(xlate) domain's domain ID for bothEX_Port-attached fabric and backbone fabric.fddcfg fddcfg manages the fabric data distributionconfiguration parameters.fdmicacheshow Display abbreviated remote FDMI device informationaccording to remote domain IDfdmishow Display detailed FDMI device information ficonclear Clears contents of the specified FICON managementdatabaseficoncupset Sets FICON-CUP parameters for a switch ficoncupshow Displays FICON-CUP parameters for a switch ficonhelp Displays FICON commandsficonshow Displays contents of the specified FICON managementdatabasefiltertest Run frame filter test for bloom ASICs. firmwarecommit Commit firmware to stable storage firmwaredownload Download firmware into switch firmwaredownloadstatus Display the progress and status of firmwareDownload firmwarerestore Restore the old firmware in the switchfirmwareshow Display firmware versions in the switchfosconfig Enable/disable FabOS servicesfporttest Functional test of F->N N->F point to point path. framerpathtest Tests data path between ASICsfrureplace Replace a Field Replacable Unitfspfshow Print FSPF global informationfwalarmsfilterset Configure alarms filtering for Fabric Watch fwalarmsfiltershow Show alarms filtering for Fabric Watchfwclassinit Initialize all Fabric Watch classesfwconfigreload Reload Fabric Watch configurationfwconfigure Configure Fabric Watchfwfrucfg Configure FRU state and notificationfwhelp Print Fabric Watch help infofwmailcfg Configure Fabric Watch Email Alertfwportdetailshow Create a report with detailed port information fwsamshow Show availability monitor informationfwset Set port persistence timefwsettocustom Set boundary & alarm level to custom fwsettodefault Set boundary & alarm level to defaultfwshow Show thresholds monitored and port persistence time grep Linux grep commandh Print shell historyhadisable Disables the High Availability feature in theswitch.hadump Displays information about the status of the HighAvailability feature in the switch.haenable Enables the High Availability feature in the switch hafailover Forces the failover mechanism so that the StandbyControl Processor (CP)becomes the Active CP. hashow Displays control processor (CP) status hasyncstart Enables HA state synchronization.hasyncstop Disables the HA state synchronization.help Print this listhistorylastshow Displays last history recordhistorymode Display or set the mode of the history log historyshow Displays entire history loghttpcfgshow Used to show the version of the Java plug-in usedby the Webtoolsi Display process summaryifmodeset Set the link operating mode for a network interface ifmodeshow Display the link operating mode for a networkinterfaceinterfaceshow Display the FSPF (TM) interface information interopmode Displays/enables/disables Brocade switchinteroperability with switches from othermanufacturersiodreset Turn off the in-order delivery (IOD) optioniodset Turn on the in-order delivery (IOD) optioniodshow Display the state of the in-order delivery option ipaddrset Set ethernet and FC IP addressesipaddrshow Print ethernet and FC IP addressesipfilter Manage/display IP filtersiscsihelp Print iSCSI help infoislshow Display the current connections and statuskilltelnet Terminate telnet/serial login sessionsinteractivelylicenseadd Adds license keys to switchlicensehelp Print license help infolicenseidshow Displays the system license IDlicenseport Configure per-port POD license assignments licenseremove Removes a license key from this system licenseshow Displays current license keyslinkcost Set or print the FSPF cost of a linklogin Login as a new userlogout Logout from remote sessionloopporttest Functional test of L-port M->M path on a loop. lsdbshow Displays the FSPF link state databasememshow Display memory usage in the system.minicycle Functional test of internal and external transmitand receive paths at full speed.minispropshow Displays ASIC pair properties.more Linux more commandmscapabilityshow Display Management Server Capability. msconfigure Configure Management Servermsplatshow Display the Management Server Platform Database msplatshowdbcb Display the Management Server Database ControlBlockmsplcleardb Clear the Management Server Platform Databasefabric-widemsplmgmtactivate Activate the Management Server Platform Databasefabric-widemsplmgmtdeactivate Deactivate the Management Server Platform Databasefabric-widemstddisable Disables the Management Server Topology DiscoveryManagement Servicemstdenable Enables the Management Server Topology DiscoveryManagement Servicemstdreadconfig Display status of Management Server TopologyDiscovery Servicemyid Display the current login session details nbrstateshow Display FSPF (TM) neighbors' states nbrstatsclear Reset the FSPF (TM) interface countersnetstat Display network connections and statisticsnodefind Display all the devices' PID matching the givenworld wide namensaliasshow Display local Name Server information with Aliases nsallshow Print global Name Server information nscamshow Print local Name Server Cache information nsshow Print local Name Server information information nszonemember Display the information of all the online deviceswhich are zoned with the given device. opensource Display information on open source softwareutilized in FabOSpasswd Set usernames and passwordspasswdcfg passwdcfg manages the password policies. pathinfo Display routing information between two ports pdshow Show information from Panic Dump file perfaddeemonitor Add end-to-end monitorperfaddipmonitor Add monitor for IP trafic frame count perfaddreadmonitor Add filter-based monitor - SCSI Read perfaddrwmonitor Add monitor - SCSI Read and Write perfaddscsimonitor Add monitor for SCSI frame count perfaddusermonitor Add filter-based monitorperfaddwritemonitor Add filter-based monitor - SCSI Write perfcfgclear Clear Performance settings from FLASH perfcfgrestore Restore Performance configuration from FLASH perfcfgsave Save Performance configuration to FLASH perfclearalpacrc Clears the CRC error count associated with a portand Arbitrated Loop Physical Address (AL_PA). perfcleareemonitor Clears statistics counters of one or moreend-to-end performance monitors. perfclearfiltermonitor Clears counters of one or more filter-basedperformance monitors.perfdeleemonitor Delete end-to-end monitorperfdelfiltermonitor Delete filter-based monitorperfhelp Print Performance Monitoring help info perfmonitorclear Clear end-to-end/filter-based/ISL monitors perfmonitorshow Show end-to-end/filter-based/ISL monitors perfsetporteemask Set overall mask for end-to-end monitors perfshowalpacrc Get ALPA CRC count by port and ALPA perfshoweemonitor Show user-defined end-to-end monitors perfshowfiltermonitor Show filter-based monitors perfshowporteemask Show the current end-to-end maskpkicreate Creates public key infrastructure (PKI) objects pkiremove Removes existing public key infrastructure (PKI)objectspkishow Displays existing public key infrastructure (PKI)objectspolicy Configure IPSec encryption and authenticationalgorithmsportalpashow Show the ALPAs of a portportbuffershow Print the buffer allocations for the ports of aquadportcamshow Display filter utilizationportcfg Create/Delete a new ip interface/route/arp entry onthe GigE portportcfgdefault Restore the port configuration to defaults portcfgeport Enable/Disable a port from becoming E_Port portcfgexport Sets a port to be an EX_Port and sets and displaysEX_Port configuration parameters. portcfggport Lock a port as a G_Portportcfgislmode Configure a port to be ISL R_RDY Modeenabled/disabledportcfglongdistance Configure a Long Distance Portportcfglport Lock a port as a L_Portportcfgnpivport Enables and disables NPIV functionality on a port. portcfgnport Enable/disable N_Port capability for a port portcfgpersistentdisable Persistently disable a port portcfgpersistentenable Enable a persistently disabled portportcfgshow Displays port configuration settings. portcfgspeed Configure a port to a particular speed level portcfgtrunkport Configure a port for trunkingportcfgvexport Sets a port to be an VEX_Port connected to FC-IPand sets and displays VEX_Port configurationparameters.portcmd Execute commands (ping etc) on the GigE port portdebug Set debug level and verbosity level of port modules portdisable Disable a specified portportenable Enable a specified portporterrshow Print port error summaryportflagsshow Display the port status bitmaps of all ports in aswitchportledtest Cycle user port LEDs.portlogclear Clear port activity logportlogconfigshow Display portlog configurationportlogdisable Disable portlog facilityportlogdump Print port log (no page breaks) portlogdumpport Print port log (no page breaks)portlogenable Enables port log facilityportlogeventshow Display information about port log events portloginshow Display port login informationportlogpdisc Set or clear the debug_pdisc_flagportlogreset Enable portlog facilityportlogresize Resize the port logportlogshow Print port activity logportlogshowport Print port activity logportlogtypedisable Disable port loggingportlogtypeenable Enable port loggingportloopbacktest Functional test of port N->N path.portmirror Set a port's configuration to be disabled orenabledportname Assign or display the name associated with a port portperfshow Print port throughput numbersportregtest Write/read test of the ASIC SRAMs portregtest. portrouteshow Display various routing tables for a portportshow Show configured ip interfaces/routes/arp entries onthe GigE Portportstats64show Display the 64-bit hardware statistics for a port portstatsclear Clear the status of a specified switch port portstatsshow Print hardware statisticsportswap Swaps area numbersportswapdisable Disable portswap featureportswapenable Enable portswap featureportswapshow Display port and area informationporttest Functional test on a live fabric. Starts porttest. porttestshow Retreive information from porttest.portzoneshow Displays the enforced zone type of the F/FL-portsof a switch.powerofflistset sets slot power off list orderpowerofflistshow Displays slot power-off order.psshow Print power supply statusquietmode Displays/enables/disables quietmode on telnetsessionreboot Reboot this processorroutehelp Print routing help infosaschiptest Functional Test of Components in SAS Complex. saspathtest Data Path Test of the SAS complex.secactivesize Displays size of the active (security) database secauthsecret Creates/Manages DHCHAP secret key details seccertutil Creates/Manages/Displays third party PKIcertificatessecdefinesize Displays size of the defined (security) database secfabricshow Displays security related fabric information secfcsfailover Forces primary role to this FCS switch secglobalshow Displays current internal security stateinformationsechelp Displays information about security commands secmodedisable Disables secure modesecmodeenable Enables secure modesecmodeshow Displays whether secure mode is enabled or disabled secnonfcspasswd Sets the admin passwd for non-FCS switches secpolicyabort Aborts changes to defined policysecpolicyactivate Activates all policy setssecpolicyadd Adds members to an existing policysecpolicycreate Creates a new policysecpolicydelete Deletes an existing policysecpolicydump Displays all members of existing policies secpolicyfcsmove Moves a member in the FCS policy secpolicyremove Removes members from an existing policy secpolicysave Saves defined policy set and sends to all switches secpolicyshow Shows members of one or more policies secstatsreset Resets security statisticssecstatsshow Displays security statistics sectemppasswdreset Resets temporary password sectemppasswdset Sets temporary passwordsectransabort Aborts current transactionsecversionreset Resets version stampsensorshow Display sensor readingssetdbg Set debug level of the specified module setesdmode Set or display ESD mode.setmfgmode Set or display diagnostic MFG mode. setmodem Enables or disables modem login to a controlprocessor (CP)setsplbmode Set or display SPLB mode.setverbose Set verbosity level of the specified module sfpshow Print Serial ID SFP information shellflowcontroldisable Disable xon-xoff flow control on console serialportshellflowcontrolenable Enable xon-xoff flow control on console serial port slotpoweroff Removes power from a slot.slotpoweron Restores power to a slot.slotshow Displays the status of all slots in the system. sltest Serial link test of port N->N path.snmpconfig Configure SNMPsnmpmibcapset Set options for configuring SNMP Mib/TrapCapabilitysnmpmibcapshow Show SNMP Mib/Trap Configurationspinfab Functional test of switch to switch ISL cabling andtrunk group operation.spinjitter line-speed jitter measurementspinsilk Functional test of internal and external transmitand receive paths at full speed sramretentiontest Data retention test of the miscellaneous SRAMs inASIC.statsclear Clear port and diagnostic statistics.statstest Statistics counter test for the ASICs.stopporttest Terminate the running porttest.supportffdc Modifies or displays first-failure data capture(FFDC) configuration.supportftp set support Ftp parameterssupportsave retrieve support data from switch to host supportshow Prints switch information for debugging purposes. supportshowcfgdisable Disables a group of commands under supportshowcommand.supportshowcfgenable Enables a group of commands under supportshowcommand.supportshowcfgshow Displays the groups of commands enabled fordisplay. by the supportshow command. switchbeacon Set switch beacon on or off switchcfgpersistentdisable Persistently disable a switch switchcfgpersistentenable Enable a persistently disabled switch switchcfgspeed Configures all ports of the switch to a particularspeed levelswitchcfgtrunk Configure all ports on the switch for trunking switchdisable Disable this switchswitchenable Enable this switchswitchname Print/set this switch's nameswitchreboot Halts and restarts the operational switch. switchshow Print switch and port status switchstatuspolicyset Set policy parameters for overall switch status switchstatuspolicyshow Print policy parameters for overall switch status switchstatusshow Print overall switch statusswitchuptime Display the amount of time for which the switch isupsyslogdfacility Change the syslog facilitysyslogdipadd Add syslog daemon IP address syslogdipremove Remove syslog daemon IP address syslogdipshow Print the syslog daemon targetssysshutdown Provides a graceful shutdown to protect the switchfile systems.systemverification Run a suit of diagnostic tests on all switches in asystem.tempshow Print temperature readingstimeout Set/show the IDLE timeout value for a login session topologyshow Display the unicast fabric topologytracedump generate/remove trace dump or display trace dumpstatustrackchangeshelp Print Track Changes help infotrackchangesset Configure alert for login/logout/config update trackchangesshow Displays status of track changestrunkdebug Debug a trunk link failuretrunkshow Display trunking informationtsclockserver Displays or sets the NTP server addresststimezone Displays or sets the time zoneturboramtest Turbo SRAM test for bloom ASICs.txdpath Functional test of ASIC pair TXA TXD connections. uptime Print how long switch has been upurouteconfig Configure a static routeurouteremove Remove a static routeurouteshow Display unicast routing informationuserconfig Display or configure user accountsuserrename Rename user login nameversion Print firmware versionwwn Display or set the world wide namezone Copies/Removes/Validates zone objectszoneadd Add a member to a zonezonecreate Create a zonezonedelete Delete a zonezonehelp Print zoning help infozoneobjectcopy Copies a zone objectzoneobjectexpunge Expunges a zone objectzoneobjectrename Rename a zoning Objectzoneremove Remove a member from a zonezoneshow Print zone information。

博科SAN交换机:常用命令行

博科SAN交换机:常用命令行

博科SAN交换机:常用命令行交换机基本配置命令•IP地址ipaddrshowipaddrset - 博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换机的IP地址进行设置和修改。

•Switch Name / Hostnameswitchnamehostname命令只能临时更改交换机名字。

•DNSdnsconfig•时间日期date "mmddHHMMyy"tstimezone --interactive•OS版本信息version交换机状态查询switchshow - 交换机与端口状态hashow - CP卡状态(Brodecade 300不支持)slotshow - SLOT状态(Brodecade 300不支持)psshow - 电源状态tempshow - 温度状态fanshow - 风扇状态firmwareshow - 微码状态licenseshow - 授权状态cfgshow - 配置信息zoneshow - ZONE信息uptime - 交换机运行时间porterrshow - 端口错误信息errshow - 错误信息别名管理alicreate - 创建别名alishow - 显示系统中定义的别名aliadd - 别名中添加成员aliremove - 别名中删除成员alidelete - 删除别名Example:alicreate "aliname","domainid1,port1;domainid2,port2"aliadd "aliname","domainid,port"aliremote "aliname","domainid,port"zone相关命令zonecreate - 创建一个zonezoneadd - Zone添加新成员zoneremove - Zone删除成员zoneobjectcopy - 复制一个zone到一个新的zongzoneobjectrename - 重新命名一个zonezoneobjectexpunge - 删除一个zoneExample:zonecreate "zonename","aliname1;aliname2;domainid3,port3"cfgadd "cfg", "zonename"无论添加和删除zone,都要相应的将zone从配置文件中添加或者删除。

Brocade(博科)交换机重要命令

Brocade(博科)交换机重要命令

Brocade(博科)交换机重要命令一、改变admin帐号密码以用户名admin登录到SAN交换机,然后在输入命令:Passwd,再根据提示输入相应的用户名和密码,对话过程如下:switch:admin> passwdChanging password for adminEnter new password:Re-type new password:Password changed.Saving password to stable storage.Password saved to stable storage successfully.二、设置和查看管理IP地址设置交换机管理IP地址的命令为ipaddrset,以下对话将管理IP设置为182.1.10.10/255.255.0.0:Ethernet IP Address [192.168.166.148]:182.1.10.10Ethernet Subnetmask [255.255.255.0]:255.255.0.0Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Committing configuration...Done.OK.说明:Fibre Channel IP Address和Fibre Channel Subnetmask不需设置。

查看IP地址的命令为ipaddrshow。

三、设置交换机名命令switchname用于查看(不带参数时)和设置(带参数时)交换机名,以下对话先将交换机名设置为“MideaTsw”,然后查看交换机名:switch:admin> switchname MideaTswMideaTsw:admin> switchnameMideaTsw四、关于Zone的操作新建Zone建立新Zone的命令为zonecreate,以下命令建立名为cpdtestzone的Zone,并指定端口“1,0”和“50,14”作为其成员:MideaTsw:admin> zonecreate “cpdtestzone”, “1,0; 50,14”说明:“50,14”中50是交换机的Domain ID,14是交换机的端口号。

博科Brocade SAN switch常用命令

博科Brocade SAN switch常用命令

博科交换机查看IP地址命令swd77:admin> ipaddrshowSWITCHEthernet IP Address: 10.77.77.77Ethernet Subnetmask: 255.255.255.0Fibre Channel IP Address: noneFibre Channel Subnetmask: noneGateway IP Address: noneDHCP: Offswd77:admin>设置博科Brocade交换机IP地址博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换机的IP地址进行设置和修改swd77:admin> ipaddrsetEthernet IP Address [10.77.77.77]: #输入交换机需要设置的IP地址Ethernet Subnetmask [255.255.255.0]: #输入掩码Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Gateway IP Address [none]: # 输入网关DHCP [Off]: #是否开启DHCPswd77:admin>博科brocade交换机查看OS版本信息swd77:admin> versionKernel: 2.6.14.2 //linux内核版本Fabric OS: v6.1.0a // 交换机OS版本Made on: Thu Apr 17 21:45:31 2008 // 生产日期Flash: Tue Jan 13 23:33:44 2009BootProm: 4.6.6swd77:admin>博科brocade交换机添加license授权信息swd77:admin> licenseadd XXXXXXXX(博科的激活号)查看博科brocade交换机license授权信息在命令行模式下使用licenseshow命令可以查看博科交换机的授权情况,使用licenseadd命令可以添加授权。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

对于SAN SWITCH配置前先需要弄明白domain id,alias ,zone, configure的关系。

一般来说domain id是用来区分交换机,所以一个fabric中的交换机Domain id不能一样,并且一个fabric中的多台交换机的domain id 由master交换机分配。

Alias可以把设备的wwn号和port 号声明为alias。

方便直观的查看。

Zone 一般相当于以太网交换机中的VLAN可以隔离主机
Configuration相当于一系列zone 的集合,交换机中可以存在多个configuration,但是生效的只有一个。

使用alishow可以查看机器配置的alias的配置
首先可以使用alicreate“stone”, “1,5”命令把1,5端口设置成名为stone 的alias。

使用命令zonecreate创建一个名为zonetestbyliyang的zone.并且把stone的alias加入到zone 中
使用zoneshow可以查看配置的zone 的设置
使用cfgcreate命令可以把名为gongchengbu的cfg文件和zone 文件关联
使用cfgshow查看配置文件
使用cfgenable来启动对应的CFG文件
使用CFGsave可以保存设置好的cfg文件。

相关文档
最新文档