博科Brocade光纤交换机的一些基本命令

Routers, Switches, Wireless, IP Devices, Network Security, Network Management Software, etc

Moderator: xyevolve

Forum rules
1. 本版是定位于惠普网络产品的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。

博科Brocade光纤交换机的一些基本命令

Post # 1 by MUDBOY » 2017-06-27 11:25

# Add a memeber to a zone
> zoneadd "Crm1_zoneA", "server1_pci0_emulex"

# Copy an existing zone
> zoneCopy

# Create a new zone
> zonecreate "ZoneName", "Alias"

# Delete a zone
> zoneDelete

# Remove a zone from the configuration
> zoneRemove

# Rename a zone
> zoneRename

# Print the current zone configuration
> zoneShow

# Add a member to the configuration
> cfgAdd

# Copy a zone configuration
> cfgCopy

# Create a zone configuration
> cfgCreate

# Delete a zone configuration
> cfgDelete

# Remove a member from a zone configuration
> cfgRemove

# Rename a zone configuration
> cfgRename

# Print zone configuration
> cfgShow

# Add a member to a zone alias
> aliAdd

# Copy a zone alias
> aliCopy

# Create a zone alias
> aliCreate "server1_pci0_emulex", "10:00:00:00:c9:32:75:92"

# Delete a zone alias
> aliDelete

# Remove a member from a zone alias
> aliRemove

# Rename a zone alias
> aliRename

# Print zone alias information
> aliShow

# Show the entries in the name server
> nsshow

# Dump the error log
> errdump
> errshow

# Dump port errors
> portErrShow

# Print port error log
> portLogDump

# Print port activity
> portLogShow

# Disable and enable the switch
> switchdisable
> switchenable

# Configure a trunk port
> portCfgTrunkPort

# Download new firmware
> firmwareDownload

# Configure the domain and CorePID
> configure

# Show port statistics
> portStatsShow

# Commands required to create a new zone

1. Create an alias
$ alicreate "<alias name>", "PWWN"

2. Create a zone
$ zonecreate "Zone_name", "Alias_name; storage_port_alias"

3. Optionally add additional aliases to the zone
$ zoneadd "Current_zone_name", "Alias_to_add"

4. Optionally remove aliases from a zone
$ zoneremove "Current_zone_name", "Alias_to_remove"

5. Add the zone to the definied configuration
$ cfgadd "CFG_Name", "Zone_name"

6. Optionally remove a zone from the effective configuration
$ cfgremove "cfg_name", "Zone_name_to_remove"

7. Save the definied configuration to persisten storage
$ cfgsave

8. Enable the configuration
$ cfgenable "CFG_Name"

提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.
User avatar
MUDBOY
创始人
 
Posts: 3735
Joined: 2010-12-28

Re: 博科Brocade光纤交换机的一些基本命令

Post # 2 by MUDBOY » 2017-06-27 11:26

删除zone配置

#remove zone configuration after disconnect storage from the fabric

#show zone info
#zoneshow "*ns480*" | grep zone

#show alias info
#alishow "*ns480" | grep alias

#show active config profile
#cfgshow | grep cfg

#remove the zone from config profile 'default'
#cfgremove "default", "sdcqhawksql_a_ns480_b5"

#remove zone
#zonedelete "sdcqhawksql_a_ns480_b5"

#remove alias
#alidelete ns480_b5

#cfgenable default

#cfgsave
提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.
User avatar
MUDBOY
创始人
 
Posts: 3735
Joined: 2010-12-28

Re: 博科Brocade光纤交换机的一些基本命令

Post # 3 by MUDBOY » 2017-06-27 11:32

添加zone配置

#根据WWN查找信息(name,port#,判断alias是否创建等)
sdcpsansw01:admin> nodefind 21:00:00:24:FF:19:A0:58
Local:
Type Pid COS PortName NodeName SCR
N 0c2300; 3;21:00:00:24:ff:19:a0:58;20:00:00:24:ff:19:a0:58; 0x00000003
FC4s: FCP [DGC LUNZ 0430]
NodeSymb: [51] "QLE2562 FW:v8.04.00 DVR:v8.07.00.34.Trunk-SCST.19-k"
Fabric Port Name: 20:23:00:05:1e:8d:f6:d5
Permanent Port Name: 21:00:00:24:ff:19:a0:58
Device type: Physical Initiator
Port Index: 35
Share Area: No
Device Shared in Other AD: No
Redirect: No
Partial: No
LSAN: No
Aliases:

#创建alias
sdcpsansw01:admin> alicreate "netbackup5240_hba0","20:00:00:24:ff:19:a0:58"
sdcpsansw01:admin> alishow netback*
alias: netbackup5240_hba0
20:00:00:24:ff:19:a0:58

#查看已知存储磁带的alias
sdcpsansw01:admin> alishow *sdctl02*
alias: sdctl02_drive1
50:01:43:80:13:e9:75:3a
alias: sdctl02_drv1
50:01:43:80:27:1a:b8:85
alias: sdctl02_drv2
50:01:43:80:27:1a:b8:88

#创建zone
sdcpsansw01:admin> zonecreate "netbackup5240_hba0__sdctl02_drv1","netbackup5240_hba0;sdctl02_drv1"
#添加zone到config
sdcpsansw01:admin> cfgadd "default","netbackup5240_hba0__sdctl02_drv1"

sdcpsansw01:admin> zonecreate "netbackup5240_hba0__sdctl02_drv2","netbackup5240_hba0;sdctl02_drv2"
sdcpsansw01:admin> cfgadd "default","netbackup5240_hba0__sdctl02_drv2"

#verify查看zone信息
sdcpsansw01:admin> zoneshow netbackup*
zone: netbackup5240_hba0__sdctl02_drv1
netbackup5240_hba0; sdctl02_drv1
zone: netbackup5240_hba0__sdctl02_drv2
netbackup5240_hba0; sdctl02_drv2

#保存config信息
sdcpsansw01:admin> cfgsave
WARNING!!!
The changes you are attempting to save will render the
Effective configuration and the Defined configuration
inconsistent. The inconsistency will result in different
Effective Zoning configurations for switches in the fabric if
a zone merge or HA failover happens. To avoid inconsistency
it is recommended to commit the configurations using the
'cfgenable' command.

Do you want to proceed with saving the Defined
zoning configuration only? (yes, y, no, n): [no] y
Updating flash ...

#应用config配置"default"
sdcpsansw01:admin> cfgenable default
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected. If the update includes changes
to one or more traffic isolation zones, the update may result in
localized disruption to traffic on ports associated with
the traffic isolation zone changes.
Do you want to enable 'default' configuration (yes, y, no, n): [no] y
zone config "default" is in effect
Updating flash ...
sdcpsansw01:admin>

提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.
User avatar
MUDBOY
创始人
 
Posts: 3735
Joined: 2010-12-28


Return to Networking

Who is online

Users browsing this forum: No registered users and 3 guests

cron