16
Using the Command-Line Interface
How to Use the CLI to Configure Features
Searching and Filtering Output of show and more Commands
You can search and filter the output for
show
and
more
commands. This is useful when you need to sort through large
amounts of output or if you want to exclude output that you do not need to see. Using these commands is optional.
To use this functionality, enter a
show
or
more
command followed by the pipe character (|), one of the keywords
begin
,
include
, or
exclude
, and an expression that you want to search for or filter out:
command
|
{
begin
|
include
|
exclude
}
regular-expression
Expressions are case sensitive. For example, if you enter
| exclude output
, the lines that contain
output
are not
displayed, but the lines that contain
Output
appear.
This example shows how to include in the output display only lines where the expression
protocol
appears:
Switch#
show interfaces | include protocol
Vlan1 is up, line protocol is up
Vlan10 is up, line protocol is down
Accessing the CLI
You can access the CLI through a console connection, through Telnet, or by using the browser.
Accessing the CLI through a Console Connection or through Telnet
To understand the boot process and the options available for assigning IP information, see
If your switch is already configured, you can access the CLI through a local console connection or through a remote Telnet
session, but your switch must first be configured for this type of access. For more information, see
Password for a Terminal Line: Example, page 184
.
You can use one of these methods to establish a connection with the switch:
Connect the switch console port to a management station or dial-up modem. For information about connecting to
the console port, see the
Hardware Installation Guide Hardware Technical Guide
.
Use any Telnet TCP/IP or encrypted Secure Shell (SSH) package from a remote management station. The switch
must have network connectivity with the Telnet or SSH client, and the switch must have an enable secret password
configured.
The switch supports up to 16 simultaneous Telnet sessions. Changes made by one Telnet user are reflected in all
other Telnet sessions.
For information about configuring the switch for SSH, see
Configuring the SSH Server, page 179
. The switch
supports up to five simultaneous secure SSH sessions.
After you connect through the console port, through a Telnet session or through an SSH session, the user EXEC prompt
appears on the management station.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...