McDATA® 4Gb SAN Switch for HP p-Class BladeSystem Command Line Interface Guide (AA-RWEJA-TE, November 2006)
McDATA® 4Gb SAN Switch for HP p-Class BladeSystem command line interface guide 223
Zone command
Description Manages zones and zone membership on a switch.
Authority Admin session and a Zoning Edit session. See the Zoning command for information about
starting a Zoning Edit session. The list, members, and zonesets operands are available
without an Admin session.
Syntax
zone
add [zone] [member_list]
copy [zone_source] [zone_destination]
create [zone]
del
ete [zone]
list
members [zone]
remove [zone] [member_list]
rename [zone_old [zone_new]
zonesets [zone]
Operands
add [zone] [member_list]
Specifies one or more ports/devices given by [members] to add to the zone named [zone].
Use a <space> to delimit ports/devices in [member_list]. A zone can have a maximum of
2047 members. [member_list] can have any of the following formats:
• Domain ID and port number pair (Domain ID, Port Number). Domain IDs can be 1–31 in
McDATA Fabric mode or 97–127 in Standard mode; port numbers can be 0–255.
• 16-character hexadecimal WWPN with the format xx:xx:xx:xx:xx:xx:xx:xx.
The application verifies that the [members] format is correct, but does not validate that such a
member exists.
copy [zone_source] [zone_destination]
Creates a new zone named [zone_destination] and copies the membership into it from the
zone given by [zone_source].
create [zone]
Creates a zone with the name given by [zone]. A zone name must begin with a letter and be
no longer than 64 characters. Valid characters are 0—9, A—Z, a—z, _, $, ^, and -. The zoning
database supports a maximum of 2047 zones.
delete [zone]
Deletes the specified zone given by [zone] from the zoning database. If the zone is a
component of the active zone set, the zone will not be removed from the active zone set until the
active zone set is deactivated.
list
Displays a list of all zones and the zone sets of which they are components. This operand does
not require an Admin session.
members [zone]
Displays all members of the zone given by [zone]. This operand does not require an Admin
session.
remove [zone] [member_list]
Removes the ports/devices given by [member_list] from the zone given by [zone]. Use a
<space> to delimit ports/devices in [member_list]. [member_list] can have any of the
following formats:
• Domain ID and port number pair (Domain ID, Port Number). Domain IDs can be 1–31 in
McDATA Fabric mode or 97–127 in Standard mode; port numbers can be 0–-255.
• 16-character hexadecimal WWPN with the format xx:xx:xx:xx:xx:xx:xx:xx.