Cisco brocade SAN 常用命令

来源:互联网 发布:玩客云官网抢购软件 编辑:程序博客网 时间:2024/04/26 01:10

博科交换机查看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>

设置博科Brocade交换机IP地址

博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换机的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>

博科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>

博科brocade交换机添加license授权信息

swd77:admin> licenseadd XXXXXXXX(博科的激活号)

查看博科brocade交换机license授权信息

在命令行模式下使用licenseshow命令可以查看博科交换机的授权情况,使用licenseadd命令可以添加授权。

博科Brocade Slikworm 210E交换机授权情况

swd77:admin> licenseshow
RzcQSXXXCS0RTc:
Unknown1 license
S9zXXXCSzRTScl:
Unknown2 license
b9QQGGHJHARRdF:
Fabric license
swd77:admin>

其中两个Unknown1 和Unknown2这两个授权应该是两个4端口的授权。Fabric license是级联license授权,是我后来添加的,默认的210E交换机是没有的。

博科Brocade Slikworm 300交换机

swd77:admin> licenseshow
XSCJBCmH3SARFa7BXrVVBGGFFRRXBArGR:
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 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>

查看博科Brocade交换机状态

swd77:admin> swtichshow
rbash: swtichshow: command not found
swd77:admin> switchshow
switchName: swd77
switchType: 34.0
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:05:1e:09:xx:xx
zoning: OFF
switchBeacon: OFF

Area 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: 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结束就行了,如果回车会让分别设置各个帐号的密码,出现如下信息:

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

登陆后是用passwddefault命令恢复出厂密码

swd77:root> passwddefault
Password policies are already set to default.
All account passwords have been successfully set to factory default.

 

Ununtn网络管理

文章转载至http://bbs.net527.cn  思科网络技术论坛

思科视频下载

CCNP

ccie认证

无忧网客联盟主站

WOLF老余的mpls 00-18(最新更新完毕)2009

Cisco MIBGP MPLS VPN 配置指导

运营级带宽城域网 网络优化

原创粉丝点击