The “Do” command

Contributor Icon Contributed by aaronm Date Icon February 1, 2006  
Tag Icon Tagged: Cisco networking

If you are running Cisco IOS 12.2(8) or better, you can use the “do” command to run privileged commands in global config mode. In layman’s terms, you can run “show” commands while config or config-if :)


This will save you the trouble of exiting to privileged mode to check your work when you are configuring a router or switch.

Just add “do” before the “show” command

i.e.

router(config)# do show interface f0/0

switch(config-if)#do show run

This also works with ping, clear and debug commands.

Previous recipe | Next recipe |
 
blog comments powered by Disqus