McDATA® 4Gb SAN Switch for HP p-Class BladeSystem Command Line Interface Guide (AA-RWEJA-TE, November 2006)

64
Modifying the zoning database
To modify the zoning database, you must open an Admin session with the Admin Start command. An
Admin session prevents other accounts from making changes at the same time through Telnet, McDATA
Web Server, or another management application. You must also open a Zoning Edit session with the
Zoning Edit command. The Zoning Edit session provides access to the Zoneset, Zone, and
Zoning commands with which you make modifications to the zoning database.
McDATA4GbSAN #> admin start
McDATA4GbSAN (admin) #> zoning edit
McDATA4GbSAN (admin-zoning)#> zoneset . . .
McDATA4GbSAN (admin-zoning)#> zone . . .
McDATA4GbSAN (admin-zoning)#> zoning . . .
During the Zoning Edit session, if you want to discard changes without closing the session, enter the
Zoning Restore command. When you are finished making changes, enter the Zoning Save
command to save the changes. Enter the Zoning Cancel command to close the Zoning Edit session.
McDATA4GbSAN (admin-zoning)#> zoning save
McDATA4GbSAN (admin-zoning)#> zoning cancel
Changes to the active zone set do not take effect until you activate it with the Zoneset Activate
command:
McDATA4GbSAN (admin)#> zoneset activate zoneset_1
McDATA4GbSAN (admin)#> admin end
The Admin End command releases the Admin session for other administrators when you are done
making changes to the switch.
To remove all zoning database objects (zones, and zone sets) and restore the zoning database to its
factory state, enter the Reset Zoning command as shown in the following example:
McDATA4GbSAN (admin) #> reset zoning
Resetting the zoning database
There are two ways to remove all zones and zone sets from the zoning database:
Enter the Reset Zoning command as shown in the following example. The security configuration
values, AutoSave and DefaultZone remain unchanged. This is the preferred method.
McDATA4GbSAN #> admin start
McDATA4GbSAN (admin) #> reset zoning
Enter the Zoning Clear command as shown in the following example:
McDATA4GbSAN #> admin start
McDATA4GbSAN (admin) #> zoning edit
McDATA4GbSAN (admin-zoning) #> zoning clear
McDATA4GbSAN (admin-zoning) #> zoning save
See the ”Reset command” on page 132.
Removing inactive zone sets and zones
Enter the Zoning Delete Orphan command to delete all objects from the zoning database except
those in the active zone set.
McDATA4GbSAN #> admin start
McDATA4GbSAN (admin) #> zoning edit
McDATA4GbSAN (admin-zoning) #> zoning delete orphans
McDATA4GbSAN (admin-zoning) #> zoning save
See the ”Zoning command” on page 228.