The header command configures the header information displayed on terminals of users when they log in.
The undo header command deletes the header information displayed on terminals of users when they log in.
By default, no header information is displayed on terminals of users when they log in.
header { login | shell } information text
header { login | shell } file file-name
undo header { login | shell }
| Parameter | Description | Value |
|---|---|---|
login |
Indicates a header that is displayed when the terminal connection is activated and the user is being authenticated by the FW. |
- |
shell |
Indicates a header that is displayed when the session is set up after the user logs in to the FW. |
- |
information text |
Specifies the header information. |
The value is a string of 1 to 480 characters, with spaces supported. |
file file-name |
Specifies the name of the file used as the header. |
The name is a string of 5 to 64 characters. The size of the specified file must be smaller than 128 KB; otherwise only the first 128 KB contents are displayed. |
Usage Scenario
The header command allows a header to be displayed on terminals after users log in.
Configuration Impact
After a header is configured, the header welcomes all login users.
Follow-up Procedure
The header text starts and ends with the same character. After a character is input and Enter is pressed, an interactive interface is displayed. You can input the required information ended with the first character. The system then exits from the interactive interface.
If you do not want to enter the interactive interface, use the same character at the beginning and end of the header and press Enter.
Precautions
# Configure a shell header.
<sysname> system-view [sysname] header shell information % The banner text supports 220 characters max, including the start and the end cha racter.If you want to enter more than this, use banner file instead.Input banner text, and quit with the character '%':Hello! Welcome use NetEngine% [sysname] quit <sysname>
# The Shell header is displayed after a user logs in.
Hello! Welcome use NetEngine Note: The max number of VTY users is 5, and the current number of VTY users on line is 2.
# Specify the file used by the login header.
<sysname> system-view [sysname] header login file hda1:/header-file.txt