banner exec
To set the EXEC banner, use the banner exec Global Configuration mode command.
To delete the EXEC banner, use the no form of this command.
Syntax
banner exec delimiter
no banner exec
Parameters
delimiter—The text message that is preceded and followed by the same single-character delimiter. The message is maximum 2000 characters long and should be typed in from a new line.
Default Configuration
N/A
Command Mode
Global Configuration mode
User Guidelines
The EXEC banner shows at the left top of the Getting Started page when users log in to the switch’s web-based interface or on the command-line interface when users log in to the switch’s command-line interface.
Example
The following example sets the EXEC banner, including the hostname, system contact, system location, and MAC address of the switch:
switchxxxxxx(config)# banner exec !
Enter TEXT message. End with the character '!'
~ WELCOME ~
----------------------------------------
Host Name = $(hostname)
Bold Text = $(bold)Bold Text$(bold)
Inverse = $(inverse)Inverse Test$(inverse)
Contact = $(contact)
Location = $(location)
Mac Addr = $(mac-address)
!
The following table describes the variables defined in the example:
Token |
Description |
---|---|
$(hostname) |
Displays the hostname for the switch. |
$(bold) |
Indicates that the next text is a bold text. Using this token again indicates the end of the bold text. |
$(inverse) |
Indicates that the next text is an inverse text. Using this token again indicates the end of the inverse text. |
$(contact) |
Displays the system contact string. |
$(location) |
Displays the system location string. |
$(mac-address) |
Displays the base MAC address of the switch. |