download

Function

The download command is used to download the version package with a specified URL to the corresponding path on the device.

Format

download file-url [ save-as file-path | [ ssl-policy policy-name [ ssl-verify peer [ verify-dns ] ] | verify-dns ] | vpn-instance vpn-name ] *

Parameters

Parameter Description Value
file-url

Specifies an URL of downloading files.

The value is a string of 1 to 255 characters.

save-as file-path

Specifies a path to store files.

The value is a string of 1 to 128 characters.

ssl-policy policy-name

Specifies an SSL policy name.

The value is a string of 1 to 23 characters.

ssl-verify peer

Specifies to perform SSL verification on the server.

-

verify-dns

Enable CN/SAN verification.

-

vpn-instance vpn-name

Specifies an VPN name.

The value is a string of 1 to 31 characters.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
httpc debug

Usage Guidelines

Usage Scenario

  • The download command can be used to download the version package with a specified URL to the corresponding path on the device. The file can be saved only to the corresponding path ending with .cc.
  • If no path is specified, the version package is downloaded to the current path. If no SSL policy name is specified, the SSL policy name in the HTTP view is used.
  • If verify-dns is specified, the CN/SAN field verification of the server certificate is enabled.

Prerequisites

A VPN instance has been created before you configure vpn-name parameter. Otherwise, the command cannot be executed.

An SSL policy has been created before you configure policy-name parameter. Otherwise, the command cannot be executed.

Example

# Download the version package from https://10.1.1.1:443/test.cc to cfcard:/test.cc.
<HUAWEI> download https://10.1.1.1:443/test.cc ssl-policy test save-as cfcard:/test.cc vpn-instance test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >