118
Login Banner
Example
The following example sets a Login banner that uses tokens. The percent sign (%) is used as a delimiting
character. Notice that the $(token) syntax is replaced by the corresponding configuration variable.
banner motd
The
banner motd
Global Configuration mode command specifies and enables a message-of-the-day
banner. Use the
no
form of this command to delete the existing MOTD banner.
Syntax
•
banner motd
d message d
•
no banner motd
•
d
— Delimiting character, for example a pound sign (#). A delimiting character cannot be used in
the banner message.
•
message
— Message text. The message must start in a new line and can be a multi-line message.
Tokens in the form $(token) in the message text can be included. Tokens are replaced with the
corresponding configuration variable. Tokens are described in the usage guidelines.
Default Configuration
Disabled (no MOTD banner is displayed).
Command Mode
Global Configuration mode.
User Guidelines
•
Follow this command with one or more blank spaces and a delimiting character. Then enter one or
more lines of text, terminating the message with the second occurrence of the delimiting character.
•
When a user connects to a device, the message-of-the-day (MOTD) banner appears first, followed by
the login banner and prompts. After the user logs in to the device, the EXEC banner is displayed.
Console (config)#
banner login
%
Enter TEXT message. End with the character '%'.
You have entered $(hostname).$(domain)
%
When the login banner is executed, the user will see the following banner:
You have entered host123.ourdomain.com
5400_CLI.book Page 118 Wednesday, December 17, 2008 4:33 PM
Содержание PowerConnect 5424
Страница 114: ...114 Address Table Commands 5400_CLI book Page 114 Wednesday December 17 2008 4 33 PM ...
Страница 178: ...178 Ethernet Configuration Commands 5400_CLI book Page 178 Wednesday December 17 2008 4 33 PM ...
Страница 194: ...194 GVRP Commands 5400_CLI book Page 194 Wednesday December 17 2008 4 33 PM ...
Страница 204: ...204 IGMP Snooping Commands 5400_CLI book Page 204 Wednesday December 17 2008 4 33 PM ...
Страница 252: ...252 Line Commands 5400_CLI book Page 252 Wednesday December 17 2008 4 33 PM ...
Страница 268: ...268 LLDP Commands 5400_CLI book Page 268 Wednesday December 17 2008 4 33 PM ...
Страница 280: ...280 PHY Diagnostics Commands 5400_CLI book Page 280 Wednesday December 17 2008 4 33 PM ...
Страница 288: ...288 Port Monitor Commands 5400_CLI book Page 288 Wednesday December 17 2008 4 33 PM ...
Страница 300: ...300 QoS Commands 5400_CLI book Page 300 Wednesday December 17 2008 4 33 PM ...
Страница 308: ...308 Radius Commands 5400_CLI book Page 308 Wednesday December 17 2008 4 33 PM ...
Страница 326: ...326 RMON Commands 5400_CLI book Page 326 Wednesday December 17 2008 4 33 PM ...
Страница 386: ...386 SSH Commands 5400_CLI book Page 386 Wednesday December 17 2008 4 33 PM ...
Страница 400: ...400 Syslog Commands 5400_CLI book Page 400 Wednesday December 17 2008 4 33 PM ...
Страница 418: ...418 System Management 5400_CLI book Page 418 Wednesday December 17 2008 4 33 PM ...
Страница 432: ...432 TIC Commands 5400_CLI book Page 432 Wednesday December 17 2008 4 33 PM ...
Страница 440: ...440 Tunnel 5400_CLI book Page 440 Wednesday December 17 2008 4 33 PM ...
Страница 476: ...476 Voice VLAN 5400_CLI book Page 476 Wednesday December 17 2008 4 33 PM ...
Страница 490: ...490 Web Server 5400_CLI book Page 490 Wednesday December 17 2008 4 33 PM ...