Defining Command Aliases On The Switch - Cisco WS-C6506 Software Manual

Catalyst 6500 series switch
Hide thumbs Also See for WS-C6506:
Table of Contents

Advertisement

Defining Command Aliases on the Switch

Task
Step 1
Display or suppress the Cisco Systems Console
Telnet login banner.
Step 2
Display the Cisco Systems Console Telnet login
banner setting.
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:
Task
Step 1
Define a command alias on the switch.
Step 2
Verify the currently defined command aliases.
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
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
22-6
Chapter 22
Command
set banner telnet {enable | disable}
show banner
Command
set alias name command [parameter] [parameter]
show alias [name]
Administering the Switch
OL-8978-04

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 6506Catalyst 6509Catalyst 6513

Table of Contents