Use the download command to copy a software image from a specified host to the Flash memory of a designated module.
download host file [mod_num]
download serial [mod_num]
Syntax Description
host Name or IP address of host. file Name of file to be downloaded. mod_num (Optional) Number of the module to receive downloaded image. serial Keyword that specifies download through a serial port. Default
If a module number is not specified, the image is downloaded to all modules for which the image is valid.
Command Type
Switch command.
Command Mode
Privileged.
Usage Guidelines
The Catalyst 5000 series switches support two ways to download new code to the processors: TFTP network download through any network port, and Kermit serial download through the EIA/TIA-232 console port. Only the first applies to the ATM module. The ATM module has processors that will require field upgrades.
The download command downloads code to the module Flash memory. Catalyst 5000 series software rejects an image if it is not a valid image for the module.
When downloading to the ATM module, the supervisor module acts as a TFTP gateway, forwarding TFTP packets to the ATM module through an in-band IPC method.
To download a software image for the RSM, use the session command.
The download serial command uses the Kermit protocol through the serial EIA/TIA-232 console port. The download serial command is not allowed from a Telnet session.
This command is not supported by the three-port Gigabit Ethernet switching module (WS-X5403).
If the module number is specified, the download goes to the specified module, but the download will fail if the module is of a different type than is indicated by the download header. If the module number is not specified, the download goes to all modules of that type.
After starting the serial download using Kermit, do not attempt to abort the serial download by using Ctrl-C. Pressing Ctrl-C interrupts the download process and could leave the switch in a problematic state. If this occurs, reboot the switch. Examples
This example shows how to download the c5000_spv11.bin file from the mercury host to the supervisor engine module (by default):
Console> (enable) download mercury c5000_spv11.bin Download image c5000_spv11.bin from mercury to module 1FLASH (y/n) [n]? y \ Finished network single module download. (2418396 bytes) FLASH on Catalyst: Type Address Location Intel 28F008 20000000 NMP (P3) 4MB SIM Erasing flash sector...done. Programming flash sector...done. Erasing flash sector...done. Programming flash sector...done. The system needs to be reset to run the new image. Console> (enable)This example shows how to download the fddi_1113.cpi file from the mercury host to module 4:
Console> (enable) download mercury fddi_1113.cpi 4 This command will reset Module 4. Download image fddi_1113.cbi from mercury to Module 4 FLASH (y/n) [n]? y | Finished network download. (1064876 bytes) ...............................................................................n Console> (enable)This example shows how to download the acpflash_1111.bbi file from the mercury host to module 3:
Console> (enable) download mercury acpflash_1111.bbi 3 This command will reset Module 3. Download image acpflash_1111.bbi from mercury to Module 3 FLASH (y/n) [n]? y / Done. Finished network download. (1964012 bytes) Console> (enable)This sample session shows how to connect to a remote terminal from a Sun workstation and how to use the download serial command to copy a software image to the supervisor card:
[At local Sun workstation] host% kermit C-Kermit 5A(172) ALPHA, 30 Jun 95, SUNOS 4.0 (BSD) Type ? or 'help' for help C-Kermit> set line /dev/ttyb C-Kermit> c Connecting to /dev/ttyb, speed 9600. The escape character is ^ (ASCII 28). Type the escape character followed by C to get back, or followed by ? to see other options. Console> enable Enter Password: Console> (enable) set system baud 19200 ^\C [Back at local Sun workstation] C-Kermit> set speed 19200 /dev/ttyb, 19200 bps C-Kermit> c Connecting to /dev/ttyb, speed 19200. The escape character is ^ (ASCII 28). Type the escape character followed by C to get back, or followed by ? to see other options. Console> (enable) download serial Download Supervisor image via console port (y/n) [n]? y Concentrator Boot ROM (Ver 1.00) Waiting for DOWNLOAD!! Return to your local Machine by typing its escape sequence Issue Kermit send command from there[ Send 'Filename'] ^\C [Back at Local System] C-Kermit> send c5000_xx.bin SF c5000_xx.bin => C5000_XX.BIN, Size: 1233266 X to cancel file, CR to resend current packet Z to cancel group, A for status report E to send Error packet, Ctrl-C to quit immediately: .......................... ............................................................................... ...... [OK] ZB C-Kermit> quit host%Related Commands
reset
show flash
upload