27-27
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 27 Working with System Software Images
Uploading the Crypto Images to an SFTP Server
Step 4
Enter the
copy
sftp
destination
command. When prompted, enter the IP address or hostname of the SFTP
server and the name of the file to download. You are also prompted for the flash device to which to copy
the file and the destination filename. Enter your username and password. The switch downloads the
image file from the SFTP server to the specified flash device.
Note
The switch remains operational while the image downloads.
Step 5
Modify the BOOT environment variable by entering the
set boot system flash
device
:
filename
prepend
command, so that the new image boots when you reset the switch. Specify the flash device (
device
:
) and
the filename of the downloaded image (
filename
).
Step 6
Reset the switch by entering the
reset
system
command. If you are connected to the switch through
Telnet, your Telnet session disconnects.
During startup, the flash memory on the supervisor engine is reprogrammed with the new flash code.
Step 7
When the switch reboots, enter the
show version
command to check the version of the code on the
switch.
Uploading the Crypto Images to an SFTP Server
To upload a supervisor engine crypto software image from the switch to an SFTP server, perform these
steps:
Step 1
Log into the switch through the console port or a Telnet session.
Step 2
Upload the software image to the SFTP server with the
copy
source
sftp
command. When prompted,
specify the SFTP server address and destination filename. You are first prompted for the flash device and
the source filename. Enter your username and password. The switch uploads the image file from the flash
device on the switch to the SFTP server.
Note
In the examples below, you can stop the copy process by entering C at any time.
This example shows how to download a software image from an SFTP server to the switch:
Console> (enable)
copy sftp <switch name>
IP address or name of remote host [10.6.1.10]?
Name of file to copy from [/tmp/bob/test2]?
Username for sftp[]?
<username>
Password for User bob[]:
<password>
37562980 bytes available on device bootflash, proceed (y/n) [n]?
y
File has been copied successfully.
Console> (enable)
copy sftp bootflash:
IP address or name of remote host []?
<IP address>
Username for sftp[bob]?
Password for User bob[]:
Name of file to copy from []?
<filename>
Can not open source file scp:/tmp/tin/test2 (SCP authentication error)
Copy from switch to SFTP Server
copy <source>
sftp