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 } outgoing-interface { ethernet stackid/slot/port | ve ve-number } } [ public-key { dsa | rsa } ] [ remote-port ] remote-filename { { flash:primary | secondary } | { fips-ufi-primary-sig | fips- ufi-secondary-sig } }

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- } outgoing-interface { ethernet stackid/slot/port | ve ve-number } } [ public-key { dsa | rsa } ] [ remote-port ] remote-filename { { primary | secondary } | { fips-ufi-primary-sig | fips- ufi-secondary-sig } }
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.
outgoing-interface
Specifies the interface to be used to reach the remote host.
ethernet stackid/slot/port
Configures an Ethernet interface as the outgoing interface.
ve ve-number
Configures a virtual interface (VE) as the outgoing interface.
public-key
Specifies the type of public key authentication to use for the connection, either digital signature algorithm (DSA) or Rivest, Shamir, and Adelman (RSA) . If you do not configure this parameter, the default authentication type is password.
dsa
Specifies DSA as the public key authentication.
rsa
Specifies RSA as the public key authentication.
remote-port
Specifies the remote port number for the TCP connection.
remote-filename
Specifies the name of the file in the SCP server that is be transferred. You can specify up to 127 characters for the file name.
flash:primary
Specifies the binary image in primary 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.
fips-ufi-primary-sig
Specifies that the file being copied is a FIPS primary unified file image (UFI) signature file.
fips- ufi-secondary-sig
Specifies that the file being copied is a FIPS secondary UFI signature file.
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.

If using the fips-ufi-primary-sig or fips-ufi-secondary-sig keyword, the file name must be in ASCII text and must contain the .sig extension. The unified file image (UFI) consists of the application image, the boot code image, and the FI signature in one unified file.

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 an image from an SCP server to an ICX device.

device# copy scp flash 10.20.1.1 SPR08030.bin primary
device# copy scp flash 10.20.1.1 SPR08030.bin secondary

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

device# copy scp flash 10.37.2.40 signature_ufi.sig fips-ufi-primary-sig

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

device# copy scp flash 10.37.2.40 signature_ufi.sig fips-ufi-secondary-sig

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
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.