From: Ty Bindrup (LPTBindr@xxxxxxx)
Date: Mon May 13 2002 - 13:12:54 GMT-3
This is a good shortcut/timesaver. However, I am running IOS ver
12.0(9) and it doesn't seem to have the option to pipe. I get a syntax
error...
show running-config | begin
^
% Invalid input detected at '^' marker.
Is this an exclusive for IOS 12.1?
Regards,
Ty
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
Michael Snyder
Sent: Saturday, May 11, 2002 11:09 AM
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
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:55 GMT-3