Chapter 4
C Commands
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
clear zone
To clear all configured information in the zone server for a specified VSAN, use the clear zone command
in EXEC mode.
Syntax Description
database
lock
statistics
lun-zoning
read-only-zoning
vsan
vsan-id
Defaults
None.
Command Modes
EXEC mode.
Command History
Release
1.0(2)
3.0(1)
Usage Guidelines
After issuing a clear zone database command, you need to explicitly issue the copy running-config
startup-config to ensure that the running configuration is used when you next start the switch.
When you issue the clear zone lock command from a remote switch, only the lock on that remote switch
is cleared. When you issue the clear zone lock command from the switch where the lock originated, all
locks in the VSAN are cleared.
The recommended method to clear a session lock on a switch where the lock originated is by issuing the
Note
no zone commit vsan command.
Examples
The following example shows how to clear all configured information in the zone server for VSAN 1:
switch# clear zone database vsan 1
Related Commands
Command
show zone
OL-18089-01, Cisco MDS NX-OS Release 4.x
clear zone {database | lock | statistics {lun-zoning | read-only-zoning}} vsan vsan-id
Clears zone server database information.
Clears a zone server database lock.
Clears zone server statistics.
Clears LUN-zoning related statistics.
Clears read-only zoning related statistics.
Clears zone information for a VSAN.
The ID of the VSAN is from 1 to 4093.
Modification
This command was introduced.
Added the lock option.
Description
Displays zone information for any configured interface.
Cisco MDS 9000 Family Command Reference
clear zone
4-97