Archive for 'IOS Foundations'

My New Favorite IOS Command

Posted on 13. Jun, 2008 by rivansystems.

0

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!

Continue Reading