« Cisco Networkers is Here Again! | Main | A Cisco Tip Repository »
June 13, 2008
My New Favorite IOS Command
I know I mentioned this command in passing a few posts ago, but this command has become so valuable to me, it needs its own post. It's the show run | section command. This allows you to define any "major heading" from the IOS configuration and it will filter the running configuration down to just those sections. This is very similar to how the ASA "show run" command works.
For example, I'm working on a book focused around CallManager Express (CME) right now. In CME, you create "ephones" which represent the IP Phones on your network. If I wanted to see the configuration for all my ephones, I can just type:
CME_Voice#show run | s ephone
max-ephones 24
ephone-dn 1
number 1000
ephone-dn 2 dual-line
number 1001
ephone-dn 3 dual-line
number 1003
ephone-dn 10 dual-line
number 1010
huntstop channel
ephone-dn 11
number 1010
preference 1
ephone 1
device-security-mode none
mac-address 0014.1C48.E71A
button 1:10
ephone 2
device-security-mode none
mac-address 0019.D122.DCF3
button 1:11
ephone 3
device-security-mode none
mac-address 0014.A89E.F845
button 1:1 2:2 3:3
ephone 4
device-security-mode none
(FYI - "s" is short for "section") As you can see, this shows all the sections of running-config that start with "ephone", which is all my ephones and ephone-dns (their directory numbers). Gotta love it!
Posted by JC at June 13, 2008 9:11 AM
Trackback Pings
TrackBack URL for this entry:
http://www.cioara.org/cgi-bin/mt-tb.cgi/278
Comments
Bah, I just installed a CCME system on Wednesday, and "show run | begin ephone" didn't work well because I had a tftp-server command with the word ephone in it. I'll have to see if the section command works any better, it would have saved some typing!
Let me know if you need a technical editor on this or another project... I've been a TE for Cisco Press before, see my site for my experience or drop me an email.
Posted by: Sean at June 14, 2008 6:57 AM
Here is a site with some undocumented Cisco commands:
http://www.elemental.net/~lf/undoc/
I still want to test a "test crash" :)
Posted by: chiel at June 16, 2008 3:29 PM
Jeremy,
I think you’re an awesome person and I really like the way you train on your videos. I think its great that you deliver the message as who you really are and that you present your lessons in a way that pulls people into the knowledge you are sharing. God has really blessed you. I also sincerely appreciate your acknowledgement to our creator and it’s inspirational and captivating to continue learning about Cisco from someone who is opened about their faith. I have seen your CBT CCNA videos and purchased your practice test book 3rd edition and will be taking my CCNA test on Tuesday. Hopefully I will be able to shake your hand and thank you personally on Wednesday in your CCVP Prep class at 4:00.
Jose M. Laboy
Posted by: Jose M. Laboy at June 17, 2008 9:16 AM
I agree.
I started to study to my CCNA with Jeremy's videos. After 6 months of watching Jeremy's videos I was already CCSP,CCNP, CCDP, CCIP (yes, I saw your knowledgnet BGP as well.) and working for Hewlett Packard as a network engineer in the biggest network in Ireland
I havent taking my CCVP yet cuz u havent made all the videos yet. I saw your CCIE videos as well. I am taking the lab very soon, scheduled for November. I intend to take several CCIE labs as well. Network is my passion and it became so when i saw Jeremy's biography video on CBTnuggets...
I actually sent my CV to your company before I got offered a job in HP in January 2008.
Keep it up...
Posted by: Ricardo Martins at June 17, 2008 9:42 AM
Hi Jeremy,
I would request you if you can some suggest material or any white paper that cover the following topics in details. I know their basics but want to get into the usage details along with some practical example scenarios.
1. Prefix-List
2. Offset-List
3. Distribute-List
Posted by: Deepak Arora at June 17, 2008 12:09 PM
Check this one I posted in JC forums pretty cool
Posted by: Ricardo Martins at June 18, 2008 7:29 AM
Check this one I posted in JC forums pretty cool
Posted by: Ricardo Martins at June 18, 2008 7:30 AM