Begining with IOS version 12.3, Cisco has finally added a command to the IOS that allows you to view the configuration and statistics from within configuration mode.
Here’s a handy tip when using the show, ping, and telnet commands. Instead of switching back and forth between global configuration mode and privilege mode to use these commands, you can remain in global configuration mode and type the do command with the original syntax.
Switch(config)#do show running-config
Router(config)#do show ip route
Router(config)#do PING 192.168.0.1
Switch(config)#do show vtp status