Accessing The Cli On A Switch Stack - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

Using the Command-Line Interface
DETAILED STEPS
Command or Action
Step 1
{show | more} command | {begin | include | exclude}
regular-expression
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)
Accessing the CLI on a Switch Stack
Purpose
Searches and filters the output.
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.
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents