光纤交换机配置-命令模式

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Zoning With CLI Commands
Dell™ PowerVault™ 5x F Switches Zoning Guide
Creating and Modifying Zone Aliases
Creating and Modifying Zones
Creating and Modifying Zone Configurations
Managing a Zone Configuration
You can zone Dell™ PowerVault™ switches using Command Line Interface (CLI)
commands by creating and managing the three principal zoning object
types—alias, zone, and configuration. You issue the commands during a Telnet
session with the switch(es). (Refer to your PowerVault switch Installation and
Troubleshooting Guide for details on creating a Telnet session with the switch.)
NOTE: Before issuing any zoning commands, use the switchShow command on each switch i are connected. All ports used for interswitch links (ISL) display the neighboring switches' WWN Follow this general sequence of steps when creating a new zone configuration.
NOTE: See "Zoning Roadmap" in "Introduction" for additional guidelines on creating or managin
1.Define the core aliases.
2.Define all zones.
3.Add aliases and members to the zones.
4.Define the zone configuration.
5.Add zones to the configuration.
6.Enable the configuration.
7.Test the configuration.
8.Save the configuration.
Including Multiple Items in a CLI Command
To include multiple items in a CLI command, separate the items with semicolons,
within a single pair of quotes:
command "name_of_zoning_object", "member; member; member"
For example, zoneAdd "Red_zone", "1,10;1,12" adds domain 1, port 10 and
domain 1, port 12 to zone "Red_zone".
Creating and Modifying Zone Aliases
While aliases are not required in a zone configuration, they can make it easier to manage complex configurations in your zone. After you create aliases, you can then move to the next section and create and configure zones.
aliCreate
The following example shows three instances of the aliCreate command, which creates a new zone alias.
aliDelete
The following example shows the aliDelete command, which deletes an existing zone alias.
aliAdd
The following example shows three instances of the aliAdd command, which adds one or more new alias members to an existing zone alias and is a list of one or more physical-fabric port numbers (such as 1,2) or WWNs (such as
10:00:00:60:69:00:00:8a) separated by semicolons.
admin> aliAdd "array1", "21:00:00:20:37:0c:72:51;
21:00:00:20:37:0c:71:0a"
admin> aliAdd "array2", "21:00:00:20:37:0c:9c:6b;
21:00:00:20:37:0c:66:3a"
admin> aliAdd "loop1", "21:00:00:20:37:0c:6a:40;
21:00:00:20:37:0c:59:7e"
White spaces are ignored. The alias members list cannot contain references to any other zone aliases.
aliRemove
The following example shows the aliRemove command, which removes one or more members from an existing zone alias.
The members to be removed are found by an exact string match. When removing multiple members, sequence is important. If this command results in all members being removed, the system deletes the zone alias.
aliShow
The following example shows the aliShow command, which displays the
specified zone alias definition if a parameter is given (otherwise all zone
configuration information is displayed).
Creating and Modifying Zones
You can use the following CLI commands to create or manipulate the zones and their members with a fabric. These members may consist of fabric ports, WWNs, or aliases.
zoneCreate
Use this command to create a zone with one or more members. The following example shows thre instances of the zoneCreate command.
zoneDelete
The following example shows the zoneDelete command, which deletes an
existing zone.
zoneAdd
The following example shows the zoneAdd command, which adds one or more
new members to an existing zone.
zoneRemove
The following example shows the zoneRemove command, which removes one or
more members from an existing zone.
The members to be removed are found by an exact string match. Therefore, when
removing multiple members, sequence is important. If this command removes all
members, the system deletes the zone.
zoneShow
The following example shows the zoneShow command, which displays the
specified zone definition if a parameter is given (otherwise all zone configuration
information is displayed).
Creating and Modifying Zone Configurations
After creating zones, you can create or remove zone configurations and their members using CLI commands.
cfgCreate
The following example shows the cfgCreate command, which creates a new zone configuration.
cfgDelete
The following example shows the cfgDelete command, which deletes an existing
zone configuration.
cfgAdd
The following example shows the cfgAdd command, which adds one or more new zones to an existing zone configuration.
cfgRemove
The following example shows the cfgRemove command, which removes one or more zones from an existing zone configuration.
The zones to be removed are found by an exact string match. When removing multiple members, sequence is important. If this command removes all members, the system deletes the zone configuration.
cfgShow
The following example shows the cfgShow command, which displays the specified zone configuration definition if a parameter is given (otherwise, all zone configuration information is displayed)
Adding a New Device to a Configuration
1.Create an alias for the device by typing
aliCreate "alias_name", WWN (or port number)
2.Add the alias to the appropriate zone(s) by typing
zoneAdd "zone_name", "alias_name"
3.Save the configuration by typing
cfgSave "config_name"
4.Enable the configuration by typing
cfgEnable "config_name"
Removing a Device From a Zone Configuration
1.Remove the device from the zone:
a.If there is only one device in the alias, type
zoneRemove "zone_name", "alias_name"
a.If you are removing a single device from an alias that includes
several devices, type
zoneRemove "zone_name", "alias_name", WWN (or port number)
a.To remove multiple devices, type aliRemove "alias_name", followed
by the WWN (or port number) of each device you are removing.
2.Save the new configuration by typing
cfgSave "config_name"
3.Enable the configuration by typing
cfgEnable "config_name"
Replacing a Device in a Zone Configuration
1.Remove the existing device from the zone:
a.If you are replacing a single device in an alias that includes several
devices, remove the device you are replacing by typing
zoneRemove "zone_name", "alias_name", WWN (or port number)
a.If the device you wish to replace is the only device in the alias, type
zoneRemove "zone_name", "alias_name"
a.To replace multiple devices, type aliRemove "alias_name", followed
by the WWN (or port number) of each device you wish to replace.
2.If desired, create an alias for the replacement device by typing
aliCreate "alias_name", WWN (or port number)
3.Add the device or alias to the appropriate zone(s) by typing
zoneAdd "zone_name", "zone member name"
or
zoneAdd "zone_name", "alias_name"
4.Save the configuration by typing
cfgSave "config_name"
5.Enable the configuration by typing
cfgEnable "config_name"
Managing a Zone Configuration
After creating the zone configuration, use the following commands to enable, save,
disable, or clear the zone configuration.
cfgSave
The following example shows the cfgSave command, which writes a copy of the
defined configuration and the name of the effective configuration to flash memory
in all fabric switches.
The saved configuration is automatically reloaded by the switch at system startup.
If a configuration was in effect when it was saved, the same configuration is
reinstated with an automatic cfgEnable command.
NOTE: Dell recommends saving after you enable and test a configuration. Any unsaved configu cfgEnable
The following example shows the cfgEnable command, which enables a
specified configuration.
cfgDisable
The following example shows the cfgDisable command, which disables the
current zone configuration.
The fabric returns to a nonzoned mode, in which all devices see each other.
cfgClear
The following example shows the cfgClear command, which you should use with
caution.
NOTICE: When executed on any switch in the fabric, the cfgClear
command removes all alias, zone, and configuration information from all
switches in the fabric. Dell recommends clearing any switch before
connecting it to a zoned fabric.
When the cfgClear command is used on an enabled zone configuration, it is first
disabled. The system then deletes all defined zone objects. However, the saved
configuration remains in flash memory. To clear the configuration from memory,
type cfgSave after cfgClear and press <Enter>.。

相关文档
最新文档