copy <REMOTE-URL>

Syntax

copy <REMOTE-URL> {primary | secondary} [vrf <VRF-NAME>]

Description

Downloads and installs a firmware image from a TFTP or SFTP server.

Command context

Manager (#)

Parameters

<REMOTE-URL>

Specifies the URL from which to download the firmware using SFTP or TFTP. Required. For information on how to format the remote URL, see URL formatting for copy commands.

{primary | secondary}

Selects the primary or secondary image profile for receiving the downloaded firmware. Required.

vrf <VRF-NAME>
Specifies the VRF instance to use for the download. Provide default, mgmt, or a configured VRF instance. The maximum length is 32 characters. If no VRF is provided, the VRF called default is used. Optional.

Authority

Administrators

Examples

TFTP download:

switch#  copy tftp://192.0.2.0/XL.10.00.0002.swi primary
The primary image will be deleted.

Continue (y/n)? y
######################################################################### 100.0%
Verifying and writing system firmware...

SFTP download:

switch# copy sftp://swuser@192.0.2.0/XL.10.00.0002.swi primary
The primary image will be deleted.

Continue (y/n)? y
The authenticity of host '192.0.2.0 (192.0.2.0)' can't be established.
ECDSA key fingerprint is SHA256:L64khLwlyLgXlARKRMiwcAAK8oRaQ8C0oWP+PkGBXHY.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.0.2.0' (ECDSA) to the list of known hosts.
swuser@192.0.2.0's password:
Connected to 192.0.2.0.
Fetching /users/swuser/XL.10.00.0002.swi to XL.10.00.0002.swi.dnld
/users/swuser/XL.10.00.0002.swi                  100%  179MB  25.6MB/s   00:07
Verifying and writing system firmware...