|
|
This chapter describes how to how to work with system software image files.
This chapter consists of these sections:
You can download system software images to the switch using the Trivial File Transfer Protocol (TFTP). TFTP allows you to download system image files over the network from a TFTP server.
Some modules, such as ATM modules, have their own onboard Flash. When you download a software image file, the switch checks the header of the image file to determine the type of software image.
Depending on the type of software image you are downloading, one of the following occurs:
![]() | Caution Some supervisor engine software releases update the supervisor engine erasable programmable logic devices (EPLDs). The EPLDs can be updated only a limited number of times. You should avoid loading a new software release and then backing out unnecessarily. The supervisor engine software release notes indicate which software releases have code that updates the EPLDs. |
Before you begin downloading a software image using TFTP, make sure of the following:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
tftp 69/udp
Use the following procedure to download a supervisor engine software image to the switch from a TFTP server:
Step 1 Copy the software image file to the appropriate TFTP directory on the workstation.
Step 2 Log into the switch through the console port or through a Telnet session. If you log in using Telnet, your Telnet session disconnects when you reset the switch to run the new software.
Step 3 Use the copy tftp flash command. When prompted, enter the IP address or host name of the TFTP server and the name of the file to download. On those platforms that support the Flash file system, you are also prompted for the Flash device to which to copy the file and the destination filename.
The switch downloads the image file from the TFTP server to the specified Flash device.
Step 4 Modify the BOOT environment variable using 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 5 Reset the switch using 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 6 When the switch reboots, enter the show version command to check the version of the code on the switch.
Use this procedure to download a software image to an intelligent module:
Step 1 Copy the software image file to the appropriate TFTP directory on the workstation.
Step 2 Log into the switch through the console port or a Telnet session. If you log in using Telnet, your Telnet session might disconnect when you reset modules to run the new software.
Step 3 If there is only one module of the type appropriate for the image, or if there are multiple modules of the same type and you want to update the image on all of them, use the copy tftp flash command. When prompted, enter the IP address or host name of the TFTP server, the name of the file to download, the Flash device to which to copy the file, and the destination filename.
Step 4 If there are multiple modules of the type appropriate for the image but you only want to update a single module, use the copy tftp m/bootflash: command, where m is the number of the module to which to download the software image.
The switch downloads the image file, erases the Flash memory on the appropriate modules, and reprograms the Flash memory with the downloaded Flash code.
Step 5 Reset the appropriate modules using the reset mod_num command. If you are connected through Telnet, your Telnet session disconnects if you reset the module through which your connection was made.
Step 6 When the upgraded modules come online, enter the show version [mod_num] command to check the version of the code on the switch.
These sections show example TFTP download procedures:
This example shows a complete TFTP download procedure of a supervisor engine software image to a Catalyst 6000 family switch:
Console> (enable) copy tftp flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-sup.5-2-1-CSX.bin Flash device [bootflash]? Name of file to copy to [cat6000-sup.5-2-1-CSX.bin]? 4369664 bytes available on device bootflash, proceed (y/n) [n]? y CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC File has been copied successfully. Console> (enable) set boot system flash bootflash:cat6000-sup.5-2-1-CSX.bin BOOT variable = bootflash:cat6000-sup.5-2-1-CSX.bin,1; Console> (enable) reset system This command will reset the system. Do you want to continue (y/n) [n]? y Console> (enable) 07/21/1998,13:51:39:SYS-5:System reset from Console// System Bootstrap, Version 4.2 Copyright (c) 1994-1998 by cisco Systems, Inc. c6k_sup1 processor with 32768 Kbytes of main memory Autoboot executing command: "boot bootflash:cat6000-sup.5-2-1-CSX.bin" CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC Uncompressing file: ########################################################### ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ################################################################################ ############# System Power On Diagnostics DRAM Size ....................32 MB Testing DRAM..................Passed Verifying Text segment .......Passed NVRAM Size ...................512 KB Saving NVRAM ................. Testing NVRAM ................Passed Restoring NVRAM............... Level2 Cache ..................Present Level2 Cache test..............Passed Leaving power_on_diags Cafe Daughter Present. EOBC link up Boot image: bootflash:cat6000-sup.5-2-1-CSX.bin Flash Size = 0X1000000, num_flash_sectors = 64 readCafe2Version: 0x00000001 RIn Local Test Mode, Pinnacle Synch Retries: 2 Running System Diagnostics from this Supervisor (Module 1) This may take up to 2 minutes....please wait Cisco Systems Console Enter password: 07/21/1998,13:52:51:SYS-5:Module 1 is online 07/21/1998,13:53:11:SYS-5:Module 4 is online 07/21/1998,13:53:11:SYS-5:Module 5 is online 07/21/1998,13:53:14:PAGP-5:Port 1/1 joined bridge port 1/1. 07/21/1998,13:53:14:PAGP-5:Port 1/2 joined bridge port 1/2. 07/21/1998,13:53:40:SYS-5:Module 2 is online 07/21/1998,13:53:45:SYS-5:Module 3 is online Console>
This example shows a complete TFTP download procedure of an ATM software image to a single ATM module:
Console> (enable) show version 4 Mod Port Model Serial # Versions --- ---- ---------- --------- ---------------------------------------- 4 1 WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(6) Console> (enable) copy tftp 4/flash IP address or name of remote host []? 172.20.52.3 Name of file to copy from []? cat6000-atm.3-2-7.bin Download image tftp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y This command will reset Download Module(s) you selected. Do you wish to continue download flash (y/n) [n]? y - Download done for module 4, please wait for it to come online File has been copied successfully. Console> (enable) 07/21/1998,13:13:54:SYS-5:Module 4 is online Console> (enable) show version 4 Mod Port Model Serial # Versions --- ---- ---------- --------- ---------------------------------------- 4 1 WS-X6101 003414855 Hw : 1.2 Fw : 1.3 Sw : 3.2(7) Console> (enable)
This example shows a complete TFTP download procedure of an ATM software image to multiple ATM modules:
Console> (enable) show version 4
Mod Port Model Serial # Versions
--- ---- ---------- --------- ----------------------------------------
4 1 WS-X6101 003414855 Hw : 1.2
Fw : 1.3
Sw : 3.2(6)
Console> (enable) show version 5
Mod Port Model Serial # Versions
--- ---- ---------- --------- ----------------------------------------
5 1 WS-X6101 003414463 Hw : 1.2
Fw : 1.3
Sw : 3.2(6)
Console> (enable) copy tftp flash
IP address or name of remote host []? 172.20.52.3
Name of file to copy from []? cat6000-atm.3-2-7.bin
Download image tftp:cat6000-atm.3-2-7.bin to Module 4 FLASH (y/n) [n]? y
Download image tftp:cat6000-atm.3-2-7.bin to Module 5 FLASH (y/n) [n]? y
This command will reset Download Module(s) you selected.
Do you wish to continue download flash (y/n) [n]? y
-
Download done for module 4, please wait for it to come online
Download done for module 5, please wait for it to come online
File has been copied successfully.
Console> (enable) 07/21/1998,12:25:10:SYS-5:Module 4 is online
07/21/1998,12:25:10:SYS-5:Module 5 is online
Console> (enable) show version 4
Mod Port Model Serial # Versions
--- ---- ---------- --------- ----------------------------------------
4 1 WS-X6101 003414855 Hw : 1.2
Fw : 1.3
Sw : 3.2(7)
Console> (enable) show version 5
Mod Port Model Serial # Versions
--- ---- ---------- --------- ----------------------------------------
5 1 WS-X6101 003414463 Hw : 1.2
Fw : 1.3
Sw : 3.2(7)
Console> (enable)
These sections describe how to upload system software images from a switch to a TFTP server:
Before you attempt to upload a software image to a TFTP server, do the following:
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
tftp 69/udp
Use this procedure to upload a software image on a switch to a TFTP server for storage:
Step 1 Log into the switch through the console port or a Telnet session.
Step 2 Upload the software image to the TFTP server with the copy flash tftp command. When prompted, specify the TFTP server address and destination filename. On platforms that support the Flash file systems, you are first prompted for the Flash device and source filename, If desired, you can use the copy file-id tftp command on these platforms.
The software image is uploaded to the TFTP server.
This example shows how to upload the supervisor engine software image:
Console> (enable) copy flash tftp Flash device [bootflash]? slot0: Name of file to copy from []? cat6000-sup.5-3-1.bin IP address or name of remote host [172.20.52.3]? 172.20.52.10 Name of file to copy to [cat6000-sup.5-3-1.bin]? CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC| File has been copied successfully. Console> (enable)
These sections describe how to perform a serial download of software images over the supervisor engine console port using Kermit, a popular file-transfer and terminal-emulation software program:
Before you begin a serial download of a software image using Kermit, make sure of the following:
| Caution To prevent communication problems, do not use a speed greater than 19,200 baud. |
Use this procedure to perform a serial download of a software image over the supervisor engine console port:
Step 1 Copy the software image file to the directory where Kermit is loaded.
Step 2 Start Kermit on the PC.
Step 3 At the Kermit> prompt, enter the connect command to connect to the switch. If your line and speed are set correctly, the switch Console> prompt appears.
Step 4 Enter the enable command to enter privileged mode.
Step 5 Enter the download serial command. The file is downloaded to module 1 by default.
Step 6 When prompted, confirm the download.
Step 7 Enter the escape sequence Ctrl-]-c by holding down the Ctrl key while you press ], and then press c.
Step 8 At the Kermit> prompt, enter the send filename command to send the file to the switch.
The switch downloads the image file, erases the Flash memory on the supervisor engine or the appropriate module, and reprograms the Flash memory with the downloaded Flash code.
Step 9 When the Kermit> prompt reappears, enter the connect command to return to the switch Console> prompt. You will see status information as the switch erases and reprograms the Flash memory.
Step 10 Reset the switch using the reset system command.
Step 11 When the switch reboots, enter the show version [mod_num] command to check the version of the code on the switch.
Use this procedure to perform a serial download of a software image over the supervisor engine console port.
To copy the software to the workstation, log in as root, and perform these steps:
Step 1 Copy the software image file to your home directory.
Step 2 At the UNIX command prompt, start Kermit by entering the kermit command (make sure the directory where Kermit is installed in included in the $PATH environment variable on the workstation).
Step 3 At the C-Kermit> prompt, enter the connect command to connect to the switch. If your line and speed are set correctly, the switch Console> prompt appears.
Step 4 Enter the enable command to enter privileged mode.
Step 5 Enter the download serial command. The file downloads to module 1 by default.
Step 6 When prompted, confirm the download.
Step 7 Enter the escape sequence Ctrl-\-c by holding down the Ctrl key while you press \, and then press c.
Step 8 At the Kermit> prompt, enter the send filename command to send the file to the switch.
You can monitor the progress of the download by pressing the a key at any time during the Kermit download. A dot appears onscreen for every four packets transferred. If there is a problem transferring the file, one or more of the following letter codes appear:
The switch downloads the image file, erases the Flash memory on the supervisor engine or the appropriate module, and reprograms the Flash memory with the downloaded Flash code.
Step 9 Press Return to return to the C-Kermit> prompt. When the Kermit> prompt reappears, enter the connect command to return to the switch Console> prompt. You will see status information as the switch erases and reprograms the Flash memory.
Step 10 Reset the switch using the reset system command.
Step 11 When the switch reboots, enter the show version [mod_num] command to check the version of the code on the switch.
These sections show example serial download procedures over the supervisor engine console port using Kermit:
This screen output shows an example of a complete serial download procedure on a PC:
C:\ copy A:\*.* copying c6509_xx.bin C:\ kermit Kermit, 4C(057) 06 Apr 98, 4.2 BSD Type ? for help Kermit> set port com1 Kermit> set speed 9600 Kermit> connect Connecting to com1,speed 9600. The escape character is ^] (ASCII 29). Type the escape character followed by C to get back, or followed by ? to see other options Console> enable Console> (enable) download serial Download CBI image via console port (y/n) [n]? y Waiting for DOWNLOAD! Return to your local Machine by typing its escape sequence Issue Kermit send command from there[ Send \QFilename\Q] <CONTROL-] c to return to Local Machine> Kermit> send c6509_xx.bin File name: c6509_xx.bin KBytes transferred: xxxx Percent transferred: 100% Sending: Complete Number of Packets: xxxx Number of retries: None Last error: None Last warning: None Kermit> connect Finished network download. (1136844 bytes) Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete The system needs to be reset to run the new image. Cisco Systems Console
Enter password:
Mon Apr 06, 1998, 14:35:08
Console>
This screen output shows an example of a complete serial download procedure on a UNIX workstation:
workstation% cd /tmp workstation% tar -xvfp /dev/rfd0 c5009_xx.bin, 1156046 bytes, 2258 tape blocks workstation% ls -la total 1150 drwxrwsrwt 5 bin 512 Sep 28 04:15 . drwxr-xr-x 18 root 1536 Sep 27 15:41 .. -r--r--r-- 1 60000 1156046 Jul 18 10:32 c5009_xx.bin workstation% kermit C-Kermit, 4E(072) 06 Apr 98, SUNOS 4.x Type ? for help C-Kermit> set line /dev/ttya C-Kermit> set speed 9600 /dev/ttya: 9600 baud C-Kermit> connect Connecting thru /dev/ttya, speed 9600. The escape character is CTRL-\ (28). Type the escape character followed by C to get back, or followed by ? to see other options. Console> enable Console> (enable) download serial c5009_xx.bin Download CBI image via console port (y/n) [n]? y Waiting for DOWNLOAD! Return to your local Machine by typing its escape sequence Issue Kermit send command from there[ Send \QFilename\Q] [Back at Local System] C-Kermit> send c5009_xx.bin SF c5009_xx.bin => c5009_xx.bin, Size: 1156046 CTRL-F to cancel file, CTRL-R to resend current packet CTRL-B to cancel batch, CTRL-A for status report: .............................................................................................................................. *** Display Truncated *** ............................................................... .................................... [OK] ZB? C-Kermit> connect Connecting thru /dev/ttya, speed 9600. The escape character is CTRL-\ (28). Type the escape character followed by C to get back, or followed by ? to see other options. Download OK Initializing Flash Programming Flash Base....Code....Length....Time....Done Cisco Systems Console Enter password: Mon Apr 06, 1998, 17:35:08 Console>
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Nov 10 13:11:45 PST 1999
Copyright 1989-1999©Cisco Systems Inc.