当前位置:文档之家› Brocade交换机的日常维护命令

Brocade交换机的日常维护命令

Brocade交换机的日常维护命令1、设备健康状态查询和日志信息收集登陆到Brocade交换机:一、串口线登陆1)交换机自带一个串口线。

将串口盖拿掉,将串口线连接上去2)连接串口线到笔记本/工作站上的串口。

3)关闭工作站上的串口通讯程序4)打开“超级终端”,配置如下:–传输速率: 9600bit/sec–数据位: 8–校验位: None–停止位: 1–流控制: None5)确认交换机已经完成POST6)当超级终端停止报告信息,按“Enter” 显示login 信息,login7) 默认用户:admin,默认密码:password。

二、网络连接登陆用Telnet工具通过IP 地址登陆。

默认用户:admin,默认密码:password。

健康查询/日志收集命令1)查看IP地址命令-ipaddrshowSW300-2:root> ipaddrshowSWITCHEthernet IP Address: 10.77.77.78Ethernet Subnetmask: 255.255.255.0Gateway IP Address: noneDHCP: Off2) 设置交换机IP地址博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换的IP地址进行设置和修改SW300-2:root>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]: #是否开启DHCP3) 查看OS版本信息SW300-2:root> versionKernel: 2.6.14.2Fabric OS: v6.4.1aMade on: Tue Dec 14 03:02:28 2010Flash: Thu Jul 14 22:44:59 2011BootProm: 1.0.94) 查看交换机license授权信息SW300-2:root> licenseshowS9dRRbdQR9TAeSSV:Fabric licenseRyyzcQzS9QSF30dl:Full Ports on Demand license - additional 16 port upgrade licenseRyyzcQzS9QSz30dV:Second Ports on Demand license - additional 8 port upgrade license GXtBXMEYMZJKftgS4KSCMK79mJTPmRfYB7QrH:Enhanced Group Management licenseHMfmJ7gDrR4WM99rXRS7TMYEMfTEBZFfBADFG:8 Gig FC license4) 查看交换机状态SW300-2:root> switchshowswitchName: SW300-2switchType: 71.2switchState: OnlineswitchMode: NativeswitchRole: SubordinateswitchDomain: 2switchId: fffc02switchWwn: 10:00:00:05:33:89:b2:0azoning: ON (config)switchBeacon: OFFIndex Port Address Media Speed State Proto==============================================0 0 020000 id N8 Online FC F-Port 20:14:78:2b:cb:59:f7:891 1 020100 id N8 Online FC F-Port 20:24:78:2b:cb:59:f7:892 2 020200 id N8 Online FC F-Port 20:34:78:2b:cb:59:f7:893 3 020300 id N8 Online FC F-Port 20:44:78:2b:cb:59:f7:894 4 020400 id N8 Online FC F-Port 20:15:78:2b:cb:59:f7:895 5 020500 id N8 Online FC F-Port 20:25:78:2b:cb:59:f7:896 6 020600 id N8 Online FC F-Port 20:35:78:2b:cb:59:f7:897 7 020700 id N8 Online FC F-Port 20:45:78:2b:cb:59:f7:898 8 020800 id N8 Online FC F-Port 20:14:78:2b:cb:58:6d:3a9 9 020900 id N8 Online FC F-Port 20:24:78:2b:cb:58:6d:3a10 10 020a00 id N8 Online FC F-Port 20:34:78:2b:cb:58:6d:3a11 11 020b00 id N8 Online FC F-Port 20:44:78:2b:cb:58:6d:3a12 12 020c00 id N8 Online FC F-Port 20:15:78:2b:cb:58:6d:3a13 13 020d00 id N8 Online FC F-Port 20:25:78:2b:cb:58:6d:3a14 14 020e00 id N8 Online FC F-Port 20:35:78:2b:cb:58:6d:3a15 15 020f00 id N8 Online FC F-Port 20:45:78:2b:cb:58:6d:3a16 16 021000 id N8 No_Light FC17 17 021100 id N8 No_Light FC18 18 021200 id N8 No_Light FC19 19 021300 id N8 No_Light FC20 20 021400 id N8 No_Light FC21 21 021500 id N8 No_Light FC22 22 021600 id N8 No_Light FC23 23 021700 id N8 Online FC E-Port 10:00:00:05:1e:ef:98:d1 "SW300-1" (upstream)5) 查看设备健康状态(如:电源、温度、风扇等)SW300-2:root> switchstatusshowSwitch Health Report Report time: 12/15/2011 04:05:36 AM Switch Name: SW300-2IP address: 10.77.77.78SwitchState: HEALTHYDuration: 297:45Power supplies monitor HEALTHYTemperatures monitor HEALTHYFans monitor HEALTHYFlash monitor HEALTHYMarginal ports monitor HEALTHYFaulty ports monitor HEALTHYMissing SFPs monitor HEALTHYFabric Watch is not licensedDetailed port information is not included2、设备配置文件备份和恢复实施安装完Brocade交换机后、更改Brocade交换机配置、在SAN中添加或者更换交换机时、在升级Brocade交换机之前,都应该在一台PC机(安装了FTP服务)上创建每台交换机配置文件的备份。

配置文件备份的作用:灾难恢复故障诊断及恢复恢复一台无效配置的交换机修改或者扩展SAN恢复意外删除的许可恢复或者重配分区配置将博科交换机的配置保存到本地电脑,可以通过configupload命令将博科交换机的配置文件以文本格式存到本地。

SW300-2:root > configuploadProtocol (scp or ftp) [ftp]: ftpServer Name or IP Address [host]: 192.168.1.99User Name [user]: adminFile Name [config.txt]: config.txtPassword: ********configUpload complete: All config parameters except AD Headers,SFOS, andSecurity parameters are uploaded from AD0当需要恢复交换机配置文件时,可以通过configdownload命令将博科交换机的配置从本地恢复到交换机。

switch:admin> switchdisableswitch:admin> configdownloadProtocol (scp or ftp) [ftp]: ftpServer Name or IP Address [host]: 192.168.1.99User Name [user]: adminFile Name [config.txt]: config.txtPassword:*** CAUTION ***This command is used to download a backed-up configurationfor a specific switch. If using a file from a differentswitch, this file's configuration settings will overrideany current switch settings. Downloading a configurationfile, which was uploaded from a different type of switch,may cause this switch to fail. A switch reboot might berequired for some parameter changes to take effect.Do you want to continue [y/n]: yconfigDownload completed successfully. All parameters are downloaded.SW300-2:root > switchenableSW300-2:root >博科交换机目前只支持scp两种ftp方式保存及恢复配置,一般情况下还是使用ftp的方式比较多,注意这里是ftp而不是tftp。

相关主题