12-30-2005 07:52 AM - edited 03-03-2019 11:20 AM
Is there a way to clear the terminal when connected to a Cisco router/switch like the ^L does for Linux/Unix systems?
Regards
Solved! Go to Solution.
01-03-2006 02:11 AM
Hi,
you could also turn off the messages
R#no terminal monitor
R(config)#no logging console
for the time you configure the router.
Hope this helps
Martin
12-30-2005 03:15 PM
Easy way to do this, is to hit enter key until it clears the previous outputs on the screen...
12-31-2005 08:00 PM
I believe that there are two parts to answering this question. One part is the ability to do something on the router itself and the second part if the ability to do something in the terminal emulator used to access the router. I am not aware of anything we can do on the router itself to clear the screen of the terminal. But most of the terminal emulators have functions that can clear the contents of the screen and/or the scrollback buffer. And of course the suggestion from Sankar will produce a mostly enpty screen (empty except for the line of router prompts down the left side of the screen).
HTH
Rick
01-03-2006 12:53 AM
Well, firs of all, thanks for the answers.
What I'm trying to do here is to clear the screen in situations when you type a long command and right in the middle you get an output on screen such as debug (e.g.)
So, if I type "enter" of course the command would not be completed, ans this could leat to misconfiguration if accepted.
If I clean the screen on the terminal, this will clean absolutely everything.
For both solution the answer is: type the command again.
In Linux Unix system, when something similar happens, with an easy ^L we can clean everything on screen but prompt + character digited since last enter.
01-03-2006 12:59 AM
Hi,
in this case you can use "?". It will give some output regarding the options you have and then reproduce the prompt and input you already had on a new line.
Hope this helps
Martin
01-03-2006 02:11 AM
Hi,
you could also turn off the messages
R#no terminal monitor
R(config)#no logging console
for the time you configure the router.
Hope this helps
Martin
08-08-2018 06:29 AM
Hello, Here is an alternate in case you need the debugging information, and don't want to turn it off. get into configuration mode for which line you are using (con, or VTY) and issue the logging synchronous command. this will show your debugging information and pass your half typed command to a clean prompt so you can complete what ever you were typing. Hope this helps.
Router#config t
Router#line vty 0 4
Router#logging synchronous
Router#end
Router#copy run start
01-03-2006 02:02 AM
You can use logging synchronous command to avoid the debug or log messages from interrpting your key in.
See this under Synchronizing Log Messages section,
hope this will help!
01-03-2006 04:05 AM
Thankyou all!
The "logging syncronous" is what I was looking for.
Regards
03-13-2018 07:33 PM
So to confirm, if you are typing a command e.g. "show ip interface brief" and mid-way, you get some kind of notification which messes up your command?
There's an easy way to fix that - line the line section of the config, enter the command "logging synchronous"
i.e.
Line vty 0 4
Logging Sync
Line con 0
Logging Sync
This will force notifications to appear on a new line and not mess up your terminal.
05-03-2019 11:55 AM
Sorry for the necro, but I think these generally do what you're suggesting:
Ctrl + L
-or-
Ctrl + i
04-26-2021 11:29 AM
I'm a little late to the party but at least NX-OS supports Ctrl + O (the letter) to clear a screen.
Hth,
Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide