Send documentation comments to mdsfeedback-doc@cisco.com
1-20
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 1 CLI Overview
Searching and Filtering CLI Output
Clearing a Configuration
To clear a startup configuration, enter the write erase command from the EXEC mode prompt. Once this
command is issued, the switch’s startup configuration reverts to factory defaults. The running
configuration is not affected. The write erase command erases the entire startup configuration with the
exception of any configuration that affects the loader functionality.
The write erase boot command only erases the configuration that affects the loader functionality. The
loader functionality configuration includes the boot variables and the mgmt0 IP configuration
information (IP address, netmask and default gateway).
switch# write erase boot
This command will erase the boot variables and the ip configuration of interface mgmt 0
Searching and Filtering CLI Output
The Cisco MDS SAN-OS CLI provides ways of searching through large amounts of command output
and filtering output to exclude information you do not need. These features are enabled for the show
command, which generally displays large amounts of data.
Note The show command is always entered in EXEC mode.
When output continues beyond what is displayed on your screen, the Cisco MDS SAN-OS CLI displays
a --More-- prompt. Pressing Return displays the next line; pressing the Spacebar displays the next
screen of output.
To search the show command output, use the following command in EXEC mode:
Note Cisco MDS SAN-OS documentation generally uses the vertical bar to indicate a choice of syntax.
However, to search the output of the show command, you need to enter the pipe character (the vertical
bar). In this section the pipe appears in bold (|) to indicate that you should enter this character.
Command Purpose
switch# show any-command | begin pattern
Begins unfiltered output of the show command with
the first line that contains the pattern.