|
|
This appendix includes procedures for updating the software on the Catalyst 5000 series switch. New software to implement enhancements and maintenance releases will be provided periodically. You can use one of the following two methods to update the software:
Downloading Software Using TFTP
Perform the following steps to download software from a console, using TFTP:
Troubleshooting the TFTP Download Procedure
Follow the steps below for troubleshooting a failed serial download procedure:
The network portion of the Catalyst 5000 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. Refer to the section that most closely matches your configuration.
Downloading Software to the Catalyst 5000 Using a PC
Perform the following steps before downloading software to the Catalyst 5000:
To download the software from a PC, perform the following steps:
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 matches the set line or set port command.
If you cannot communicate at all with the Catalyst 5000 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 administration port is 9,600. If the Catalyst 5000 baud rate was changed to an unknown value, you may have to enter several set speed commands in Kermit before you can make a connection.
The following list identifies the Kermit error codes:
Example of a Successful PC Download
The following is an example of a complete download procedure:
Downloading Software Using a Sun Workstation
To copy the software to the workstation, log in as root and perform the following steps:
To set the Kermit file transfer parameters, perform the following steps:
Download the New Software to the Catalyst 5000
To download the software from the workstation, follow these steps:
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 or PC connected to the Catalyst 5000 matches the set line or set port command.
If you cannot communicate at all with the Catalyst 5000 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 administration port is 9,600. If the Catalyst 5000 baud rate was changed to an unknown value, you may have to enter several set speed commands in Kermit before you can make a connection.
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 may appear.
The following list identifies the Kermit error codes:
Example of a Successful Download
The following is an example of a complete download procedure:
Copyright 1988-1996 © Cisco Systems Inc.
tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot
Make sure the /etc/services file contains the following line:
tftp 69/udp
Console>
(enable)
download 190.180.122.40 c5009_11xx.bin
When the following prompt appears, press y:
Download image
filename from IP address to Module 1? (y/n) [n]? y
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.
Reset the Catalyst 5000.
Kermit> set port comx
At the Kermit> prompt, enter the following command to set the baud rate for the serial port:
Kermit> set speed 9600
The default port speed for the Catalyst 5000 is 9,600 baud.
Kermit> connect
If your line and speed are set correctly, the console prompt appears.
Console> enable
Console> (enable)
At the Kermit> prompt, enter the download serial command. The file is downloaded to module 1 by default:
Kermit> (enable) download serial
When the following prompt appears, press y:
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`]
Enter the escape sequence Ctrl-]-c
Kermit> send c5009_xx.bin
A message similar to the following appears, displaying the send status information:
File name: c5009_xx.bin
KBytes transferred:
Percent transferred:
Sending:
Number of Packets:
Number of retries:
Last error: None
Last warning: None
.
.
.
File name: nmpxx.rom
KBytes transferred: xxxx
Percent transferred: 100%
Sending: Complete
Number of Packets: xxxx
Number of retries: None
Last error: None
Last warning: None
Kermit>
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.
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>
If you use the connect command more than two minutes after the Kermit> prompt reappears, you may only see a console prompt instead of the status information about erasing and programming Flash code shown below.
/tmp
by entering the following command:
workstation% cd /tmp
directory. For example:
workstation% tar -xvfp /dev/rfd0
The following message displays while the files are being copied, where xx
in the filename is the software revision number:
c5009_xx.bin, xxxxxxx bytes, xxxx tape blocks
workstation% kermit
C-Kermit>
prompt similar to the following:
C-Kermit, 4E(072) 24 Jan 9, SUNOS 4.x
Type ? for help
C-Kermit>
At the
C-Kermit>
prompt, specify the serial port connected to the Catalyst 5000 by entering the following command, where x is port a or b:
C-Kermit> set line /dev/ttyx
At the
C-Kermit>
prompt, enter the following command to set the baud rate for the serial port:
C-Kermit> set speed
9600
The default port speed for the Catalyst 5000 is 9,600 baud.
C-Kermit> connect
If your line and speed are set correctly, the console prompt appears.
Console> enable
Console> (enable)
At the C-Kermit> prompt, enter the download serial command. The file is downloaded to module 1 by default:
C-Kermit> (enable) download serial
When the following prompt appears, press y:
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`]
Enter the escape sequence Ctrl-\-c
xx
is the software revision number):
C-Kermit> send c5009_xx.bin
A message similar to the following appears, displaying the send status information:
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?
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 typing a at any time during the Kermit download.
C-Kermit>
Enter the connect command to return to the console prompt:
C-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.
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>
![]()
![]()
![]()
![]()
![]()
![]()
![]()