« Welcome! | Main | Basic PIX Configuration »
December 26, 2005
Alias me!
There are quite a few very cool commands in the world of Cisco, but there is one that stands consistently at the top of the heap. It is one I type on every router, first thing. The column-based, concise, cleanly output…the one, the only:
Router#show ip interface brief
Pop! The one firework just went off. Seriously though, that is an awesome command. The only problem is that it takes too long to type. If I want to see the status of all my interfaces quickly, I want the command I type to be quick. That’s where the alias command comes into play. The Cisco IOS allows you to create an alias for any command in any mode – here’s the syntax:
Router(config)#alias <mode> <alias> <real command>
Check out the context sensitive help for the command:
Router(config)#alias ?
RITE-profile
aaa-user
accept-dialin
accept-dialout
address-family
aic
archive
bba-group
call-filter-matchlist
cascustom
cause-code-list
cem
ces-conn
ces-vc
cfg-pt-ruleset
cgma_agent
clid-group
cm-fallback
cns-connect-config
cns-connect-intf-config
cns-tmpl-connect-config
config-l2tp-class
config-rtr-http-rr
config-tgrep
config-tgrep
config-x25-huntgroup
configure
congestion
control-plane
controller
crypto-ca-cert-chain
Wow – that’s just the first page of it. If you ever wanted to know every single mode a Cisco router supports, there’s your list; and that’s just page one of five. Ah, but I digress – lets get back to the point. If you want to make aliases for your show commands, type “alias exec
Router(config)#alias exec s show ip interface brief
Now, every time I type the letter s, I get the instant output. It’s great! I usually paste a standard list of four show commands into every router I configure:
s = show ip int brief
sr = show run
sir = show ip route
sion = show ip ospf neighbors
Have fun aliasing away!
Posted by at December 26, 2005 9:38 PM
Trackback Pings
TrackBack URL for this entry:
http://www.cioara.org/cgi-bin/mt-tb.cgi/15
Comments
I have no interest in this, but i've been challenged to figure this out. I am a nortel pbx tech. This is the what i need.
we have a class c address, 200.1.1.x with 40 staff and access to internet using 65.60.4.0/30 network. we use eigrp. we bought two other companies with about 20 staff per, with no internet access. both are to keep the current ip address 10.1.1.0/24 and 192.168.1.0/24, but to use parent company network for internet access.
we need a full mesh frame relay network using parent companys address that supports all 3 companies with internet access.
can anyone help me with this. i know there's a guru out there somewhere. I need to know how to configure all routers and switches.
thanks.
allen
Posted by: Allen at November 26, 2006 2:23 AM
I just wanted to say WOW! goose bumps and e-motions, the design of your web page really got me!!! Check my sites ;) 5464379
Posted by: pay per click at August 4, 2007 8:45 PM
I work in a very high pace call center – taking customer calls when their business internet is down and some of the routers do not have the alias. I also we are not allowed to create our own in the router.
So, I made my owns "alias" shortcut commands by program called Hot-Keyboard
http://www.hot-keyboard.com/hkpro.htm
Example1:
From the trouble ticket a Hot-Keyboard Macro copies customer name, ticket number, circuit id into variables. ( via a mouse recording macro)
In the router I type - :sd
macro output = show description | i (company name variable) enter
Example2:
I want to look at an router ATM PVC
The Hot-Keyboard macro prompts for input of the T3, and VPI and VCI
I type in a pop-up windows 1 2 123
Macro Output :
show atm pvc int atm1/0.2) 2/123 (enter)
I have also done some of the ones listed
:sib = show ip int brief
:sr = show run
:sir = show ip route
:sion = show ip ospf neighbors
I have done this for Cisco,Juniper, Nortel Routers.
The Hot-Keyboard Marcos I used for routers paste and auto-replace macros, extend-replace
I wish to share this since so many people out there work in call centers & I feel that the applications we use are note made very well & are quite manual, so to bridge this gap, hot-keyboard macros really make the job better
I use hot-keyboard macros in the trouble ticket process, for there is repetitive Pull-Down menus & this where I have recorded the “mouse” to perform these repetitive operations. This is so much more efficient & error free & Decreases Repetitive Strain Injury.
I have also made “canned phrases” that are also repetitive & I do not have to worry about spelling errors either. I just have to hit 3 to 4 keys for a whole paragraph to appear.
I have used Hot-Keyboard with a string of Macros, for quicker entries of multiple router commands for Cisco, Junipers, Nortel and unix systems.
They are “troubleshooting scripts” I highlight a portion like Se1/2/3/2:0 and then through Hot-keyboard "Regular expressions" I can parse the data and output various commands that are relating to that interface, with only a 4 keys pressed.
Another portion of my job, I also have to monitor for proactive notifications trouble tickets – which is very repetitive process & I rely on hot-keyboard macros for a majority of the work now & it’s much faster & professional with “prepared canned phrases” which get emailed to customers.
I have “booked marked” websites within Hot-keyboard menus system, it so much faster than using “favorites” & better organized under a specific job functions. I just hit a few keys & I am able to launch a Dispatch page to a tech, or get status on a problem as well.
I am always adding more & more macros & also I’m able to export my macros daily to a network drive so incase my computer crashes, I will have my “toolbox” of commands safely stored.
In a daily bases, I would say that I used Hot-Keyboard every 5 minutes. It has automated my Office Space, you could say, & I am lost without it. It’s an easy to use program & I have been using it since 2001 its just saves me a great deal of time by with the ability to automate repetitive tasks in a Call Center environment. Do not hesitate to make a purchase if you have a need for repeating the same PC tasks over & over for it’s worth it in so many ways.
Posted by: doug at March 16, 2008 10:56 AM