Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem in copying IOS into a 2924XL switch

Status
Not open for further replies.

ltanghome

Instructor
Sep 26, 2003
6
US
I tried to copy an IOS image into a 2924XL switch but failed with the following display:

switch: copy xmodem: flash:c2900XL-c3h2s-mz.120-5.3.WC.1.bin
Begin the Xmodem or Xmodem-1K transfer now...
CCCCCCCCCCBB0BB0xmodem:: I/O error

I tried it several times with the same display. I couldn't find any document to go on. Please help.

Thanks.


 
Did you delete the old IOS before trying to download the new one , if not you may be out of space .
 
Thanks vipergg for your response.

The old IOS was deletely accidently by my student. Any additional hints?
 
I see that you are loading 12.0.5. Please make sure that your switch has 8M of RAM. The old 2924s only have 4M and will not load 12.0. They are not upgradeable.

I would also recommend that you download the IOS from CCO again. Your image may be corrupt.
 
There is a fair amount of playing to go through to upgrade the IOS image on these series.

Here it is...

Upgrading Switch Software by Using the CLI
After you have downloaded the new files to your PC or workstation, you can use the CLI to perform a TFTP transfer of the files to the switch.

The procedure that follows includes the commands to address the following issues:

To avoid a conflict with users accessing the manager software pages during the software upgrade, you need to delete the existing HTML files and disable access to the HTML pages before you upgrade the software.


Because the switch Flash memory can hold only one software image file, you need to change the name of the current image file to the name of the new file you are copying. You then replace the old file with the new file when you copy it into Flash memory.


Follow these steps to upgrade the switch software by using a TFTP transfer:

Step 1 If your PC or workstation cannot act as a TFTP server, copy the files to a TFTP server to which you have access.

Step 2 You can access the CLI by starting a Telnet session or by connecting to the console port via the RS-232 connector.

To start a Telnet session on your PC or workstation, enter the following command:

server% telnet switch_ip_address

Step 3 Enter privileged EXEC mode:

switch> enableswitch#


Step 4 Display the name of the current (default) image file. The following example shows the current name in italic:

switch# show bootBOOT path-list: flash:current_imageConfig file: flash:config.textEnable Break: 1
Manual Boot: no



Step 5 If there is no file defined in the BOOT path-list, enter dir flash: to display the contents of Flash memory. The file named c2900XL-h-mz_current_version is your current image file.

Step 6 Rename the current image file to the name of the new image. This does not affect the operation of the switch.

switch# rename flash:current_image flash:new_imageSource filename [current_image]? Destination filename [new_image]?

Step 7 Display the contents of Flash memory to verify the renaming of the file:

switch# dir flash:Directory of flash:-rwx 910426 Mar 06 1993 23:47:28 new_image
-rwx 80971 Sep 14 1998 03:10:38 c2900XL-diag-mz-112.0.0.11-SA2-rwx 4800 Mar 01 1993 00:04:14 html-rwx 159 Jan 01 1970 00:00:34 env_vars-rwx 1121 Mar 01 1993 18:46:01 config.text

Step 8 If you are upgrading models WS-C2908-XL, WS-C2924-XL, WS-C2924C-XL, or WS-2916M-XL, you need to delete the diagnostics file to make room for the new image.


--------------------------------------------------------------------------------
Note If you are not upgrading one of the listed model numbers, you do not need to delete this file.
--------------------------------------------------------------------------------

The diagnostics file has a name in the following format: c2900XL-diag-mz-version_name. The string version_name depends on the switch and software you are running.

Display the diagnostics file:

switch# dir flash:c2900XL-diag-mz*Directory of flash:
-rwx 80971 Sep 14 1998 03:10:38 c2900XL-diag-mz-112.0.0.11-SA2

Delete the diagnostics file:

Switch# del flash:c2900XL-diag-mz-112.0.0.11-SA2
Delete filename [c2900XL-diag-mz-112.0.0.11-SA2]?
Delete flash:c2900XL-diag-mz-112.0.0.11-SA2? [confirm]
Switch#


Step 9 Enter terminal configuration mode:

switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

Step 10 Disable access to the switch HTML pages:

switch(config)# no IP http server

Step 11 Change the name of the default image file:

switch(config)# boot system flash:new_image

Step 12 Return to privileged EXEC mode:

switch(config)# end

Step 13 Verify that the name of the default image file is correct:

switch# show bootBOOT path-list: flash:new_imageConfig file: flash:config.textEnable Break: 1Manual Boot: noHELPER path-list: NVRAM/Config filebuffer size: 32768

Step 14 Use the name of the new image file when you copy it from the TFTP server to the Flash memory:

switch# copy tftp://server_ip_address//path/new_image flash:new_imageSource IP address or hostname [server_ip_address]? Source filename [path/filename]? Destination filename [flash:new_image]? Loading /path/filename.bin from server_ip_address (via!)[OK - 843975 bytes]


Step 15 Remove the manager software HTML files:

switch# del flash:html/*.*

Press Enter to confirm the deletion of each file. Do not press any other keys during this process.

Step 16 If you are running Cisco IOS Release 11.2(8)SA3 or later, remove the files in the Snmp directory:

switch# del flash:html/Snmp/*.*

Press Enter to confirm the deletion of each file. Do not press any other keys during this process.

Step 17 If you are running Cisco IOS Release 11.2(8)SA2 or earlier, create a directory on the switch Flash memory to be used for the HTML files:

switch# mkdir flash:html/Snmp


Make sure the "S" in "Snmp" is uppercase.

Step 18 Enter the following command to copy the HTML file from the TFTP server to the switch Flash memory:

switch# tar /x tftp://server_ip_address//path/filename.tar flash:html
Loading /path/filename.tar from server_ip_address (via!)extracting advanced.gif (2648 bytes)extracting amber.gif (530 bytes)!extracting bar.gif (4156 bytes)!extracting cool.gif (530 bytes)extracting daytona.gif (1470 bytes)extracting duplgnd.gif (639 bytes)!. . .

Depending on the TFTP server being used, you might need to enter only one slash (/) after the server_ip_address in the tar command.

Step 19 Enter terminal configuration mode:

switch# configure terminalEnter configuration commands, one per line. End with CNTL/Z.

Step 20 Reenable access to the switch HTTP pages:

switch(config)# IP http server


Step 21 Return to privileged EXEC mode:

switch(config)# end


Step 22 Reload the new software with the following command:

switch# reloadSystem configuration has been modified. Save? [yes/no]:yProceed with reload? [confirm]

Step 23 Press Return to confirm the reload.

Your Telnet session ends when the switch resets.



Enjoy.
 
Thanks for the responses.

I re-download the IOS image from another switch that was purchased at the same time. I check the memory it has 8M. Then I try to Xmodem thru the console port but it still displays the same result as I posted at the first time.

NMcman, since the flash is gone and I'm basically in the switch ROM mon mode I can't tftp the IOS file into the flash. The command I issued was:

switch: copy xmodem: flash:c2900XL-c3h2s-mz.120-5.3.WC.1.bin

Any additional thoughts?
 
My suggestion, since you are in tinyrom mode anyhow use:

Switch# format flash:

then perform your
copy xmodem: flash:NEW_IMAGE_NAME.BIN

Then send the file from whatever terminal emulation you are using. After that you can power off the switch, get a copy of the same IOS you are running with the .tar extension. The one with the .tar extension holds all the html and whaterver you have files (if you want these). Start your tftp server, make sure the tar file is in its root folder. Then power the switch back up, it should now boot the image you have in there.
Then perform the
tar /x tftp://server_ip_address//path/filename.tar flash:html

No need to change names of any files seeing as you are using the same ios it will just write over the one you are already using. Uhmm, make sure you have ip http server disabled first though. Then re-enable it. You should now hav a fully html and IOS functiong switch.

Giving props to NMCman, very well done with the information in there.
 
Also, you might want to try tera term or some other emulator than hyperterm. Especially if you are using 2000 or above as an OS. Have noticed hyperterm on those seems to cause some funky errors. May want to change out your rolled cable as well just for kicks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top