The load configuration merge command loads the local configuration file or the configuration file on a remote server and delivers configurations to the local device.
load configuration server ip-address [ vpn-instance vpn-instance-name ] transport-type { ftp | sftp } username user-name password password-value file file-name merge [ relative ]
load configuration server ipv6 ipv6-address [ vpn-instance vpn-instance-name ] transport-type { ftp | sftp } username user-name password password-value file file-name merge [ relative ]
load configuration file file-name merge [ relative ]
load configuration server http url url-address [ vpn-instance vpn-instance-name ] merge [ relative ]
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies a VPN instance name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
transport-type |
Specifies a file transfer protocol. |
- |
ftp |
Indicates that FTP is used for file transfer. |
- |
sftp |
Indicates that SFTP is used for file transfer. |
- |
username user-name |
Specifies the user name of a remote server. |
The value is a string of 1 to 64 case-sensitive characters, spaces and question marks not supported. |
password password-value |
Specifies the password of a remote server. |
The value is a string of case-sensitive characters, including letters and digits. The string can contain spaces if it is enclosed in double quotation marks ("). A simple password is a string of 1 to 255 characters, while a ciphertext password is a string of 20 to 432 characters. |
file file-name |
Specifies the name of a file. |
The value (including the file name extension) is a string of 1 to 128 case-sensitive characters, including uppercase letters, lowercase letters, digits, and special characters but excluding spaces. Special characters do not include ~ ? * / \ : " | < > [ ] In addition, the value must not start or end with a dot ("."). The file name extension must be .cfg, .zip, .dat, .bat, .txt, or name of text file without suffix. FTP or SFTP also supports the file names with a server directory. The file name does not support the following special characters: ~ ? * : " | < > [ ] |
relative |
Specifies that only configurations in the current view are delivered. |
- |
server ip-address |
Specifies the IP address of a remote server. |
The value is in dotted decimal notation and cannot be any multicast or broadcast address. |
ipv6 ipv6-address |
Specifies the IPv6 address of a remote server. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
http |
Specifies access to the remote server by HTTP. HTTP and HTTPS can be used. |
- |
url url-address |
Specifies the URL address of a remote server. |
The value is a string of 1 to 255 characters. |
Usage Scenario
To load the configuration file on a remote server or local configuration file to the running configuration database, perform one of the following operations based on the location of the configuration file:
The load configuration merge command can deliver all configurations of only configurations in a specific view. If relative is specified, only configurations in the current view are delivered.
Prerequisites
If http url is used to specify the URL of a remote HTTPS server, the SSL policy should be configured in advance.
Follow-up Procedure
After the configuration file is loaded and replaced, the file enters the candidate configuration database. Run the commit command for relevant configurations to take effect.
Precautions
The specified configuration file to be loaded must exist and meet the following conditions:
<HUAWEI> system-view [~HUAWEI] load configuration file config.cfg merge
<HUAWEI> system-view [~HUAWEI] load configuration server 10.1.1.1 transport-type sftp username huawei password huawei_123 file config.cfg merge