copy flash scp

Uploads a copy of an OS image file from a FastIron device’s primary or secondary flash memory to an SCP server. The syntax for copying an image between two devices under test (DUTs) is different from the syntax for uploading from an ICX device to a Linux or a Windows server.
Syntax

Syntax for copying an image between two DUTs:

copy flash scp { ipv4-address | ipv4-hostname | ipv6 { ipv6-address-prefix/prefix-length | ipv6-hostname } } { flash:pri:remote-filename | flash:sec:remote-filename { primary | secondary } }

Syntax for uploading from an ICX device to a Linux or a Windows server:

copy flash scp { ipv4-address | ipv4-hostname | ipv6 { ipv6-address-prefix/prefix-length | ipv6-hostname } remote-filename { primary | secondary }
Parameters
ipv4-address
Specifies the IPv4 address of the SCP server.
ipv4-hostname
Specifies the IP hostname of the SCP server.
ipv6
Specifies the IPV6 address method for SCP file transfer.
ipv6-address-prefix/prefix-length
Specifies the IPV6 address of the SCP server. You must specify this address in hexadecimal using 16-bit values between colons, as documented in RFC 2373.
ipv6-hostname
Specifies the IPv6 hostname of the SCP server.
remote-filename
Specifies the name of the file in the SCP server that is to be transferred, including the path to the remote image where applicable. Valid values range from 1 through 127 characters.
flash:pri:filename
Specifies the binary image in primary flash memory and the target filename when transferring files between DUTs.
flash:sec:filename
Specifies the binary image in secondary flash memory and the target filename when transferring files between DUTs.
flash:primary
Specifies the binary image in primary flash memory. Configure the flash:primary keyword when transferring files between DUTs. See the usage note regarding using this keyword when transferring files between DUTs.
primary
Specifies the binary image in primary flash memory.
secondary
Specifies the binary image in secondary flash memory.
Modes

Privileged EXEC mode

Usage Guidelines

You are prompted for username and password when you configure this command.

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

Examples

The following example uploads the binary image in primary flash from an ICX DUT to primary flash on the target DUT with the IP address 10.198.137.141. The user is prompted for username and password.

device# copy flash scp 10.198.137.141 flash:primary primary 

 Login:tsmith

 Password:
Parameter Validation Successful
..........................................................File Upload Complete

The following example uploads a copy of an OS image file from the primary flash memory on an ICX device to the SCP server:

device# copy flash scp 10.20.1.1 SPS08040-scp.bin primary
device# copy flash scp 10.20.1.1 SPS08040-scp.bin secondary

The following example uploads a copy of an OS image file from the primary flash memory on an ICX device to an SCP server with the IP address of 172.26.51.180 :

device# copy flash scp 172.26.51.180 imagefile primary

The following example uploads a copy of an OS image file from the primary flash memory on an ICX device to the SCP server:

device# copy flash scp 10.20.1.1 /tftp/ primary 

The following example uploads a copy of an OS image file from the primary flash memory on an ICX device to the SCP server: The SCP server with the destination filename is explicitly specified.

device# copy flash scp 10.20.1.1 /tftp/SPS08040-scp.bin primary 

The following example uploads a copy of an OS image file from the primary flash memory on an ICX device to the SCP server and displays the resulting format of the copy operation.

device# copy flash scp 10.177.16.145 /dataserve/switchdumps/Sh_bkup/10/  primary

Result:

[fvt@dataserve01-ai 10]$ ls -ltr
rwxrwxrwt 1 fvt   200  94765343 Aug 25  2022 GZR10000_b375.bin
History
Release version Command history
08.0.20 This command was introduced.
09.0.00 This command was modified. The flash:pri:filename and the flash:sec:filename options are added for DUTs. The outgoing-interface, public-key , and remote-port options are deprecated.