header

Function

The header command configures the title contents to be displayed at a login.

The undo header command deletes the title contents to be displayed at a login.

By default, no title is displayed if a user logs in.

Format

header login information text

header login file file-name

header shell information text

header shell file file-name

undo header login

undo header shell

Parameters

Parameter Description Value
login

Displays the title when the terminal connection is activated during the login to the device.

-

file file-name

Specifies the file name used in the title.

The value is a string of 1 to 64 characters without spaces. The size of a title file should be equal to or smaller than 2 KB. For a title file larger than 2 KB, only the contents of the first 2 KB are displayed.

file-name

Specifies the file name used in the title.

The value is a string of 1 to 64 characters without spaces. The size of a title file should be equal to or smaller than 2 KB. For a title file larger than 2 KB, only the contents of the first 2 KB are displayed.

shell

Displays the title when a session is set up after the successful login to the device.

-

information text

Specifies the title information.

The value is a string of 1 to 480 characters with spaces supported.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

Usage Scenario

  • To provide some prompts or alarms to users, you can use the header command to configure a title on the device. If a user logs in to the device, the title is displayed.
  • You can use the parameter information text to specify the title information, or use the parameter file file-name to specify the title information by using the contents of a file.
  • When a terminal connection is activated and you attempt to log in, the terminal displays the contents of the title that is set by using the header login command. After the successful login, the terminal displays the contents of the title that is configured by using the header shell command.

Configuration Impact

If you run the header command several times, the last configuration overrides the previous configuration.

After the login title is configured, any user that logs in to the system can view the title.

Precautions

  • A title text must start and end with the first letter of the character string to be entered.
  • To edit a file, enter a character and press Enter. Then, you can add data to or delete data from the file. After editing the file, enter the end letter and the system automatically exists the file editing process.
  • If you do not want to edit a file, press Enter when the same letter is displayed at both the start and end of the file.

Example

# Set the session creation title to Hello Welcome by using the character h as the start and end characters.
<HUAWEI> system-view
[~HUAWEI] header shell information hHello Welcomeh
# Set the file of the title to header-file.txt, in which the contents are Hello Welcome.
<HUAWEI> system-view
[~HUAWEI] header login file cfcard:/header-file.txt
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >