cc/td/doc/product/lan/cat5000/c5k3_1
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Downloading Files

Downloading Files

This appendix describes how to update the software on the Catalyst 5000 series switch.


Note New software to implement enhancements and maintenance releases is provided periodically.

You can use one of these methods to update the software:

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:


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 [mod_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:

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 correct for the new software, the download was successful. If the version number is not correct, 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.

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, and 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 the enable command 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:


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

Within two minutes, the following is displayed:


Step 8 Enter the show flash command to check the file you have just downloaded. If the version number is correct for the new software, the download was successful. If the version number is not correct, 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`]

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.


Setting 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 to 9600:

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.

Downloading 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 the enable command 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.


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:


Step 9 Enter the show flash command to check the file you have just downloaded. If the version number is correct for the new software, the download was successful. If the version number is not correct, 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>

Using the Flash copy Command


Note The information in this section applies to Catalyst 5000 series switches containing the Supervisor Engine III only.

The Supervisor Engine III boot process involves two software images: the ROM-monitor image (a new image for Catalyst 5000 series supervisor engines) and the supervisor engine image. The ROM monitor is the first software to run when the switch is powered up or reset. Then, based on the configuration information stored in NVRAM, the ROM monitor decides whether to stay in ROM monitor mode or load the supervisor engine software image.

In addition to the configuration register, a boot environment variable is also used to specify the location and filename of images to boot. The BOOT environment variable specifies a list of bootable images on various devices and is set by set boot system flash commands. For a brief description of these commands, see "Managing the Supervisor Engine III" in the chapter "Configuring the Supervisor Software."


Note Catalyst 5505 and Catalyst 5500 only: If you have a redundant supervisor engine, you cannot download a system image directly from a tftp server into the redundant (standby) supervisor engine. When you download the image into the active supervisor, the standby supervisor is automatically updated with the new image. In addition, you cannot copy an image from the standby supervisor engine to the active supervisor engine.

To copy Flash software images to the Supervisor Engine III, perform the following steps:

Step 1 Use the cd command to set the default flash device for the system. Valid devices for this command are bootflash, slot0, and slot1.


Step 2 Copy the image file to the flash device. Use any one of the following commands to copy the image file:

The file-id argument has the format of m/device: filename. If the source or destination device is not specified, the command uses the ones specified by the cd command. If the destination filename is omitted, the software uses the source filename. The m/ option gives access to different modules, such as the standby supervisor engine, an FDDI module, and an ATM module. If copying to an FDDI or ATM module, you must specify the file-id as m/bootflash: without the filename. The flash keyword supports multiple module downloads. Based on the image file type, the system displays a prompt for all modules of the same type as the image file. A different prompt is given depending on the command argument and reply.


For more information on the Supervisor Engine III, refer to the Catalyst 5000 Series Installation Guide. For information on the Flash commands, refer to the Catalyst 5000 Series Installation Guide or the Catalyst 5000 Series Command Reference publication.

hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.