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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command to see Flash contents in old IOS version?

Status
Not open for further replies.

GeneralDzur

Technical User
Jan 10, 2005
204
0
0
US
Updating the routers IOS image. It is currently using 12.1(3r)T2. I can't use the command "copy tftp: flash:" because the "flash" word isn't in the command syntax.

These are the available options:

917_gw_rtr#copy tftp: ?
ftp: Copy to ftp: file system
lex: Copy to lex: file system
null: Copy to null: file system
nvram: Copy to nvram: file system
pram: Copy to pram: file system
rcp: Copy to rcp: file system
running-config Update (merge with) current system configuration

startup-config Copy to startup configuration
system: Copy to system: file system
tftp: Copy to tftp: file system

I want to update the IOS - which option would I choose? thanks

- stephan
 
Try not typing the :

Command as follows:

router#copy tftp flash
 
Hmmm..what platform of router is it?

I have 12.1-9a on a 2524 and it shows copy tftp: to flash:

Try downloading Router Software Loader from cisco's website and see if that helps.
 
JOAMON - trying it w/out the semicolons didn't work. It still doesn't recognize the word "flash".

ReadRight - I'm going to the cisco website now to download the Router Software Loader. Do you have to be a registered user?

- stephan
 
Please post a show version and lets see were the router boots from.
 
Also....do you have the option to do a show flash? If so please post also.
 
Hello there, On 25xx platforms to be able to upgrade the IOS you must be in bootmode as you can not erase an image while the router is running that image. On this router platform the main IOS image is running from flash. Just change the configuration register to 0x2101 (or 0x2141 if you have any boot statements command in your existing config). Once in bootmode you will be able to use copy tftp flash. Cheers and good luck
 
Here is my show version. Tecnikall - it's not a 2500 series, it's a 26xx. I'm not sure if that matters. When i attempt to use the RSL (Router software loader) from Cisco, it says that it can't find my flash memory. ???

- stephan


917_gw_rtr#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Tue 07-Dec-99 02:21 by phanguye
Image text-base: 0x80008088, data-base: 0x80C524F8

ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)

917_gw_rtr uptime is 15 hours, 8 minutes
System returned to ROM by power-on at 15:13:28 GMT Fri Jan 28 2005
System image file is "flash:c2600-is-mz.120-7.T"

cisco 2620 (MPC860) processor (revision 0x600) with 56320K/9216K bytes of memory.
Processor board ID JAD05370UA5 (2776703076)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.

Configuration register is 0x2102
 
Hi Stephan, it looks like you don't have any internal flash. Maybe the router was loaded using a flash card with 12.0(7)T image on it and at a later stage the flash card was removed. Can you console into the unit and capture:
show file system
show flash
If no flash on next reload the router will not be able to load any valid images. One last thing just do a show run and see if you have any boot statements commands pointing to a tftp server where the router may load the image on reload. Cheers and good luck.
 
We reloaded the router recently because our satellite connection went down and we had to re-install a new satellite and Indoor Unit. I learned on-the-fly how to setup NAT, with my boss watching. :) very proud of myself. Anyway, back on subject. Here's my 'show file system'


917_gw_rtr#sho file system
File Systems:

Size(b) Free(b) Type Flags Prefixes
29688 27279 nvram rw nvram:
- - opaque rw null:
- - opaque rw system:
- - opaque ro xmodem:
- - opaque ro ymodem:
- - network rw tftp:
- - opaque wo lex:
- - network rw rcp:
- - network rw pram:
- - network rw ftp:

917_gw_rtr#show flash
^
% Invalid input detected at '^' marker.


- stephan
 
Hi Stephan,

You don't have any flash hoding an image on it... It looks like someone used a Flash Card and after the router loaded the image the flash card was removed. If you reload this router it will end up in rommon mode. The solution will be to either add internal memory (sims) to the unit or use an external flash card. Cheers and good luck
 
And yet the router boots, and SH VER shows that it's booting from flash.

If you ever have a chance during downtime, plug a console cable into the router and watch the boot process through that...see if it complains about any errors as it boots.



IOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Tue 07-Dec-99 02:21 by phanguye
Image text-base: 0x80008088, data-base: 0x80C524F8

ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)

917_gw_rtr uptime is 15 hours, 8 minutes
System returned to ROM by power-on at 15:13:28 GMT Fri Jan 28 2005
System image file is "flash:c2600-is-mz.120-7.T"

 
I watched it boot during our last downtime (re-installation of internet satellite dish), and it didn't show any errors. Could it be that the flash is corrupted? Its confusing me, I'll admit.

- stephan

Here's the most current config again


Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname 917_gw_rtr
!
no logging buffered
no logging console
enable secret 5 $1$h.TO$xKBYPflZsFnaAGMlSv6bV0
!
!
!
!
!
memory-size iomem 15
clock timezone GMT -9
ip subnet-zero
ip flow-cache entries 4029
ip flow-cache timeout active 5
ip cef
no ip domain-lookup
ip name-server 212.113.0.3
!
!
!
!
!
!
interface FastEthernet0/0
description Internal LAN
ip address 192.168.7.1 255.255.255.0
ip access-group 101 out
no ip directed-broadcast
ip accounting access-violations
ip nat inside
ip route-cache flow
duplex auto
speed auto
!
interface Ethernet1/0
description Tachyon
ip address 81.31.202.74 255.255.255.252
ip access-group 102 in
no ip unreachables
no ip directed-broadcast
ip accounting output-packets
ip accounting access-violations
ip nat outside
ip route-cache flow
!
ip nat pool warriors 81.31.202.74 81.31.202.74 netmask 255.255.255.252
ip nat inside source list 8 pool warriors overload
ip flow-export source Ethernet1/0
ip flow-export version 5
ip flow-export destination 192.168.7.254 9997
ip classless
ip route 0.0.0.0 0.0.0.0 81.31.202.73
no ip http server
!
logging source-interface FastEthernet0/0
access-list 8 permit 192.168.7.0 0.0.0.255
access-list 101 deny ip 63.250.215.0 0.0.0.255 any
access-list 101 deny ip 205.188.234.0 0.0.0.255 any
access-list 101 permit ip any any
access-list 102 deny tcp any any eq 0
access-list 102 deny udp any any eq 0
access-list 102 deny tcp any any eq telnet
access-list 102 deny udp any any eq 23
access-list 102 deny tcp any any eq 8000
access-list 102 deny tcp any any eq 8001
access-list 102 permit ip any any
access-list 150 permit ip 192.168.7.0 0.0.0.255 any
access-list 150 deny ip any any
banner login ^C
 
I just got done upgrading the IOS, Flash, and Memory in 2 of our 2600(a 2620 and a 2621) routers. These don't have removeable flash card like the 3600 series so if it's not going to rommon, then there must be flash in it.
You should be able to do a DIR command at the enable prompt.
Code:
[b]router#dir [/b]
Directory of flash:/
    1  -rw-     9907088              <no date>  /c2600-is-mz.122-6.bin

16777216 bytes total (6870064 bytes free)

I also copy our running config there " just in case". See if you can do that....
Code:
FPCR001#copy run flash:
Destination filename [running-config]? 

Verifying checksum...  OK (0xF8CC)
4855 bytes copied in 1.304 secs (4855 bytes/sec)

"sho ver" showing flash...
Code:
router#sho ver

cisco 2620 (MPC860) processor (revision 0x00) with 45056K/4096K bytes of memory.
Processor board ID JAD06090CNU (3551030828)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 FastEthernet/IEEE 802.3 interface(s)
2 Serial(sync/async) network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
[COLOR=red]16384K bytes of processor board System flash Read/Write)[/color]
 
This is what I get when trying the above commands:

917_gw_rtr#dir flash:/
^
% Invalid input detected at '^' marker.

917_gw_rtr#dir
%Error parsing (Bad file number)

917_gw_rtr#copy run flash
^
% Invalid input detected at '^' marker.

917_gw_rtr#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Tue 07-Dec-99 02:21 by phanguye
Image text-base: 0x80008088, data-base: 0x80C524F8

ROM: System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)

917_gw_rtr uptime is 5 days, 13 hours, 42 minutes
System returned to ROM by power-on at 15:13:28 GMT Fri Jan 28 2005
System image file is "flash:c2600-is-mz.120-7.T"

cisco 2620 (MPC860) processor (revision 0x600) with 56320K/9216K bytes of memory.
Processor board ID JAD05370UA5 (2776703076)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 FastEthernet/IEEE 802.3 interface(s)
32K bytes of non-volatile configuration memory.

Configuration register is 0x2102
 
There must be something wanky with your flash wafer. Try getting a new flash on ebay and try it out. Hopefully it's just the flash and not something on your motherboard.

Another thing you might try is set it up to boot from tftp then see if anything changes...if it does then it's just a corrupt IOS. Then once booted with a new IOS from tftp you can try re-initializing the flash. [COLOR=red yellow]DISCLAIMER!![/color] Be careful though, if anything goes wrong after re-initializing flash there may be no going back in a hurry. This is a production router, right? [noevil]

That's really all I can think of. I haven't come across any known bug reports resembling this.
 
On second thought if it's a production router maybe you'd better just go with a new flash [bigsmile]

That way at least you should have a fallback where you can just pop in your old flash and be back where you started from as a worst case.
 
Yeah, we're looking at purchasing a new flash off eBay.

- stephan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top