< Home

portal local-server policy-text load

Function

The portal local-server policy-text load command loads a disclaimer page file to the built-in Portal server.

The undo portal local-server policy-text load command deletes the loaded disclaimer page file.

By default, no disclaimer page file is loaded to the built-in Portal server.

Format

portal local-server policy-text load string

undo portal local-server policy-text load

Parameters

Parameter

Description

Value

string

Specifies the name of the disclaimer page file to be loaded to the built-in Portal server.

The value is a string of 1 to 64 case-insensitive characters without spaces, in the format of [ drive ] [ path ] filename.

  • drive: indicates the storage device name.
  • path: indicates the directory and its subdirectory. The directory name cannot contain the following characters: ~ * / \ : ' "
  • filename: indicates the file name. The file name extension must be .txt or .html. If you enter only the file name, the system considers that the file is stored in the default directory.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To customize a disclaimer page, upload the disclaimer page file to the device and run this command to load the file. After the file is loaded, the hyperlink Disclaimer will be displayed on the login page. You can click the link to visit the disclaimer page.

Prerequisite

The disclaimer page file to be loaded has been uploaded to the device.

Precautions

Currently, only Chinese and English disclaimer page files can be loaded on the device.

Example

# Load the disclaimer page file policy.html to the built-in Portal server.

<HUAWEI> system-view
[HUAWEI] portal local-server policy-text load policy.html
Info: The loading process may take a few seconds.Please wait for a moment.
Info: Load web file successfully. 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >