copy scp flash

Downloads a copy of the OS image file from an SCP server to primary or secondary flash memory, or downloads a copy of the boot file or signature file to the device.
Syntax

Syntax for copying an image between two DUTs:

copy scp flash { ipv4-address | ipv4-hostname | ipv6 { ipv6-address | ipv6-hostname } remote-filename { { flash:primary | flash:secondary } }

Syntax for downloading to a DUT from a Linux or a Windows server:

copy scp flash { ipv4-address | ipv4-hostname | ipv6 { ipv6-address | ipv6-hostname } remote-filename { primary | secondary } | windows-openssh-server }
Parameters
ipv4-address
Specifies the IPV4 address of the SCP server.
ipv4-hostname
Specifies the IP host name of the SCP server.
ipv6
Specifies the IPV6 address method for SCP file transfer.
ipv6-address
Specifies the IPV6 address of the SCP server.
ipv6-hostname
Specifies the IPv6 host name of the SCP server.
remote-filename
Specifies the name of the file in the SCP server that is to be transferred. You can specify up to 127 characters for the file name.
flash:primary | flash:secondary
Specifies the binary image in primary flash memory or secondary flash memory.
primary
Specifies that the file being copied is a primary image file or a primary UFI image file.
secondary
Specifies that the file being copied is a secondary image file or a secondary UFI image file.
windows-openssh-server
Configure this command if you encounter a failure while using the Windows OpenSSH server for SCP image copying.
Modes

Privileged EXEC mode

Usage Guidelines

When you configure this command, you are prompted for the username and password.

When transferring files between devices under test (DUTs), you should configure the flash:primary keyword instead of the primary keyword because the SCP server does not support remote-filename aliases.

The syntax for copying an image between two devices under test (DUTs) is different from the syntax for downloading from a DUT to a Linux or a Windows server.

Use the windows-openssh-server command if you encounter a failure while using the Windows OpenSSH server for SCP image copying. The command should not be used with Linux or other Windows based SCP servers, as it may cause image download failures.

The .sig file must be used when FIPS is enabled to validate the unified image with the corresponding signature file.

UFI image download is supported using TFTP, USB, and SCP only.

Examples

The following example copies the image from an SCP server to the secondary partition of the flash drive of an ICX device.

device# copy scp flash 10.198.137.141 /buildsjc/09000/fi/20210621_v09000/stage/Images/TNR09000_b398ufi.bin secondary

 Login:tjones

 Password:
Parameter Validation Successful
Image Download started
..................................................Image Download Done
Image Validation Started
............Image sync complete
Image Write Done
Image Download Complete

The following example copies a UFI file from the SCP server to the primary flash memory.

device# copy scp flash 10.2.3.4 SPR08080b1ufi.bin primary

The following example copies a UFI file from the SCP server to the secondary flash memory.

device# copy scp flash 10.2.3.4 SPR08080b1ufi.bin secondary
The following example configures the windows-openssh-server command to resolve failures while using the Windows OpenSSH server for SCP image copying.
device# copy scp flash 192.168.99.100 GZR10010g_cd1ufi.bin secondary windows-openssh-server

Login:root
 
Password:
Parameter Validation Successful
Image Download Started
.......................................................................................
Image Download Done
Image Validation Started
FIPS: Image verification passed and stored in flash
Image Write Done
Image Download Complete
History
Release version Command history
08.0.20 The command was introduced.
08.0.40 The icx6450 and icx6610 options were removed because they are supported only on ICX 6450 and ICX 6610 devices respectively.
08.0.80 The command was modified to add the fips-ufi-primary-sig and fips-ufi-secondary-sig keywords, and to download a UFI file to flash memory.
08.0.90 The command was modified. The following parameters were deprecated: bootrom, fips-bootrom-sig, fips-primary-sig, fips-secondary-sig.
09.0.00 The command was modified. The following parameters were deprecated: outgoing-interface, public-key , fips-ufi-primary-sig, fips-ufi-secondary-sig, and remote-port.
10.0.10g_cd1 The command was modified to add the windows-openssh-server keyword.