banner
Use to configure message-of-the-day (MOTD), login, or exec banner to be displayed
by the CLI:
•
•
motd—Displays the banner when a console or vty connection is initiated.
•
login—Displays the banner before any user authentication (line or RADIUS
authentication). The banner is also displayed if user authentication is not configured.
•
exec—Displays the banner after user authentication (if any) and before the first
prompt of a CLI session.
•
If you do not specify an option, the default behavior is to display the banner as an
MOTD.
•
The first character in the banner string must be repeated at the end of the string; these
characters delimit the banner. The CLI prompts you if you fail to repeat the opening
delimiter. All text following the second occurrence of the delimiter is ignored without
warning. The delimiter is case sensitive.
•
Banner text can span multiple lines. It is truncated after 1,024 characters.
•
Insert
\n
where you want the banner text to split and start a new line. Alternatively,
you can press Enter on the CLI when you want the text to break. In the second case,
you will be prompted for the remainder of the text after you press Enter. To display a
backslash as part of the message, it must be immediately preceded by another
backslash, like this:
\\
. Do not use a backslash as a delimiter or end a line with a
backslash.
•
To insert a
?
character inside the text of a banner, you must enter Ctrl+v before entering
the
?
character. Failure to do so may produce undesired results.
•
Examples
host1(config)#
banner motd x This is an MOTD banner x
host1(config)#
banner Y This is also an MOTD banner Y
host1(config)#
banner "Quotes make good delimiters"
host1(config)#
banner Xno space is required between the delimiter and the real banner
textX
host1(config)#
banner b bad choice for a delimiter; everything after that second b was
ignored b
host1(config)#
banner "This is one way\nto specify a multiple line banner"
host1(config)#
banner "This is another way to specify a
Enter remainder of text message. End with the character '"'.
multiple line banner
”
•
Use the
default
version to restore the default setting, in which the banner is displayed
on all lines.
•
You can configure MOTD or exec banners, but not login banners, for the CLI to display
on a per-line basis.
•
Use the
no
version to remove the banner.
•
See banner.
exec-banner
273
Copyright © 2010, Juniper Networks, Inc.
Chapter 5: Managing the System
Summary of Contents for JUNOSE 11.3
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Page 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Page 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Page 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Page 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Page 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Page 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Page 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Page 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Page 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...