22-6
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 22 Administering the Switch
Defining Command Aliases on the Switch
This example shows how to enable the Cisco Systems Console Telnet login banner:
Console> (enable)
set banner telnet enable
Cisco Systems Console banner will be printed at telnet.
Console> (enable)
This example shows how to disable the Cisco Systems Console Telnet login banner:
Console> (enable)
set banner telnet disable
Cisco Systems Console banner will not be printed at telnet.
Console> (enable)
This example shows how to display the Cisco Systems Console Telnet login banner setting:
Console> (enable)
show banner
MOTD banner:
LCD config:
Telnet Banner:
disabled
Console> (enable)
Defining Command Aliases on the Switch
You can use the
set alias
command to define up to 100 command aliases (shorthand versions of
commands) for frequently used or long and complex commands. The command aliases can save you time
and can help to prevent typing errors when you are configuring or monitoring the switch.
The
name
argument defines the command alias. The
command
and
parameter
arguments define the
command to enter when the command alias is entered at the command line.
To define a command alias on the switch, perform this task in privileged mode:
This example shows how to define two command aliases,
sm8
and
sp8
.
sm8
issues the
show module 8
command, and
sp8
issues the
show port 8
command. This example also shows how to verify the
currently defined command aliases and displays what happens when you enter the command aliases at
the command line:
Console> (enable)
set alias sm8 show module 8
Command alias added.
Console> (enable)
set alias sp8 show port 8
Command alias added.
Console> (enable)
show alias
Task
Command
Step 1
Display or suppress the Cisco Systems Console
Telnet login banner.
set banner telnet
{
enable
|
disable
}
Step 2
Display the Cisco Systems Console Telnet login
banner setting.
show banner
Task
Command
Step 1
Define a command alias on the switch.
set alias
name
command
[
parameter
] [
parameter
]
Step 2
Verify the currently defined command aliases.
show alias
[
name
]