cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5379
Views
0
Helpful
2
Replies

How to add new ios image into flash

I have a cisco catalyst switch 2924 xl and erased  the flash  with command  " erase flash ",  and trying to load new ios image into the flash.

Now, the prompt is

"

switch:     

"

i trying to use this command in loading into the cisco catalyst switch 2924xl using the command :

" switch: copy xmodem:ios_filename flash:ios_filename "

and i am getting this error :

"

switch: copy xmodem:c2900xl-c3h2l9s-mz.120-5.WC17.bin flash:c2900xl-c3h2l9s-mz.120-5.WC17.bin

Begin the Xmodem or Xmodem-1K transfer now...

CCCCCCCCCCxmodem:c2900xl-c3h2l9s-mz.120-5.WC17.bin: I/O error     "

Please, let me know.

Thank You.

dey

2 Replies 2

Leo Laohoo
Hall of Fame
Hall of Fame

1.  Make sure your flash has enough space for the new BIN file;

2.  Ensure your BIN file is not corrupted.

Hi,

My suggestion is below...


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.

You can upgrade 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.

Please rate the helpfull posts.

Regards,

Naidu.

Review Cisco Networking products for a $25 gift card