banner

Defines a login banner.
Syntax
banner [ exec | incoming ] banner-string
no banner [ exec | incoming ] banner-string
banner motd { banner-string | require-enter-key }
no banner motd { banner-string | require-enter-key }
Command Default

A banner is not configured.

Parameters
exec
Sets the EXEC process creation banner; that is, the message to be displayed when you enter the Privileged EXEC mode.
incoming
Sets the incoming terminal line banner; that is, the message to be displayed on the console when a user establishes a Telnet session.
banner-string
The ASCII string indicating the banner string in the format "c banner text c" where "c" is the delimiting character.
motd
Sets the message of the day (MOTD) banner; that is, the message to be displayed on a user terminal when a Telnet CLI session is established.
require-enter-key

Requires pressing of the Enter key after the MOTD message is displayed. This requirement is disabled by default. Unless configured, you do not have to press Enter after the MOTD banner is displayed.

Modes

Global configuration mode

Usage Guidelines

The banner-string includes a delimiting character. You begin and end the message with this delimiting character. The delimiting character can be any character except a double-quotation mark (") and cannot appear in the banner text. The banner text can be up to 4000 characters long, and can consist of multiple lines.

The no form of the command removes the banner. Use the no banner motd require-enter-key command to remove the requirement of pressing the Enter key once the banner text is displayed.

Examples

The following example shows how to set a banner with "c" as the delimiting character.

device(config)# banner c Good Morning! c

The following example shows how to set a MOTD banner with "$" as the delimiting character.

device(config)# banner motd $ Welcome!!! $

The following example shows how to configure the requirement to press the Enter key after the banner message is displayed.

device(config)# banner motd require-enter-key

The following example shows the message displayed when the requirement to press the Enter key is enabled upon accessing the switch from Telnet.

Authorized Access Only ...
Press <Enter> to accept and continue the login process....