The do command available in configuration modes of Cisco IOS is probably one of the best features ever implemented in IOS, but you tend to continue typing the do keyword even in the exec mode, resulting in syntax errors. The alias command doesn't help as you cannot specify an empty command line. However, there is a Tcl-based workaround.Store the following Tcl code in flash:do.tcl:
puts [exec $argv]Configure alias exec do tclsh flash:do.tcl and you can execute the do command from exec mode.
The simple solution does not page the output, a lot more work would be needed to implement the proper paging functionality