S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
3-2
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 3 B Commands
banner motd
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
Defaults
None.
Command Modes
Configuration mode.
Command History
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
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.
Release
Modification
1.3(4)
This command was introduced.