brocade交换机的常用命令.doc_第1页
brocade交换机的常用命令.doc_第2页
brocade交换机的常用命令.doc_第3页
brocade交换机的常用命令.doc_第4页
brocade交换机的常用命令.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

brocade交换机的常用命令1、switchshow:可以查看交换机的名称、型号、状态、角色、domain ID、wwn、zone状态、zone配置名等。 2、cfgshow:可以查看zone的相关信息、端口的alias等。 3、新建一个zoning: alicreate hostname,domainid,port zonecreate hostname_storage,aliname;alinamecfgadd CFGNAME,hostname_strage cfgsave cfgenable CFGNAME 4、licenseshow:查看当前交换机的license 5、switchdisable:将当前交换机禁用,一般用于设置交换机配置时使用 6、switchenable:启用当前交换机 7、日常交换机检查命令: switchshow (交换机、端口状态) hashow (CP卡状态) slotshow (slot状态) psshow (电源状态) tempshow (温度状态) fanshow (风扇状态) firmwareshow (微码状态) licenseshow (license状态) cfgshow (zoning状态) uptime (交换机自上次重启到现在的时间) porterrshow (查看端口的错误信息) errshow (查看交换机的报错信息) 8、zone相关命令: zonecreate:创建一个zone zoneobjectcopy:复制一个zone到一个新的zong zoneobjectrename:重新命名一个zone zoneobjectexpunge:删除一个zone cfgclear:删除所有zone信息 cfgsize:查看zone数据库大小 cfgtransshow:查看是否有未被保存的zone相关信息 cfgtransabort:放弃未被保存的zone相关信息 cfgactvshow:显示激活中的zone配置 configupload:将交换机的配置信息保存到指定的FTP服务器上 9、fabricshow:查看当前fabric中有哪些交换机 10、nsshow:查看当前交换机中有哪些node(设备) 11、nsallshow:查看当前fabric中有哪些node(设备)博科Brocade SAN交换机常用命令查看IP地址命令swd77:admin ipaddrshowSWITCHEthernet IP Address: 7Ethernet Subnetmask: Fibre Channel IP Address: noneFibre Channel Subnetmask: noneGateway IP Address: noneDHCP: Offswd77:admin设置博科Brocade交换机IP地址博科交换机的默认IP地址是7,在命令行模式下可以通过ipaddrset命令对交换机的IP地址进行设置和修改swd77:admin ipaddrsetEthernet IP Address 7: #输入交换机需要设置的IP地址Ethernet Subnetmask : #输入掩码Fibre Channel IP Address none:Fibre Channel Subnetmask none:Gateway IP Address none: # 输入网关DHCP Off: #是否开启DHCPswd77:admin博科brocade交换机查看OS版本信息swd77:admin version Kernel: /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.6 swd77:admin博科brocade交换机添加license授权信息swd77:admin licenseadd XXXXXXXX(博科的激活号)查看博科brocade交换机license授权信息在命令行模式下使用licenseshow命令可以查看博科交换机的授权情况,使用licenseadd命令可以添加授权。博科Brocade Slikworm 210E交换机授权情况swd77:admin licenseshowRzcQSXXXCS0RTc: Unknown1 licenseS9zXXXCSzRTScl: Unknown2 licenseb9QQGGHJHARRdF: Fabric licenseswd77:admin其中两个Unknown1 和Unknown2这两个授权应该是两个4端口的授权。Fabric license是级联license授权,是我后来添加的,默认的210E交换机是没有的。博科Brocade Slikworm 300交换机swd77:admin licenseshowXSCJBCmH3SARFa7BXrVVBGGFFRRXBArGR: Fabric license /级联License Enhanced Group Management license /增强组管理授权 8 Gig FC license /8Gb的授权swd77:admin博科Brocade交换机修改密码命令Brocade交换机在命令行模式下可以通过passwd命令来修改用户密码:以brocade 300为例:swd77:admin passwd #使用passwd命令修改当前用户密码Changing password for adminEnter old password: #输入目前使用的密码Enter new password: #输入新密码Re-type new password: #确认新密码passwd: all authentication tokens updated successfullySaving password to stable storage.Password saved to stable storage successfully.swd77:admin查看博科Brocade交换机状态swd77:admin swtichshowrbash: swtichshow: command not foundswd77:admin switchshowswitchName: swd77switchType: 34.0switchState: Online switchMode: NativeswitchRole: PrincipalswitchDomain: 1switchId: fffc01switchWwn: 10:00:00:05:1e:09:xx:xxzoning: OFFswitchBeacon: OFFArea Port Media Speed State Proto= 0 0 id N4 No_Light 1 1 id N4 No_Light 2 2 id N4 No_Light 3 3 id N4 No_Light 4 4 id N4 No_Light 5 5 id N4 No_Light 6 6 id N4 No_Light 7 7 id N4 No_Light 8 8 id N4 No_Light 9 9 id N4 No_Light 10 10 id N4 No_Light 11 11 id N4 No_Light 12 12 id N4 No_Light 13 13 id N4 No_Light 14 14 id N4 No_Light 15 15 id N4 No_Light swd77:admin博科 brocade SAN交换机密码重置博科300的默认用户名是admin,默认密码是password。由于这台机器用户做过设置,密码改过了需要重设一下。博科交换机是没有reset按钮的,必须通过console线连接通过命令重置。博科300的os是用的linux 2.6的核心,最高权限的管理帐号是root。重置交换机密码就是用这个帐号。swd77 login: rootPassword: fibranne使用该帐号登陆后会出现下面的信息:Disclaimer for Root and Factory Accounts Usage!This Fibre Channel switch is equipped with Root and Factory accountsthat are intended for diagnostics and debugging purposes solely by the Equipment vendors trained engineers. Improper use of the functionality made available through the Root or Factory account couldcause significant harm and disruption to the operation of the SAN fabric.Your use of the functionality made available through the Root or Factoryaccount is at your sole risk and you assume all liability resulting fromsuch use. The Equipment vendor shall have no liability for any losses or damages arising from or relating to the use of the Root or Factoryaccount (and the functionality enabled thereby) by anyone other than the Equipment vendors authorized engineers.Proceeding with the usage of this switch as the Root or Factory userexplicitly 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结束就行了,如果回车会让分别设置各个帐号的密码,出现如下信息:Warning: Access to the Root and Factory accounts may be required forproper support of the switch. Please ensure the Root and Factorypasswords are documented in a secure location. Recovery of a lost Rootor Factory password will result in fabric downtime.for user - rootChanging password for rootEnter new password: Password unchanged.passwd: Authentication token manipulation errorPlease change passwords for switch default accounts now.for user - factoryChanging password for factoryEnter new password: Password unchanged.passwd: Authentication token manipulation errorPlease change passwords for switch default accounts now.for user - adminChanging password for adminEnter new password: Password unchanged.passwd: Authentication token manipulation errorPlease change passwords for switch default accounts now.for user - userC

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论