banner

Syntax

banner {motd | exec} <DELIMITER>
no banner {motd | exec} 

Description

Enables the customization of the MOTD or the EXEC banner.

The no form of the command disables the MOTD or the EXEC banner.

Command context

config

Parameters

exec

Configures the banner displayed after the login prompt.

motd

Configures the banner displayed before the password prompt.

<DELIMITER>

Selects a character that will terminate the input string.

Authority

Administrators or local user group members with execution rights for this command.

Usage

This command enables the customization of two types of banners:

  • The MOTD banner. The banner displayed on attempting to connect to a management interface.

  • The EXEC banner. The banner displayed upon successful authentication.

You can create a banner that spans multiple lines. The maximum length of a banner is 4,095 characters. This requirement includes any non-visible characters. The minimum number of characters allowed is an empty string, which displays no banner.

End the banner text with a chosen delimiter character. A delimiter character can be any non-whitespace character that does not have special meaning to the CLI, such as the caret (^). A question mark (?) is not permitted. Question marks can however be included as part of the banner text.

Examples

Configuring the banner displayed before the password prompt:

switch(config)# banner motd ^
Enter a new banner. Terminate the banner with the delimiter you have chosen.
(banner-motd)# This is an example of a banner text which a connecting user
(banner-motd)# will see before they are prompted for their password.
(banner-motd)#
(banner-motd)# As you can see it may span multiple lines and the input
(banner-motd)# will be terminated when the delimiter character is
(banner-motd)#encountered.^

Configuring the banner displayed after a user has logged on to the switch:

switch(config)# banner exec &
Enter a new banner. Terminate the banner with the delimiter you have chosen.
(banner-motd)# This is an example of a different banner text. This time
(banner-motd)# the banner entered will be displayed after a user has
(banner-motd)# authenticated.
(banner-motd)#
(banner-motd)# & This text will not be included because it comes after the '&'

Disabling the MOTD banner:

switch(config)# no banner motd