copy scp flash
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
}- 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.
- secondary
- Specifies that the file being copied is a secondary image file or a secondary UFI image file.
Privileged EXEC mode
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.
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
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