HP StorageWorks Fabric OS 6.x administrator guide (5697-7344, March 2008)

Fabric OS 6.x administrator guide 411
For example, to display all zone configurations that start with β€œTest”:
switch:admin> cfgshow "Test*"
cfg: Test1 Blue_zone
cfg: Test_cfg Red_zone; Blue_zone
To view a configuration in the effective zone database:
1. Connect to the switch and log in as admin.
2. Enter the cfgActvShow command.
switch:admin> cfgactvshow
Effective configuration:
cfg: NEW_cfg
zone: Blue_zone
1,1
21:00:00:20:37:0c:76:8c
21:00:00:20:37:0c:71:02
1,2
21:00:00:20:37:0c:76:22
21:00:00:20:37:0c:76:28
zone: Red_zone
1,0
21:00:00:20:37:0c:76:85
21:00:00:20:37:0c:71:df
Maintaining zone objects
Although you can use the cfgDelete command to delete a zone configuration, there is a quicker and
easier way to perform the same task with the zone object commands (zoneObjectExpunge,
zoneObjectCopy, and zoneObjectRename). You can also copy and rename zone objects. When you
copy a zone object, the resulting object has the same type as the original. Deleting a zone object also
removes the object from any member lists of other objects. You can rename objects for all zone object
types.
To copy a zone object:
1. Connect to the switch and log in as admin.
2. Enter the cfgShow command to view the zone configuration objects you want to copy.
cfgshow "pattern"[, mode]
The values represent the following:
For example, to display all zone configuration objects that start with β€œTest”:
switch:admin> cfgshow "Test*"
cfg: Test1 Blue_zone
3. Enter the zone
--copy command, specifying the zone configuration objects you want to copy, along
with the new object name. Note that zone configuration names are case-sensitive; blank spaces are
ignored and it works in any Admin Domain other than AD255.
switch:admin> zone --copy "Test1", "US_Test1"
pattern A POSIX-style regular expression used to match zone configuration names.
mode Specify 0 to display the contents of the transaction buffer (the contents of
the current transaction), or specify 1 to display the contents of the
nonvolatile memory. The default value is 0.