Giving Something Back. Some commands with Output Modifiers I Use

From: Michael Snyder (msnyder@xxxxxxx)
Date: Tue Aug 28 2001 - 22:42:49 GMT-3


   
I've been playing with commands with output modifiers for a few weeks now.
I'm having a ball with them. Thought I list a few for you to try. I use them
sometimes in aliases, and autocommands.

If you like circle logic, you're like this one. I use a lot of aliases, and
don't like to look at them in the config. Also handy for cleaning up a config
of aliases with a cut & paste.

alias exec sr show run | e alias
alias exec sc show config | e alias

Here's a good alias and autocommand

show ip int brief | e unass

alias exec siib show ip int brief | e unass

autocommand show ip int brief | e unass
autocommand-options nohangup

or

show ip route | e - (Gets rid of the 7 line header in the show ip route
command)

autocommand show ip route | e -
autocommand-options nohangup

Here's two for BGP, (they're from another member of this list)

alias exec sbs show ip bgp neigh | include BGP state
alias exec shn show ip bgp neigh | include BGP neighb

Here's some basic function commands with modifiers

show runn | i dlsw
show runn | b bgp

And lastly, here's three normal alias I've grown fond of.

alias configure i interface
alias configure r router
alias configure l line
**Please read:http://www.groupstudy.com/list/posting.html



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:31:59 GMT-3