免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3297 | 回复: 0
打印 上一主题 下一主题

[存储网络] brocade SAN交换机命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-10 23:44 |只看该作者 |倒序浏览
查看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.
swd77:root>


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/58716/showart_2050004.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP