Clearing A Configuration; Searching And Filtering Cli Output - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Searching and Filtering CLI Output

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

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.
The show command is always entered in EXEC mode.
Note
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:
Command
switch# show any-command | begin pattern
Cisco MDS SAN-OS documentation generally uses the vertical bar to indicate a choice of syntax.
Note
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 (
Cisco MDS 9000 Family Command Reference
1-20
Purpose
Begins unfiltered output of the show command with
the first line that contains the pattern.
) to indicate that you should enter this character.
|
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 1
CLI Overview

Advertisement

Table of Contents
loading

Table of Contents