banner motd
To configure a message of the day (MOTD) banner, use the banner motd command in configuration mode.
banner motd [ delimiting-character message delimiting-character ]
no banner motd [ delimiting-character message delimiting-character ]
Syntax Description
delimiting-character |
(Optional) Identifies the delimiting character. |
message |
(Optional) Specifies the banner message that is restricted to 40 lines with a maximum of 80 characters in each line. |
Command Default
None.
Command Modes
Configuration mode.
Command History
Release |
Modification |
---|---|
1.3(4) |
This command was introduced. |
Usage Guidelines
The configured MOTD banner is displayed before the login prompt on the terminal whenever a user logs in to a Cisco MDS 9000 Family switch.
Follow these guidelines when choosing your delimiting character:
- Do not use the delimiting-character in the message string.
- Do not use " and % as delimiters.
You can include tokens in the form $(token) in the message text. Tokens will be replaced with the corresponding configuration variable. For example:
- $(hostname) displays the host name for the switch
- $(line) displays the vty or tty line no or name
- The $(line-desc) and $(domain) tokens are not supported.
Examples
The following example configures a banner message with the following text “Testing the MOTD Feature:”
switch# config terminal
switch(config)# banner motd # Testing the MOTD Feature. #
The following example spans multiple lines and uses tokens to configure the banner message:
switch# config terminal
switch(config)# banner motd #
Enter TEXT message. End with the character '#'.
Welcome to switch $(hostname).
You tty line is $(line).
#