User Interface Commands
banner login
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
479
39
Default Configuration
N/A
Command Mode
Global Configuration mode
User Guidelines
The login banner shows on the login page when users try to access the switch’s
web-based interface or on the command-line interface when users try to access
the switch’s command-line interface.
Example
The following example sets the login banner, including the hostname, system
contact, system location, and MAC address of the switch:
switchxxxxxx(config)#
banner login !
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.