Table of Contents

Downloading Files

Downloading Files

This appendix includes procedures for updating the software on the Catalyst 5000 series switch. New software to implement enhancements and maintenance releases is provided periodically. You can use one of these two methods to update the software:


  1. Initiate the network download from the Catalyst 5000 series switch through a Trivial File Transfer Protocol (TFTP) server. This is the fastest and easiest method.

  2. Use Kermit (a popular file-transfer and terminal-emulation software program) to perform a serial software download from a PC or workstation.

Downloading Software Using TFTP

Perform these steps to download software using TFTP:

Step 1 Make sure the workstation acting as the download server has the TFTP daemon.

Step 2 On Sun workstations, make sure the /etc/inetd.conf file contains the following line:


Make sure the /etc/services file contains the following line:



Note You must restart the inetd daemon after modifying the /etc/inetd.conf and /etc/services files. To restart the daemon, either stop the inetd process and restart it, or enter a fastboot command (on the SunOS 4.x) or a reboot command (on Solaris 2.x or SunOS 5.x). Refer to your workstation manual for use of TFTP daemons.

Step 3 Copy the new software from the floppy disks to the home directory specified for the TFTP daemon on the workstation (usually /tftpboot). If this directory does not exist, create it before continuing. The file you copy is c5009_xx.bin, where xx is the software revision number.

Step 4 Log in to the Catalyst 5000 series switch through the administrative interface or through a Telnet session.

Step 5 Enter the download host file command. Specify the IP address or host name of the workstation acting as the download server. Also specify the file to download. If you download a software file for a Fiber Distributed Data Interface (FDDI) or Asynchronous Transfer Mode (ATM) module, you must also specify the module number to download a single module. If you do not specify a module number, the download command downloads an image based on the download header type. The following is the command syntax to download NMP images:

download host file [module_num]


In the following example, no module number is given, so the file is downloaded to module 1 by default:


Step 6 When the following prompt appears, press y:


Note While the software is downloading, the Fan, PS1, and PS2 LEDs on the left side of the supervisor module blink green, and the Catalyst 5000 series switch remains operational.

The Catalyst 5000 series switch erases the Flash code, and reprograms modules on the supervisor card with the downloaded Flash code:


Step 7 Reset the Catalyst 5000 series switch.

Step 8 Enter the show flash command to check the file you have just downloaded. If the version number is the correct number for the new software, the download was successful. If the version number is not the correct number, the download failed, and you must repeat the download procedure. Refer to the troubleshooting procedures in the next section if the download failed.

Troubleshooting the TFTP Download Procedure

Follow these steps to troubleshoot a failed serial download procedure:

Step 1 Make certain that the Catalyst 5000 series switch has a route to the TFTP server, and enter the ping command to test this connectivity.

Step 2 Make certain that the software image to be downloaded is in the correct directory.

The network portion of the Catalyst 5000 series switch IP address must be the same as the network portion of the TFTP server address. If the network download procedure fails because the power was interrupted during the download procedure, or for some other reason, the Flash code can become corrupted and the boot> prompt appears on the administration port. In that case, you can use the network download procedure to download the Flash code again through an enabled port in VLAN 1. By default, only port 1/1 is enabled. You can use port 1/1 or enable another port.

Downloading Software from a Serial Port

Using Kermit, you can download software using a PC or a Sun workstation. The following two sections describe each of these methods.

Downloading Software to the Catalyst 5000 Series Switch Using a PC

Perform these steps before downloading software to the Catalyst 5000 series switch:

Step 1 Use a serial line to connect a PC serial port to the Catalyst 5000 series switch supervisor engine module console port.

Step 2 Install Kermit on the PC.

Step 3 Copy the new software from the floppy disk to the directory where Kermit is loaded. The file you copy is c5009_xx.bin, where xx is the software revision number.

Step 4 Start Kermit on the PC.

Step 5 At the Kermit> prompt, specify the serial port using the following command, where x is the serial port number (1 through 8) that you connected to the Catalyst 5000 series switch:

Step 6 At the Kermit> prompt, enter this command to set the baud rate for the serial port:

The default port speed for the Catalyst 5000 series switch is 9600 baud.


Caution  To prevent communication problems, do not use a speed greater than 19,200 baud.

Note To change the line speed for the file transfer, first enter the set system baud command on the Catalyst 5000 series switch, then escape back to Kermit to execute a set speed command.

Downloading the New Software

To download the software from a PC, perform these steps:

Step 1 At the Kermit> prompt, enter the connect command to connect to the Catalyst 5000 series switch:

If your line and speed are set correctly, the console prompt appears.


Step 2 Enter enable to enter privileged mode.

Step 3 At the Kermit> prompt, enter the download serial command. The file is downloaded to module 1 by default:

Step 4 When this prompt appears, press y:

Step 5 Enter the escape sequence Ctrl-]-c.

To enter this sequence correctly, hold down the Control key while you press ], and then press c.


Step 6 At the Kermit> prompt, enter this command to send the file to the Catalyst 5000 series switch (where xx is the software revision number):

A message similar to the following appears, displaying the send status information:



Note While the software is downloading, the Fan, PS1, and PS2 LEDs on the left side of the supervisor module blink green, and the Catalyst 5000 series switch remains operational.

Step 7 When the Kermit> prompt reappears, enter the connect command to return to the console prompt:

Within two minutes, the following is displayed:



Note If you enter the connect command more than two minutes after the Kermit> prompt reappears, you might only see a console prompt instead of the status information shown above.

Step 8 Enter the show flash command to check the file you have just downloaded. If the version number is the correct number for the new software, the download was successful. If the version number is not the correct number, the download failed, and you must repeat the download procedure. Refer to the troubleshooting procedures in the next section if the download failed.

Step 9 Reboot the Catalyst 5000 series switch to initialize Flash memory.

Troubleshooting the PC Download Procedure

The most common problem with Kermit file transfers is an incorrect line setting. Make sure that the serial port on the PC connected to the Catalyst 5000 series switch matches the set line or set port command.

If you cannot communicate with the Catalyst 5000 series switch and you are sure that the set line command is correct, check the serial-port baud rate. The default baud rate of the Catalyst 5000 series switch administration port is 9600. If the Catalyst 5000 series switch baud rate was changed to an unknown value, you might have to enter several set speed commands in Kermit before you can make a connection.

Caution  To prevent communication problems, do not use a speed greater than 19,200 baud.

The following list identifies the Kermit error codes:

Example of a Successful PC Download

The following example shows a complete download procedure:

C:\ copy A:\*.*
copying c5009_xx.bin
C:\ kermit
Kermit, 4C(057) 03 Jan 96, 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 `Filename`]
<CONTROL-] c to return to Local Machine>
Kermit> send c5009_xx.bin
          File name: c5009_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:
Wed Jan 05, 1996, 14:35:08
Console>

Note If you enter the connect command more than two minutes after the Kermit> prompt reappears, you might only see a console prompt instead of the status information about erasing and programming Flash code shown below.

Downloading Software Using a Sun Workstation

To copy the software to the workstation, log in as root, and perform these steps:

Step 1 Use a serial line to connect a Sun workstation to the Catalyst 5000 series switch supervisor engine module console port.

Step 2 Copy the new software from the floppy disk to your home directory. If this directory does not exist, create it before continuing. The file you copy is c5009_xx.bin, where xx is the software revision number.

Step 3 Log in to the administration interface on the Catalyst 5000 series switch.

Step 4 At the workstation prompt, change your working directory to /tmp by entering this command:

Step 5 At the workstation prompt, enter the tar command to copy the c5009_xx.bin file to the /tmp directory. For example:

The following message displays while the files are being copied, where xx in the filename is the software revision number:


The number of bytes and tape blocks that display might be different.


Set Kermit Parameters

To set the Kermit file transfer parameters, perform these steps:

Step 1 At the workstation prompt, start Kermit on the workstation:

The workstation prompt changes to a C-Kermit> prompt similar to the following:


Step 2 At the C-Kermit> prompt, specify the serial port connected to the Catalyst 5000 series switch by entering this command, where x is port a or b:

Step 3 At the C-Kermit> prompt, enter the following command to set the baud rate for the serial port:

The default port speed for the Catalyst 5000 series switch is 9600 baud.


Caution  To prevent communication problems, do not use a speed greater than 19,200 baud.

Note To change the line speed for the file transfer, first enter the set baud command on the Catalyst 5000 series switch, and then escape back to Kermit to execute a set speed command.

Download the New Software to the Catalyst 5000 Series Switch

To download the software from the workstation, follow these steps:

Step 1 At the C-Kermit> prompt, enter the connect command to connect to the Catalyst 5000 series switch:

If your line and speed are set correctly, the console prompt appears.


Step 2 Enter enable to enter privileged mode.

Step 3 At the C-Kermit> prompt, enter the download serial command. The file is downloaded to module 1 by default:

Step 4 When the following prompt appears, press y:

Step 5 Enter the escape sequence Ctrl-\-c.

To enter this sequence correctly, hold down the Control key while you press \, and then press c.


Step 6 At the C-Kermit> prompt, enter the following command to send the file to the Catalyst 5000 series switch (where xx is the software revision number):

A message similar to this appears, displaying the send status information:


A dot appears on the screen for every four packets transferred. Other letters appear if Kermit has trouble transferring the file. You can monitor the progress of the download by pressing a at any time during the Kermit download.



Note While the software is downloading, the Fan, PS1, and PS2 LEDs on the left side of the supervisor module blink green, and the Catalyst 5000 series switch remains operational.

Step 7 Press Return to return to the C-Kermit> prompt:

Step 8 Enter the connect command to return to the console prompt:

Within two minutes, the following is displayed:



Note If you enter the connect command more than two minutes after the C-Kermit> prompt reappears, you might only see a console prompt instead of the status information shown above.

Step 9 Enter the show flash command to check the file you have just downloaded. If the version number is the correct number for the new software, the download was successful. If the version number is not the correct number, the download failed, and you must repeat the download procedure. Refer to the troubleshooting procedures in the next section if the download failed.

Step 10 Reboot the Catalyst 5000 series switch to initialize Flash memory.

Troubleshooting the Download Procedure

The most common problem with Kermit file transfers is an incorrect line setting. Make sure that the serial port on the Sun workstation or PC connected to the Catalyst 5000 series switch matches the set line or set port commands.

If you cannot communicate with the Catalyst 5000 series switch and you are sure that the set line command is correct, check the serial port baud rate. The default baud rate of the Catalyst 5000 series switch administration port is 9600. If the Catalyst 5000 series switch baud rate was changed to an unknown value, you might have to enter several set speed commands in Kermit before you can make a connection.

Caution  To prevent communication problems, do not use a speed greater than 19,200 baud.

On a Sun workstation, make sure that the shell window you are using is a local window (not an rlogin window to a different workstation).

During a successful file transfer, a dot appears on the screen for every four packets transferred. If Kermit has trouble transferring the file, other code letters can appear.

The following list identifies the Kermit error codes:

Example of a Successful Download

The following is an example of a complete download procedure:

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) 04 Jan 96, 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 `Filename`]
[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:
Wed Jan 06, 1996, 17:35:08
Console>


Copyright 1989-1997 © Cisco Systems Inc.