Basic Operation Guide 2014/02

If a banner is configured, the switch does not allow configuration with ssh version 1 or ssh
version 1-or-2. Attempting to do so produces the following error message in the CLI:
Banner has to be disabled first.
If a banner is enabled on the switch, the WebAgent displays the following link to the banner
page:
Notice to all users
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 allows a user-configurable message to be displayed
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.
Example 5 The banner exec command
HP Switch(config)# banner exec &
Enter TEXT message. End with the character &
This is Switch A in the language lab &
To display the status and text for the exec banner configuration, use the show banner exec
command.
Example 6 Displaying banner exec configuration
HP Switch(config)# show banner exec
Banner Information
Banner Status: Enabled
Configured Banner:
This is Switch A in the language lab
Banner motd command with non-interactive mode
The use of escape characters allows the banner motd command to be used in non-interactive mode
for multiple message lines. In non-interactive mode, you can create a banner message enclosed
in double quotes or other delimiter that uses escape characters within the delimiters. Other existing
CLI commands do not support the escape characters. For more information on interactive and
non-interactive mode, see “CLI interactive commands” (page 35) in this guide.
Login banners 13