•
To customize the banner, use tokens in the form $(token) in the message text.
The following table displays the tokens.
Token
$(hostname)
$(domain)
$(bold)
$(inverse)
$(contact)
$(location)
$(mac-address)
•
To disable the EXEC banner on a particular line or lines, use the no exec-banner line configuration
command.
Example
The following example sets an EXEC banner that uses tokens. The percent sign (%) is used as a delimiting
character. Notice that the $(token) syntax is replaced by the corresponding configuration variable.
Console# (config)# banner exec %
Enter TEXT message. End with the character '%'.
$(bold)Session activated.$(bold) Enter commands at the prompt.
%
When a user logs on to the system, the following output is displayed:
Session activated. Enter commands at the prompt.
banner login
The banner login Global Configuration mode command specifies and enables a message to be displayed
before the username and password login prompts. Use the no form of this command to delete the
existing Login banner.
116
Login Banner
Information displayed in the banner
Displays the host name for the device.
Displays the domain name for the device.
Indicates that the next text is a bold text. Using this token again
indicates the end of the bold text.
Indicates that the next text is an inverse text. Using this token again
indicates the end of the inverse text.
Displays the system contact string.
Displays the system location string.
Displays the base MAC address of the device.