Friday, June 20, 2008

Cisco "do" - save yourself from backing out to run commands

The Cisco "do" command allows you to run privileged commands on a router or switch from the global configuration mode or greater (such as interface) without having to back out to privileged mode. The advantage of using this command is that you can use it to run commands that are basically out of context. To run this command you must be running IOS version 12.2(8) or later. It enables the use of show, ping, clear, and debug. An example:

router(config)# do show interface gi0/1
switch(config-if)#do show run

No comments: