CCIE Pursuit Blog

November 10, 2007

More More More!!!

Another day, another indispensable command discovered.  This one is old, but I only just discovered a use for it today.  I had an issue with a router that melted.  I was able to get a basic config on it and dial into the sucker.  For some reason it was not seeing the ATM IMA card.  After having my site contact kick the hell out of it, it suddenly remembered that it did indeed have an IMA card  🙂  Unfortunately all of the ATM IMA configuration was blown away.  I knew that there was an older configuration saved to flash with the IMA configuration on it. [I could have also pulled a copy from CiscoWorks, but I was in a hurry and didn’t want to deal with Java fighting with Windows].  I could see that the file was in flash, but I wanted to open it and pull out the configuration bits that I needed.  That’s when my co-worker suggested that I use “more“. 

I knew about this command only because it has been suggested by Cisco that instead of using “show start” you should use “more nvram:start”.  I’ve never adopted this because “sh start” is just too familiar and easy.  In this case, it was the perfect solution because “more” allows you to display the contents of a file. 

I saved an old configuration to flash as “lab”
r2#sh flash:
-#- –length– —–date/time—— path
1      3922109 Jul 1 2007 14:53:26 +00:00 c3550-i9k2l2q3-mz.121-14.EA1.bin
2         1541 Jan 28 2005 16:42:48 +00:00 sdmconfig-28xx.cfg
3      3885056 Jan 28 2005 16:43:08 +00:00 sdm.tar
4         1463 Jan 28 2005 16:43:22 +00:00 home.html
5       270848 Jan 28 2005 16:43:36 +00:00 home.tar
6        93095 Jan 28 2005 16:43:52 +00:00 attack-drop.sdf
7      1187840 Jan 28 2005 16:44:06 +00:00 ips.tar
8         1381 Nov 10 2007 16:18:32 +00:00 lab
9     41240024 May 26 2007 09:19:56 +00:00 c2800nm-adventerprisek9-mz.124-11.T2.bin

I want to see the old configuration for gi0/0:

r2#more flash:lab | sec GigabitEthernet0/0
interface GigabitEthernet0/0
 ip address
 duplex auto
 speed auto

Nice!!!  Now I want to make this old configuration my running configuration:

r2#copy flash:lab run
Destination filename [running-config]?

1381 bytes copied in 0.372 secs (3712 bytes/sec)

Let’s verify that the old config is on gi0/0 now:
r2#sh run int gi0/0
Building configuration…

Current configuration : 108 bytes
interface GigabitEthernet0/0
 ip address
 duplex auto
 speed auto

While I be sticking with “show” for the running and startup configurations, “more” is definitely a command that I will make use of quite a bit in the future.

Cisco Documentation


Create a free website or blog at