HP StorageWorks Fabric OS 5.0.0 Command Reference Guide (AA-RW1MA-TE, May 2005)

724 Fabric OS commands
Copies a zone object.
Synopsis
zoneObjectCopy objectName, newName
Availability
admin
NOTE: This command requires an HP Advanced Zoning license.
Description
Use this command to copy a zone object to a new zone object. The resulting object has the same type as
the original object. You can use this command for all zone object types, including cfg, zone, and alias.
A zone configuration name must begin with a letter that can be followed by any number of letters,
numbers, and underscores. Names are case sensitive; for example, Cfg_1 and cfg_1 are different zone
configurations. Spaces are ignored.
This command changes the defined configuration. For the change to be preserved across switch reboots, it
must be saved to flash memory using the cfgSave command. For the change to become effective, an
appropriate zone configuration must be enabled using the cfgEnable command.
Refer to the zoneCreate command for more information on name and member specifications.
NOTE: When security mode is enabled, this command can be issued only from the primary FCS switch.
Operands
This command has the following operands:
Examples
To create a configuration containing three zones:
zoneObjectCopy
objectName The name of the object that you want to copy. This operand is required.
newName The name of the object that you want created. This operand is required.
switch:admin> cfgShow "*"
cfg: USA_cfg Red_zone; White_zone; Blue_zone
switch:admin> zoneObjectCopy "USA_cfg", "UK_cfg"
switch:admin> cfgShow "*"
cfg: UK_cfg Red_zone; White_zone; Blue_zone
cfg: USA_cfg Red_zone; White_zone; Blue_zone