关键词不能为空

当前您在: 主页 > 英语 >

博科BrocadeSAN交换机常用命令

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-07 11:27
tags:

-

2021年2月7日发(作者:nutshell)


博科


Brocade SAN


交换机常用命令





1.


查看


I P


地址命令



.


................................................. .................................................. ............. 2



2.


查看


firmware


版本



.


.............................. .................................................. ............................ 2



3.


查看交换机状态



.


.................................. .................................................. .............................. 2



4.


查看交换机


license- id



.


............. .................................................. ...................................... 3



5.


配置


ZONE



.


........... .................................................. .................................................. .............. 3



6.

查看


zone


配置文件



.


............................... .................................................. ........................... 4


7.


查看


ZONE



.


................................. .................................................. .......................................... 5



8.


查看系统日志信息



.


................................. .................................................. ........................... 6



9.


关机



.


....................................... .................................................. ............................................. 6



10.


设置博科

< br>Brocade


交换机


IP


地址



.


............... .................................................. ................. 6



11.

< p>
博科


brocade


交换机查看

< br>OS


版本信息



.


............................................. ............................. 6



12.


博科


brocade


交 换机添加


license


授权信息


< /p>


.


............................ .................................... 7



13.


查看博科


brocade


交换机


license


授权信息



.


..................... ........................................... 7



14.


博科


Brocade Slikworm 300


交换机


license



.


.............................. ................................. 7



15.


博科


Brocade

< br>交换机修改密码命令



.


... .................................................. ........................... 7



16.


博科


brocade SAN


交换机密码重置



.

< p>
............................................ ................................... 7


< /p>


17.


登陆后是用


passwddefa ult


命令恢复出厂密码



.


........................................... ................. 9



18.


交换机升级


< br>.


................................... .................................................. ................................... 9



19.


帮助信息


.


.................................... .................................................. .................................... 13

















1.


查看


IP


地址命令



swd77:admin>ipaddrshow


SWITCH


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: none


DHCP: Off


swd77:admin>



2.


查看


f irmware


版本



swd211:admin>


swd211:admin>firmwareshow


Appl Primary/Secondary Versions


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


FOS v6.2.1


v6.2.1



3.


查看交换机状态



swd211:admin>switchoshow


rbash: switchoshow: command not found


swd211:admin> switchshow


switchName: swd211


switchType: 34.0


switchState: Online


switchMode: Native


switchRole: Principal


switchDomain: 1


switchId: fffc01


switchWwn: 10:00:00:05:1e:02:a2:10


zoning: ON (FC01)


switchBeacon: OFF



Area Port Media Speed State Proto


=====================================


0 0 id N2 Online F-Port 50:08:05:f3:00:1b:4e:91


1 1 id N4 Online F-Port 10:00:00:00:c9:53:b2:8d


2 2 id N4 Online F-Port 10:00:00:00:c9:53:b3:c1


3 3 id N4 Online F-Port 10:00:00:00:c9:53:b3:c2


4 4 id N4 Online F-Port 50:06:0b:00:00:66:00:c4


5 5 id N4 Online F-Port 50:06:0b:00:00:66:01:1e


6 6 id N2 Online F-Port 50:05:08:b3:00:93:b2:81


7 7 -- N4 No_Module


8 8 id N4 Online F-Port 50:01:43:80:04:c7:87:d8


9 9 id N4 Online F-Port 50:01:43:80:04:c7:87:dc


10 10 id N4 Online F-Port 50:01:43:80:06:31:cf:7c


11 11 -- N4 No_Module


12 12 -- N4 No_Module


13 13 -- N4 No_Module


14 14 -- N4 No_Module


15 15 -- N4 No_Module


swd211:admin>



4.


查看交换机


license-id


swd211:admin>


swd211:admin>licenseidshow


10:00:00:05:1e:02:a2:10


swd211:admin>



5.


配置


ZONE


案例


:


1)


Create


Aliases



>alicreate



Eng_H ost



,



1,0




>alicreate < /p>



Eng_Stor


< br>,



1,4;


1,5




>alicreate



Mkt_H ost



,



Mktwwn




>alicreate



Mkt_S tor



,



s3wwn;


s4wwn;


s5wwn




2)


Create


Zones


>zonecreate



Zone _Eng



,



Eng_Host;


Eng_Stor




>zonecreate



Zone _Mkt



,



Mkt_Host;


Mkt_Stor




3)


Create


Configuration


>cfgcreate



Cfg_EngMkt


< br>,



Zone_Eng;


Zone_Mkt






sw4100:admin>


cfgshow


Defined


configuration:



cfg:




Cfg_EngMkt


Zone_Eng;


Zone_Mkt



zone:



Zone_Eng


Eng_Host;


Eng_Stor




zone:



Zone_Mkt


Mkt_Host;


Mkt_Stor




alias:


Eng_Stor


1,4;


1,5



alias:


Eng_Host


1,0



alias:


Mkt_Stor


21:00:00:20:37:87:49:29;


21:00:00:20:37:87:e5:20;


21:00:00:20:37:87:20:c5



alias:


Mkt_Host


21:00:00:20:37:87:23:e2



Effective


configuration:



no


configuration


in


effect





4)


Enable


Configuration


>cfgenable



Cfg_E ngMkt





sw4100:admin>


cfgshow


Defined


configuration:



cfg:




Cfg_EngMkt


one_Eng;


Zone_Mkt



zone:



Zone_Eng


Eng_Host;


Eng_Stor




zone:



Zone_Mkt


Mkt_Host;


Mkt_Stor




alias:


Eng_Stor


1,4;


1,5



alias:


Eng_Host


1,0



alias:


Mkt_Stor


21:00:00:20:37:87:49:29;


21:00:00:20:37:87:e5:20;


21:00:00:20:37:87:20:c5



alias:


Mkt_Host


21:00:00:20:37:87:23:e2



Effective


configuration:



cfg:




Cfg_EngMkt



zone:



Zone_Eng


1,0;


1,4;


1,5




zone:



Zone_Mkt


21:00:00:20:37:87:23:e2;


21:00:00:20:37:87:e5:20;


21:00:00:20:37:87:49:29; 21:00:00:20:37:87:20:c5



6.


查看


zone


配置文件



swd211:admin>


swd211:admin>cfgshow


Defined configuration:


cfg: FC01 OADB_ML6030; SPC_MSA1000; SFDB_EVA4400; SFDB04_MSA1500;


SFEVA4400_SMA


zone: OADB_ML6030


1,7; 1,14; 1,15


zone: SFDB04_MSA1500


1,10; 1,6


zone: SFDB_EVA4400


1,3; 1,4; 1,5; 1,7; 1,8; 1,9


zone: SFEVA4400_SMA


1,8; 1,9; 1,11


zone: SPC_MSA1000


1,0; 1,1; 1,2; 1,7



Effective configuration:


cfg: FC01


zone: OADB_ML6030


1,7


1,14


1,15


zone: SFDB04_MSA1500


1,10


1,6


zone: SFDB_EVA4400


1,3


1,4


1,5


1,7


1,8


1,9


zone: SFEVA4400_SMA


1,8


1,9


1,11


zone: SPC_MSA1000


1,0


1,1


1,2


1,7



swd211:admin>


swd211:admin>



7.


查看


ZONE


swd211:admin>zoneshow


Defined configuration:


cfg: FC01 OADB_ML6030; SPC_MSA1000; SFDB_EVA4400; SFDB04_MSA1500;


SFEVA4400_SMA


zone: OADB_ML6030


1,7; 1,14; 1,15


zone: SFDB04_MSA1500


1,10; 1,6


zone: SFDB_EVA4400


1,3; 1,4; 1,5; 1,7; 1,8; 1,9


zone: SFEVA4400_SMA


1,8; 1,9; 1,11


zone: SPC_MSA1000


1,0; 1,1; 1,2; 1,7



Effective configuration:


cfg: FC01


zone: OADB_ML6030


1,7


1,14


1,15


zone: SFDB04_MSA1500


1,10


1,6


zone: SFDB_EVA4400


1,3


1,4


1,5


1,7


1,8


1,9


zone: SFEVA4400_SMA


1,8


1,9


1,11


zone: SPC_MSA1000


1,0


1,1


1,2


1,7


swd211:admin>



8.


查看系统日志信息



swd211:admin>supportshow


日志比 较多


,


建议


log

出来查看


.



9.


关机



swd211:admin>sysshutdown



10.


设置博科


Brocade

< p>
交换机


IP


地址



博科交换机的默认


IP


地址是


10.77.77.77


,在命令行模式下可以通过


i paddrset


命令对交


换机的


IP


地址进行设置和修改



swd77:admin>ipaddrset


Ethernet 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]: #


是否开启


DHCP


swd77:admin>




11.


博科


brocade


交换机查看


OS


版本信息



swd77:admin>version


Kernel: 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 2009


BootProm:



4.6.6


swd77:admin>




12.


博科


brocade


交换机添加


license


授权信息

< br>


swd77:admin>licenseadd XXXXXXXX


(博科的激活号)




13.


查看博科


brocade


交换机


license


授权信息



在命令行模式下使用


licenseshow


命令可以查看博科交换机的授权情况,使用


licenseadd< /p>


命令可以添加授权。



博科


Brocade Slikworm 210E


交换机授权情况



swd77:admin> licenseshow


RzcQSXXXCS0RTc:


Unknown1 license


S9zXXXCSzRTScl:


Unknown2 license


b9QQGGHJHARRdF:


Fabric license


swd77:admin>


其中两个


Unknown1



Unknown2


这两个授权应该是两个


4< /p>


端口的授权。


Fabric license


级联


license


授权,是我 后来添加的,默认的


210E


交换机是没有的。




14.


博科


Brocade Slikworm 300


交换机


license


swd77:admin>licenseshow


XSCJBCmH3SARFa7BXrVVBGGFFRRXBArGR:





Fabric license



//


级联


License





Enhanced Group Management license


//


增强组管理授权






8 Gig FC license



//8Gb


的授权



swd77:admin>


15.


博 科


Brocade


交换机修改密码命令



Brocade


交换机在命令行模式下可以通过


passwd


命令来修改用户密码:




brocade 300


为例:



swd77:admin>passwd



#


使用


passwd


命令修改当前用户密码



Changing password for admin


Enter old password: #


输入目前使用的密码



Enter new password: #


输入新密码



Re-type new password: #


确认新密码



passwd: all authentication tokens updated successfully


Saving password to stable storage.


Password saved to stable storage successfully.


swd77:admin>





16.


博科


brocade SAN


交换机密码重置



博科


300


的默认用户名是


admin



默认密码是


password


由于这台机器用户做过设置,


密码


改过了需要重设一下。


博科交换机是没有


reset


按钮的,


必须通过


console


线连接通过命令


重置。



博 科


300



os


是用的


linux


2.6


的核心, 最高权限的管理帐号是


root


。重置交换机密码就

< p>
是用这个帐号。



swd77 login: root


Password:


fibranne


使用该帐号登陆后会出现下面的信息:



Disclaimer for Root and Factory Accounts Usage!


This Fibre Channel switch is equipped with Root and Factory accounts


that are intended for diagnostics and debugging purposes solely by


the Equipment vendor's trained engineers. Improper use of the


functionality made available through the Root or Factory account could


cause significant harm and disruption to the operation of the SAN fabric.


Your use of the functionality made available through the Root or Factory


account is at your sole risk and you assume all liability resulting from


such use. The Equipment vendor shall have no liability for any losses


or damages arising from or relating to the use of the Root or Factory


account (and the functionality enabled thereby) by anyone other than


the Equipment vendor's authorized engineers.


Proceeding with the usage of this switch as the Root or Factory user


explicitly indicates your agreement to the terms of this disclaimer.


Please change passwords for switch default accounts now.


Use Control-C to exit or press 'Enter' key to proceed.


这里用


Control-C


结束就行了,如果回车会让分别设置各个帐号的密码,出现如下信息:

< br>


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


or Factory password will result in fabric downtime.


for user - root


Changing password for root


Enter new password:


Password unchanged.


passwd: Authentication token manipulation error


Please change passwords for switch default accounts now.


for user - factory


Changing password for factory


Enter new password:


Password unchanged.


passwd: Authentication token manipulation error


Please change passwords for switch default accounts now.


for user - admin


Changing password for admin


Enter new password:


Password unchanged.


passwd: Authentication token manipulation error


Please change passwords for switch default accounts now.


for user - user


Changing password for user


Enter new password:


Password unchanged.


passwd: Authentication token manipulation error




17.


登 陆后是用


passwddefault


命令恢复出厂密码



swd77:root>passwddefault


Password policies are already set to default.


All account passwords have been successfully set to factory default.


swd77:root>






18.


交换机升级




Brocade 200E


交换机现有微码版本


v5.0.1b


升级至


v6.2.1


,具体操作步骤如下:

< p>


1




资源准备:网线一根,


BROCADE 200E firmware version


,控制台(


PC


或笔记本),


要安装


Java JRE 1.5


版本以上



2




设备连接:用网线将控制台(


PC


或笔记本)的网卡连接到交换机的管理口上。



3




控制台 环境设置:将控制台的网卡


IP


地址设备为

10.77.77.1


,子网掩码为


255.255.25 5.0


。然后在控制台的安装


FTP


服 务或软件,


FTP


的根目录设置为版本软件所在


的目录,并设置一个用户


lab


,密码为


lab123




确认控制 台与交换机(


brocade


)的网络连接正常。执行以下命令 :



Ping 10.77.77.77 (


默认管理口地址


)


4




登陆交换机:输入


telnet


10.77.77.77


,用户名为:


admin


,密码为:


password

,登


录到交换机。登陆进入后,会提示更改


admin


帐户的密码,如需更改直接回车,不更改则按


ctrl + c




5




登录后 输入


firmwareshow


,回车,可以查看现有的微码版 本,如果不是


v6.2.1


,则需


要升 级到


v6.2.1




Concept


1). Every Brocade switch has 2 partitions (one is master, the other is slave).


2). Switch can be upgrade online


3).


Slave


upgrade


first,


after


the


slave


partition


upgraded,


slave


partition


become


master, master become slave, then firmware copy from master to slave


Version Information





Port Speed Product Firmware Version Upgrade info


2GB 3900 4.x or 5.x v5.2.0a or v5.3.0c


2GB 12000 4.x or 5.x v5.2.0a or v5.3.0c


4GB 42000 4.x or 5.x v5.2.0a or v5.3.0c



NOTICE:


1> when current Version is 4.4.2 or later, Please Online Upgrade.


2> Before Upgrade firmware, please backup current configuration.


3> Copy new version firmware packages to ftp server directory.



Upgrade Firmware process (Step by Step)



This is demo switch from Brocade Shanghai office. Don't change IP address please.


If you meeproblem



swd77 login: admin


Password:


swd77:admin> version


Kernel: 2.4.19


Fabric OS: v4.4.0d // Please check current version


Made on: Wed May 18 21:08:14 2007


Flash: Mon Jun 6 06:35:26 2007


BootProm: 4.5.0


swd77:admin>configupload //backup the switch configuration


Protocol (scp or ftp) [ftp]: ftp


Server Name or IP Address [host]: 202.134.79.36 //ftp server ip-address


User Name [user]: lab//ftp server user name


File


Name


[]:


//


specify


configuration


file


name


Password: //ftp server user password


Upload complete




swd77:admin>firmwaredownload//download new version firmware


You can run firmwareDownloadStatus to get the status of this command.


This command will cause the switch to reset and will


require that existing telnet, secure telnet or SSH


sessions be restarted.



Do you want to continue [Y]: y


Server Name or IP Address: 10.77.77.1//ftp server ip-address


User Name: admin //ftp server user name


File Name: /v5.1.0/v5.1.0/


/v5.2.0/v5.2.0/


/v5.3.0/v5.3.0/


/v6.0.0/v6.0.0/


/v6.1.0/v6.1.0/


/v6.2.1/v6.2.1/


Password: //ftp server user password





注意


:


升级需要


30


分钟的格式化

< p>
,


需要


10


分钟的备分区 同步版本


,


总共花销时间需


:40


分钟




[0]:


Sun


Feb


19


05:59:40


2012


Firmware


is


being


downloaded


to


the


switch.


This


step


may take up to 30 minutes.


[1]:


Sun


Feb


19


06:04:35


2012


Firmware


has


been


downloaded


to


the


secondary


partition


of the switch.


[2]: Sun Feb 19 06:06:15 2012 The firmware commit operation has started. This may


take up to 10 minutes.




firmwa reshow


检查版本是否主分区与备分区同步








Firmwaredownload has started.


Start to install packages......


dir ##################################################


ldconfig ##################################################


glibc################################## ################


bash ##################################################


readline ##################################################


terminfo ##################################################


termcap ##################################################


setup ##################################################


swbd12-setup ##################################################


which ##################################################


findutils ##################################################


bzip ##################################################


zlib ##################################################


chkconfig ##################################################


fileutils ##################################################


sed ##################################################


textutils ##################################################


procps ##################################################


psmisc ##################################################


modutils ##################################################


sin ##################################################


rcinit ##################################################


misc ##################################################


pam ##################################################


util-linux ##################################################


sh-utils ##################################################


popt ##################################################


grep ##################################################


rpm ##################################################


sysvinit ##################################################


man ##################################################


less ##################################################


gzip ##################################################


tar ##################################################


rsync ##################################################


cpio ##################################################


dev ##################################################


swbd23-bootenv ##################################################


wdtd ##################################################


wget ##################################################


fwdl ##################################################


swbd23-prom ##################################################


Please avoid powering off the system during prom update.


kernel ##################################################


swbd21-drivers ##################################################


pcmcia-cs ##################################################


sysklogd ##################################################


Write kernel image into flash.


..............................


Verification SUCCEEDED


Removing unneeded files, please wait ...


Finished removing unneeded files.



All packages have been downloaded successfully.


Firmwaredownload has completed successfully.


HA Rebooting ... // waiting for upgrade another


controller


Fabric OS (swd77)




Firmwaredownload command has completed successfully.



swd77:admin>firmwareshow//check firmware version for all controller


Primary partition: v4.4.2


Secondary Partition: v4.4.2


swd77:admin>




End





19.


帮助信息



swd211:admin>


help



aaaconfig Configure RADIUS for AAA services


ad Specifies all administration domain (AD)-level


operations


ag Configure the Access Gateway feature


agshow Displays the Access Gateway information registered


with the fabric


agtcfgdefault Reset SNMP agent to factory default


aliadd Add a member to a zone alias


alicreate Create a zone alias


alidelete Delete a zone alias


aliremove Remove a member from a zone alias


alishow Print zone alias information


aptpolicy Get and set Advanced Performance Tuning policy


auditcfg Modifies and displays audit log filter


configuration.


auditdump Display audit log


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 banner


bannershow Display security banner


bcastshow Display broadcast routing information


bladedisable Disables all user ports on a blade.


bladeenable Enables all User Ports on a blade.


bpportloopbacktest Functional test of port via blade processor path.


bpturboramtest MBIST test for AP blade BP ASICs


burninerrclear Clear errors that are stored in the non-volatile


storage


burninerrshow Display errors that are stored in the non-volatile


storage


burninstatus Display the diagnostics burnin status.


camtest Verify QuickLoop's Content Addressable Memory


(CAM).SID translation


centralmemorytest Test ASIC central memory operation.


cfgactvshow Display Effective zone configuration information


cfgadd Add a member to a configuration


cfgclear Clear all zone configurations


cfgcreate Create a zone configuration


cfgdelete Delete a zone configuration


cfgdisable Disable a zone configuration


cfgenable Enable a zone configuration


cfgmcdtmode Configure legacy MCDT zoning behavior

-


-


-


-


-


-


-


-



本文更新与2021-02-07 11:27,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/608167.html

博科BrocadeSAN交换机常用命令的相关文章