< Home

header

Function

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.

Format

header { login | shell } information text

header { login | shell } file file-name

undo header { login | shell }

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The header command allows a header to be displayed on terminals after users log in.

When using this command, note the following points:
  • If a user logs in and is being authenticated, the login header is displayed on the terminal.
  • If the user successfully logs in, the shell header is displayed on the terminal.

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

  • The login header is displayed only after authentication is configured for users in advance.
  • A file must exist before the file parameter is configured. Otherwise, a message is displayed, indicating the file name cannot be obtained.
  • A header text contains a maximum of 220 characters, including the start and end characters.
  • If a user logs in to the FW by using SSH1.X, the login header is not displayed during login, but the shell header is displayed after login.
  • If a user logs in to the FW by using SSH2.0, both login and shell headers are displayed.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >