05-23-2011 06:14 PM - edited 03-07-2019 12:38 AM
I accidentally deleted the IOS on my new switch and hoped someone could tell me how to recover it. I have the image I need on my PC and have booted the switch to the switch: prompt but don't know how to transfer it. The configuration guide tells me to connect my PC to the switch via the management port but my management port isn't configured with an IP address so there's no way for me to transfer the file via TFTP. Can someone help?
Thank you,
Thomas
Solved! Go to Solution.
05-24-2011 02:45 PM
Xmodem Console Download Procedure Using ROMmon
http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bfac.shtml
05-26-2011 07:57 AM
switch: set BAUD 115200
you will lose the console session once you run the command (it will freeze on you). You will need to close your session and reconnect to serial at 115200 to get the console back and run the xmodem commands. Once you've completed the transfer, PLEASE don't forget to set the speed back to 9600 before you go any further.
switch: UNSET BAUD
It will save you some headache.
Message was edited by: Antonio Knox
05-23-2011 06:17 PM
You have two choices: Easy or the Hard method
Easy: Use a USB flash drive. The 3750X can support "boot usbflash0:
Hard: ROMmon upload
05-23-2011 06:22 PM
Where do I type the boot usbflash0:
05-23-2011 06:34 PM
Ok. Firstly get a few USB flash drives (maximum size of 16Gb). Format them with FAT16.
You need to copy the BIN file into the USB stick.
Insert the USB stick into the back of the 3750X.
At the prompt of the switch, enter the command "init_flash" and once the prompt comes back, enter the command "dir usbflash0:". Next try the command "boot usbflash0:
05-23-2011 06:49 PM
I formatted the usb drive with fat16 and copied the image over but then I get this:
switch: dir usbflash0:
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: short bulk, 13 instead 36
ERR: usbd_bulk_transfer fail status -2147483648
ERR: usbd_bulk_transfer error status -2147483648
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
ERR: Reloading ptd ?/?... qh ? readed: 196075476 of 195336368 done: 0baf0250 cur: 00000000
05-23-2011 06:51 PM
leolaohoo,
How do I do the ROMMON method?
Thank you,
Thomas
05-23-2011 06:54 PM
How do I do the ROMMON method?
Your prompt is "switch:" so you are in ROMmon already. Did you try the intialize command "init_flash"?05-23-2011 06:55 PM
Yes, but it was flash_init, not init_flash. Now what should I try?
Thomas
05-23-2011 06:57 PM
Yes, but it was flash_init, not init_flash.
Nuts. I always get the two confused.
Now what should I try?
Now try "dir usbflash0:".05-23-2011 07:00 PM
When I do that I get the error messages shown above.
05-23-2011 07:05 PM
Using driver version 1 for media type 1
Base ethernet MAC Address: 68:bd:ab:dd:c7:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:
flash_init
boot
switch: flash_init
Initializing Flash...
mifs[2]: 12 files, 1 directories
mifs[2]: Total bytes : 1806336
mifs[2]: Bytes used : 756224
mifs[2]: Bytes available : 1050112
mifs[2]: mifs fsck took 0 seconds.
mifs[3]: 0 files, 1 directories
mifs[3]: Total bytes : 3870720
mifs[3]: Bytes used : 1024
mifs[3]: Bytes available : 3869696
mifs[3]: mifs fsck took 1 seconds.
mifs[4]: 5 files, 1 directories
mifs[4]: Total bytes : 258048
mifs[4]: Bytes used : 9216
mifs[4]: Bytes available : 248832
mifs[4]: mifs fsck took 0 seconds.
mifs[5]: 5 files, 1 directories
mifs[5]: Total bytes : 258048
mifs[5]: Bytes used : 9216
mifs[5]: Bytes available : 248832
mifs[5]: mifs fsck took 0 seconds.
-- MORE --
mifs[6]: 568 files, 19 directories
mifs[6]: Total bytes : 57931776
mifs[6]: Bytes used : 17676288
mifs[6]: Bytes available : 40255488
mifs[6]: mifs fsck took 15 seconds.
...done Initializing Flash.
switch: dir usbflash0:
Directory of usbflash0:/
1 -rw- 55160764c2800nm-spservicesk9-mz.151-1.T.bin
2 -rw- 56505908c2800nm-spservicesk9-mz.151-2.T1.bin
3 -rw- 700816C870_RM_ALT.srec.123-8r.YI6
4 -rw- 18808432c870-advsecurityk9-mz.124-24.T2.bin
5 -rw- 21084916c870-advsecurityk9-mz.151-1.T.bin
6 -rw- 1690523C1841_RM2.srec.124-13r.T5
7 -rw- 1623191C2800NM_RM2.srec.124-13r.T6
8 -rw- 1626367C2800NM_RM2.srec.124-13r.T11
9 -rw- 43160560c2800nm-advsecurityk9-mz.151-2.T1.bin
10 -rw- 30078988c890-universalk9-mz.151-3.T.bin
11 -rw- 6635520ap801-k9w7-tar.124-25d.JA.tar
12 -rw- 1464478C890_RM2.srec.124-22r.YB5
13 -rw- 2979840ap801-rcvk9w8-tar.124-21a.JY.tar
14 -rw- 10893632c2960s-universalk9-mz.122-55.SE2.bin
15 -rw- 15052800c2960s-universalk9-tar.122-55.SE2.tar
16 -rw- 1270064asr1000-rommon.150-1r.S.pkg
17 -rw- 290097464asr1000rp1-adventerprisek9.03.02.01.S.151-1.S1.bin
18 -rw- 17745920c3750e-universalk9-tar.122-55.SE1.tar
19 -rw- 14570585c3750e-universalk9-mz.122-55.SE1.bin
20 -rw- 306016568asr1000rp1-adventerprisek9.03.03.00.S.151-2.S.bin
21 -rw- 17530880c2960s-universalk9-tar.122-58.SE1.tar
22 -rw- 14428160c2960-lanlitek9-tar.122-58.SE1.tar
23 -rw- 21186560c3750e-universalk9-tar.122-58.SE1.tar
80510976 bytes available (950468608 bytes used)
switch: boot usbflash0:c2960s-universalk9-mz.122-55.SE2.binLoading "usbflash0:c2960s-universalk9-mz.122-55.SE2.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
I don't have a 3750X handy with me but a 2960S will be suffice. This method works. May I request if you reboot your 3750X and try again?
1. At the "switch:" prompt, enter "flash_init"
2. dir usbflash0:
3. Identify the filename and boot from USB using the command "boot usbflash0:
NOTE: Not all USB flash drives are supported, hence my recommendation to get several ready.
05-23-2011 07:12 PM
leolaohoo,
I will try another usb when I get home. I only have one here at work. Thank you for all of your help! I will keep you posted.
Thomas
05-23-2011 07:15 PM
Don't thank me yet. Wait `til it works.
05-24-2011 11:46 AM
leolaohoo,
Okay, man. I tried multiple flash drives and none of them worked. Can you help me recover my image via ROMMON?
Thank you,
Thomas
05-24-2011 02:45 PM
Xmodem Console Download Procedure Using ROMmon
http://www.cisco.com/en/US/products/hw/routers/ps259/products_tech_note09186a008015bfac.shtml
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide