DETAILED STEPS
Purpose
Command or Action
Searches and filters the output.
{
show
|
more
}
command
| {
begin
|
include
|
exclude
}
regular-expression
Step 1
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.
Example:
Switch#
show interfaces | include protocol
Vlan1 is up, line protocol is up
Vlan10 is up, line protocol is down
GigabitEthernet1/0/1 is up, line protocol is down
GigabitEthernet1/0/2 is up, line protocol is up
Accessing the CLI on a Switch Stack
You can access the CLI through a console connection, through Telnet, a SSH, or by using the browser.
You manage the switch stack and the stack member interfaces through the active switchstack master. You
cannot manage stack members on an individual switch basis. You can connect to the active switchstack master
through the console port or the Ethernet management port of one or more stack members. Be careful with
using multiple CLI sessions on the active switchstack master. Commands that you enter in one session are
not displayed in the other sessions. Therefore, it is possible to lose track of the session from which you entered
commands.
We recommend using one CLI session when managing the switch stack.
Note
If you want to configure a specific stack member port, you must include the stack member number in the CLI
command interface notation.
To debug the standby switch, use the
session standby ios
privileged EXEC command from the active switch
to access the IOS console of the standby switch. To debug a specific stack member, use the
session switch
stack-member-number
privileged EXEC command from the active switch to access the diagnostic shell of
the stack member. For more information about these commands, see the switch command reference.
To debug a specific stack member, you can start a CLI session from the stack master by using the
session
stack-member-number
privileged EXEC command. The stack member number is appended to the system
prompt. For example,
Switch-2#
is the prompt for stack member 2 where the system prompt for the stack
master is Switch. Only the
show
and
debug
commands are available in a CLI session to a specific stack
member. You can also use the
remote command stack-member-number LINE
privileged EXEC command
on the stack master to enable debugging on a member switch without first starting a session.
Accessing the CLI Through a Console Connection or Through Telnet
Before you can access the CLI, you must connect a terminal or a PC to the switch console or connect a PC to
the Ethernet management port and then power on the switch, as described in the hardware installation guide
that shipped with your switch.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
11
Using the Command-Line Interface
Accessing the CLI on a Switch Stack
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......