Example: Setting the user-configurable banner message after authentication

A text message that has been configured with the banner motd command displays with the authentication prompt when a user opens a console, telnet, SSH, or WebAgent session.

The exec option of the banner command displays a user-configurable message after the user has been authenticated. If there is no password on the switch, the exec banner message displays immediately.

Syntax

[no] banner exec <ASCII-string>

Sets the exec banner text. Text can be multiple lines up to 3070 characters, and can consist of any printable character except the tilde (~) and the delimiting character.

<ASCII-string>

The text must end with a delimiting character, which can be any single character except the tilde (~) character.

The [no] version of the command removes the banner exec text.

The banner exec command

switch(config)# banner exec &

Enter TEXT message. End with the character &

This is Switch A in the language lab &

Use the show banner exec command to display the status and text for the exec banner configuration.

Displaying banner exec configuration

switch(config)# show banner exec

Banner Information

Banner Status: Enabled
Configured Banner:

This is Switch A in the language lab