Cisco ACE-4710-K9 Administration Manual page 40

Application control engine appliance
Table of Contents

Advertisement

Configuring a Message-of-the-Day Banner
You can include tokens in the form $(token) in the message text. Tokens will be
replaced with the corresponding configuration variable. For example:
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
Cisco 4700 Series Application Control Engine Appliance Administration Guide
1-14
$(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").
Chapter 1
Setting Up the ACE
OL-11157-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

4700 series

Table of Contents