|
|
This appendix describes how to update the software on the Catalyst 5000 series switch.
You can use one of these methods to update the software:
Complete 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 this 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 into 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 FDDI or 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 using the reset {mod_num | system} command:
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.
Follow these steps to troubleshoot a failed serial download procedure:
Step 1 Ensure the Catalyst 5000 series switch has a route to the TFTP server, and enter the ping command to test this connectivity.
Step 2 Ensure the software image to be downloaded is in the correct directory.
Step 3 Check for read permissions on the file (should be world read).
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.
Using Kermit, you can download software using a PC or a Sun workstation. If you have a Catalyst 5000 series switch containing the Supervisor Engine III, you can use the Flash copy command to download the software. See "Using the Flash copy Command."
Complete 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 this 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. |
To download the software from a PC, complete 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.
The most common problem with Kermit file transfers is an incorrect line setting. Ensure 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:
The following example shows a complete download procedure:
C:\ copy A:\*.* copying c5009_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 `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: Mon Apr 06, 1998, 14:35:08 Console>
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 is the software revision number):
The number of bytes and tape blocks that display might be different.
To set the Kermit file transfer parameters, complete these steps:
Step 1 At the workstation prompt, start Kermit on the workstation:
The workstation prompt changes to a C-Kermit> prompt:
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 this 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. |
To download the software from the workstation, complete 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 downloads 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 this command to send the file to the Catalyst 5000 series switch (where xx is the software revision number):
A message showing the send status information is displayed:
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.
The most common problem with Kermit file transfers is an incorrect line setting. Ensure 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 your shell window is local (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:
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) 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 `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: Mon Apr 06, 1998, 17:35:08 Console>
The Supervisor Engine III boot process involves two software images: the ROM-monitor image 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, you can use a boot environment variable 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 "Using the Features Specific to the Supervisor Engine III" in the chapter "Configuring the Supervisor Software."
To copy Flash software images to the Supervisor Engine III, complete these 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 these 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.
|
|