Re: Add the find command to your IOS.

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


   
Hi Tim,

In my opinion, I like using some alias commands on production (ie customer)
routers. It does two things:
1) Since my alias list is pretty unique, it's a simple signature that let's
me know if I've touched the router before. My job responsibilities include
that I maybe in 15+ different customer networks (and who knows how many
routers) in 1 day working on issues - kind of like M*A*S*H 4077 and meatball
surgery - and seeing if there is an alias list quickly lets me know that
I've been in this router before. And speed helps - especially when you have
a customer calling in with a down network and I need to quickly evaluate the
issue.

2) When I do show my configs to coworkers or customers, I can gauge how
experienced the tech is if they ask me what the alias list is (and this is
only a rough, rough gauge). If I'm at a customer site and showing some of
my handywork and they see the alias list, I think it is an easy way to show
the customer I know a little bit (and I'll only claim a tiny-tiny bit) about
Cisco IOS. I've had alot of customer techs just be amazed at the simplicity
of the alias list.

3) Like Michael said - the lab is about speed - and I think an alias list
helps. While I only use about 15 aliases, I type them once in my term serv,
do a send all, and bamm - all my routers have the same list - takes less
than 3 mins. And yes, typing 'alias exec srb show run | begin' once is
easier than typing 'show run | begin' about 10 times in the lab.

Only my opinion. You say tomato - I say tomato (that phrase sounds better
than it does written ;-) )

Happy routing,
Sean
----- Original Message -----
From: "Tim O'Brien" <tobrien@cinci.rr.com>
To: "Michael Snyder" <msnyder@ldd.net>; <ccielab@groupstudy.com>
Sent: Saturday, May 11, 2002 10:41 AM
Subject: RE: Add the find command to your IOS.

I passed my CCIE lab without ever using an alias command. Do you really find
that they save that much time? Having to memorize 30!?! of them??? What
happens when you get your CCIE and you are out working on customer routers?
Do you bring your alias list to all of their equipment also? I think there
are a lot better ways to develop speed than the list of alias commands
below.

Tim
CCIE 9015

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Michael Snyder
Sent: Saturday, May 11, 2002 1:09 PM
To: ccielab@groupstudy.com
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