One can use zoneObjectRename
command for all zone object types, including cfgs, zones, and aliases.
SYNTAX
zoneObjectRename "objectName", "newName"
Use the following procedure to rename a zone object.
- Connect to the switch and log in using an account with admin permissions.
- Enter cfgShow to view the zone configuration objects you want to rename.
switch:admin> cfgShow
Defined configuration:
cfg: USA_cfg Purple_zone; White_zone; Blue_zone
zone: Blue_zone
1,1; array1; 1,2; array2
zone: Purple_zone
1,0; loop1
zone: White_zone
1,3; 1,4
alias: array1 21:00:00:20:37:0c:76:8c; 21:00:00:20:37:0c:71:02
alias: array2 21:00:00:20:37:0c:76:22; 21:00:00:20:37:0c:76:28
alias: loop1 21:00:00:20:37:0c:76:85; 21:00:00:20:37:0c:71:df
- Enter
zoneObjectRename
to rename zone configuration objects.
Note: A zone configuration name can either begin with a letter or number and can consist of letters, numbers, hyphen (-), underscore (_), dollar ($), or caret (^) characters. Names are case-sensitive. For example, "Cfg_1" and "cfg_1" are different zone configurations. Quotation marks are optional. Spaces are ignored.
switch:admin> zoneobjectrename "USA_cfg", "UK_cfg" -->To rename cfg
switch:admin> zoneObjectRename "White_zone", "Red_zone" -->To rename zone
switch:admin> zoneObjectRename "array2", "array5" -->To rename alias
- Enter the cfgShow command to verify the renamed zone object is present.
- If you want the change preserved when the switch reboots, enter the
cfgSave
command to save it to non-volatile (flash) memory.
Note: If the renamed zone object is still used in the effective configuration, running cfgSave
before cfgEnable is not allowed.
- Enter the
cfgEnable
command for the appropriate zone configuration to make the change effective.
Zones and Aliases can be modified/renamed via Webtool as well.
To edit an existing zone, perform the following steps:
- Click Zoning in the navigation bar, and then select the Zones tab.
- Select the (⌄) icon next to the zone that you want to edit, and then click View.
- Select Save As from the Save drop-down and perform the required changes. You can re-name the zone or modify the existing zone with the same name.
You can remove the selected members by selecting the Remove button.
- Click Save.
To edit an existing zone alias, perform the following steps:
- Click Zoning in the navigation bar, and then select the Zone Aliases tab. The Zone Aliases window is displayed.
- Select the (⌄) icon next to the zone alias that you want to edit, and then click View.
- Select Save As from the Save drop-down and perform the required changes. You can re-name the alias or modify the existing zone alias with the same name.
You can remove the selected members by selecting Remove button.
- Click Save.