Re: Add the find command to your IOS.

From: Sean C. (Upp_and_Upp@xxxxxxxxxxx)
Date: Sat May 11 2002 - 18:47:26 GMT-3


   
Hi Michael,

Nice alias list. I use about 15-20 aliases myself. I like the use of the
ACL 199 and the debug ip routing (never thought of that one).

The only aliases that I can suggest to add are:

alias configure ac alias configure
ac ae alias exec

That way one doesn't have to type 'alias configure' and 'alias exec' 20+
times. I have a suspicion you may already use them but didn't include them
as it maybe a little confusing at first.

Overall, thanks for the post. I think there are always one or two new
people to the GroupStudy list that are enlightened when the alias posts pop
up every two months or so.

Happy routing,
Sean
----- Original Message -----
From: "Michael Snyder" <msnyder@ldd.net>
To: <ccielab@groupstudy.com>
Sent: Saturday, May 11, 2002 10:08 AM
Subject: Add the find command to your IOS.

Got your attention didn't I.

Really it's just an exec alias I've been using, that I like a lot.
Thought I would share it with the Groupstudy Listonians.

'alias exec f show running-config | begin'

I used a single keystoke 'f' for find. Try it.

f aux, f router, f access-l, f vty, etc.

Below is my complete alias list, version 3. I have weaned it down to
less than 40 commands; version 1 had some 70 commands about two months
ago.

I had two opposing goals with my alias lists. Single or double
keystrokes for quick use and some kind of pattern that could be
remembered. Ashame that you can't send in your alias list to the lab,
and have it waiting for you on test day. Anyway, I think I have
something that is very useful, and that can be remembered.

For example.

'si' is show ip route
'di' is debug ip routing
'ci' is clear ip routing

Another example,

'sb' is show ip bgp
'db' is debug ip bgp
'cb' is clear ip bpg

Note, some of the alias are not complete, they need additional
parameters. For example, 'db' should be used as 'db update' for debug
ip bgp updates. This is how I reduced the total number of aliases.

Some I didn't reduce just because I just like using them. For example,
I really like the config mode 'b' command. It is used as in 'b 2' to
enter router bgp 2. Saves a lot of typing and fat finger mistakes.

Others don't need to be remembered. I use 'x' for exit in every common
mode I use. Exec, Config, Interface, Sub Interface, and Router.

The single exec keystroke of 's' is very sweet. It's the most common
command I use. It does a show ip int brief and filters out any unused
interfaces. Other enhancements are in the 'si' command, it does a show
ip route command then filters out that damn 7 line header I have seen a
billon times. The 'sr' command does a show run, then filters out the
alias list. Why look at 40 lines of alias code every time you do a show
run?

Good Luck,

Michael

config t

alias configure b router bgp
alias configure e router eigrp
alias configure h ip host
alias configure i interface
alias configure o router ospf
alias configure r router rip
alias configure xr ipx router
alias configure x exit

alias interface i ip address
alias interface ns no shutdown
alias interface x exit

alias subinterface i ip address
alias subinterface x exit

alias router x exit

alias exec c config t
alias exec f show running-config | begin
alias exec s show ip interface brief | e unass
alias exec x exit

alias exec cb clear ip bgp *
alias exec ci clear ip route *
alias exec co clear clear ip ospf process
alias exec cx clear ipx route *

alias exec db debug ip bgp
alias exec do debug ip ospf
alias exec dp debug ip packet 199 detail
access-list 199 permit icmp any any
alias exec di debug ip routing

alias exec nd undebug all

alias exec sb show ip bgp
alias exec sc show startup-config | e alias
alias exec sd show dialer
alias exec se show ip eigrp
alias exec sf show frame-relay
alias exec si show ip route | e -
alias exec so show ip ospf
alias exec sr show running-config | e alias
alias exec sx show ipx route

alias exec cdp show cdp neighbors detail
alias exec sbn show ip bgp neighbors | include BGP neighbor
alias exec sbs show ip bgp neighbors | include BGP state
alias exec sip show ip protocols
alias exec sis show isdn status

exit
wr



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