Chapter 1 Setting Up the ACE
Configuring a Message-of-the-Day Banner
1-14
Cisco 4700 Series Application Control Engine Appliance Administration Guide
OL-11157-01
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 hostname for the ACE during run time.
•
$(line)—Displays the tty (teletypewriter) line or name (for example,
"/dev/console", "/dev/pts/0", or "1").
To use the $(hostname) in single line banner motd input, you must include double
quotes (") around the $(hostname) so that the $ is interpreted as a special character
at the beginning of a variable in the single line. For example:
switch/Admin(config)#
banner motd #Welcome to "$(hostname)"...#
Do not use the double quote character (") or the percent sign character (%) as a
delimiting character in a single line message string.
For multi-line input, double quotes (") are not required for the token because the
input mode is different from the single line mode. When you operate in multi-line
mode, the ACE interprets the double quote character (") literally. The following
example shows how to span multiple lines and uses tokens to configure the banner
message:
switch/Admin(config)#
banner motd #
Enter TEXT message. End with the character '#'.
================================
Welcome to Admin Context
--------------------------------
Hostname: $(hostname)
Tty Line: $(line)
=================================
#
To replace a banner or a line in a multi-line banner, use the
no banner motd
command
before adding the new lines.
To display the configured banner message, use the
show banner motd
command
in Exec mode as follows:
host1/Admin#
show banner motd