CCIE Pursuit Blog

November 17, 2007

LFU 8: Read The Prompts!!!

ARRGHH!!!!!  Today I was saving out a running configuration on a 2651XM to flash.  Very simple thing to do.  I had plenty of space in flash:

r1#sh flash:

System flash directory:
File  Length   Name/status
  1   29631128  c2600-adventerprisek9-mz.124-10.bin
[29631192 bytes used, 20176164 available, 49807356 total]
49152K bytes of processor board System flash (Read/Write)

I went ahead and copied the running configuration to flash, but I neglected to read the prompts carefully before hitting the “enter” key:

r1#copy run flash:r1_basic_cfg
Destination filename [r1_basic_cfg]?
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm] <-DOH!!!!
Erasing device… eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

I didn’t figure on melting the entire box.  There was plenty of room in flash for the config.  I just hit enter one too many times!!!

The correct way:
r3#copy run flash:r3_basic_cfg
Destination filename [r3_basic_cfg]?
Erase flash: before copying? [confirm]n
Verifying checksum…  OK (0x1EC9)
1802 bytes copied in 4.707 secs (383 bytes/sec)

r3#sh flash:

System flash directory:
File  Length   Name/status
  1   29631128  c2600-adventerprisek9-mz.124-10.bin
  2   1802     r3_basic_cfg
[29633060 bytes used, 20174296 available, 49807356 total]
49152K bytes of processor board System flash (Read/Write)

Back to R1:

r1#sh ver | i IOS
Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(10), RELEASE SOFTWARE (fc1)

r1#sh flash:

System flash directory:
File  Length   Name/status
  1   1224     r1_basic_cfg
[1288 bytes used, 49806068 available, 49807356 total]
49152K bytes of processor board System flash (Read/Write)

So I have my config file, but no IOS.  At least this should be an easy fix.

I have the appropriate IOS running on r3:

r3#sh ver | i IOS
Cisco IOS Software, C2600 Software (C2600-ADVENTERPRISEK9-M), Version 12.4(10), RELEASE SOFTWARE (fc1)

I have connectivity to r3 via a PTP connection. I just need to set r3 up to be a tftp server for that image:

r3(config)#tftp-server flash:c2600-adventerprisek9-mz.124-10.bin

Now I need to copy that image to flash on r1:

r1#copy tftp flash:
Address or name of remote host []? 155.1.13.3
Source filename []? c2600-adventerprisek9-mz.124-10.bin
Destination filename [c2600-adventerprisek9-mz.124-10.bin]?
Accessing tftp://155.1.13.3/c2600-adventerprisek9-mz.124-10.bin…
Erase flash: before copying? [confirm]n <-learn from your mistakes!!!
Loading c2600-adventerprisek9-mz.124-10.bin from 155.1.13.3 (via Serial0/1):
!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK – 29631128 bytes]

Verifying checksum…  OK (0xC7EA)
29631128 bytes copied in 753.755 secs (39311 bytes/sec)

After getting a cup of coffee (or 3 cups – I have the PTP link set at 64K)  , everything is  wonderful again on r1:

r1#sh flash:

System flash directory:
File  Length   Name/status
  1   1224     r1_basic_cfg
  2   29631128  c2600-adventerprisek9-mz.124-10.bin
[29632480 bytes used, 20174876 available, 49807356 total]
49152K bytes of processor board System flash (Read/Write)

Configure the boot statement and reload:

r1(config)#boot system flash:c2600-adventerprisek9-mz.124-10.bin

 

Advertisements

2 Comments »

  1. Hehehehe,

    Yup that has happened with me as well several times,
    In a hurry to get it there we press enter tooo many times….and :(.

    Well Cisco should consider the human attitude aswell when getting the CLI options.

    Comment by Dara — November 18, 2007 @ 2:27 am | Reply

  2. Been there, done that, got the T-shirt. 😉 I wish they would change the default to make it me-proof.

    Comment by Kevin Dorrell — February 3, 2008 @ 2:50 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: