20-5
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 20 Administering the Switch
Defining Command Aliases
Configuring a Login Banner
To configure a login banner, perform this task in privileged mode:
This example shows how to configure the login banner on the switch using the
#
symbol as the beginning
and ending delimiter:
Console> (enable)
set banner motd #
Welcome to the Catalyst 6000 Switch!
Unauthorized access prohibited.
Contact [email protected] for access.
#
MOTD banner set
Console> (enable)
Clearing the Login Banner
To clear the login banner, perform this task in privileged mode:
This example shows how to clear the login banner:
Console> (enable)
set banner motd ##
MOTD banner cleared
Console> (enable)
Defining Command Aliases
You can use the
set alias
command to define command aliases (shorthand versions of commands) for
frequently used or long and complex commands. Command aliases can save you time and can help
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
Command
Step 1
Enter the message of the day.
set banner motd
c message_of_the_day c
Step 2
Display the login banner by logging out and
logging back into the switch.
Task
Command
Clear the message of the day.
set banner motd
cc
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
]