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



  1. Hi,

    Nice article. It’s the first time i encountered the “sec” command after a pipe. Googled it up, and came across an interesting article:

    === cut here ===
    IOS release 12.3(2)T (integrated in 12.4) brought us a few new filters, among them the section filter that includes or excludes whole sections (start of section being defined by a line with no leading space). You can use this filter to focus on parts of your router configuration. For example, to display only the routing protocols configuration, use show running | section include router command.
    === and here ===


    Comment by Sorin CONSTANTINESCU — November 11, 2007 @ 5:11 am | Reply

  2. oops. i just noticed that the above mentioned blog belongs to Ivan Pepelnjak. I’m 50 pages away from finishing MPLS and VPN Architectures Vol 2. What a small world! 😉

    Comment by Sorin CONSTANTINESCU — November 11, 2007 @ 5:13 am | 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: Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

Blog at

%d bloggers like this: