David Ramsden
25Oct/14

Show me the config!

Back in the days before stacks and VSS, doing a "show run" to look at something was easy. You pressed space a few times to page through the output and found the section you were interested in. Now when you've got a stack of several switches or switch running VSS with hundreds of interfaces you'll be pressing space forever and a day paging through the config.

In IOS you can pipe output to a selection of commands to filter output. Much like redirecting output using a pipe in UNIX or even Powershell.

Say for example you want to see the static routes in the running-config:

As with the above, regular expressions are acceptable too!

This is all well and good for commands such as "ip route" or "ntp" for example but what if you want to check an EIGRP config?

Oh. This isn't what we were expecting. This is because the EIGRP config is a section. Thankfully you can pipe to the "section" command:

Much easier than "sh run" and then paging through the output until you find what you're after.

And finally, if you're in configuration mode and want to check something with show, ping etc and don't want to have to drop back to priv exec mode, prefix your command with "do":

 

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.