03-13-2019 05:16 AM
Hi all,
I have a couple of questions regarding logging.
logging console - turns on logging on the console port
logging monitor - turns on logging on the VTY ports
logging host - turns on syslog logging
I need "logging buffered" for "logging console" and "logging monitor" to work.
Correct so far?
Is "logging monitor" the same as "term mon"?
Do I need "logging monitor" for "term mon" to work?
Do I need "logging buffered" for "sh log" to work?
Solved! Go to Solution.
03-13-2019 06:50 AM
Hi there,
Let’s try and answer the questions….
Is "logging monitor" the same as "term mon"?
No. logging monitor will enable logging to the monitor (terminal lines) and allow you to set the severity. term mon will display those output and system error messages to the current terminal.
Do I need "logging monitor" for "term mon" to work?
Yes
Do I need "logging buffered" for "sh log" to work?
Yes
Cheers,
Seb.
03-13-2019 10:07 AM
The logging console command allows you to set the severity, at which point, provided you are connected to the console port (and not a VTY) you will start seeing output.
Use the no logging console command to switch it off.
cheers,
Seb.
03-13-2019 05:24 AM
Always Suggest best Practice "logging buffered" So it will store the Logs in Buffer (until it overflow)
Then you can see them sh log
03-13-2019 06:14 AM
03-13-2019 06:30 AM
Hi Jaderson,
thanks for your reply. So this means that I have to have the command "logging buffered" in order to use the "sh log" command.
Without it I the local log will be empty?
BR
03-13-2019 07:14 AM
Hello @flokki123
as @Seb Rupik said, yes you need
Do I need "logging buffered" for "sh log" to work?
Yes
Regards
03-13-2019 06:50 AM
Hi there,
Let’s try and answer the questions….
Is "logging monitor" the same as "term mon"?
No. logging monitor will enable logging to the monitor (terminal lines) and allow you to set the severity. term mon will display those output and system error messages to the current terminal.
Do I need "logging monitor" for "term mon" to work?
Yes
Do I need "logging buffered" for "sh log" to work?
Yes
Cheers,
Seb.
03-13-2019 07:55 AM
Thanks a lot for your input guys!
One last question.
If "logging monitor" enables logging to the terminal lines and I can display this output with "term mon", which command do I need if I set "logging console" to display that output on the console?
BR
03-13-2019 09:54 AM
yes that was clarified in the last post.
03-13-2019 10:07 AM
The logging console command allows you to set the severity, at which point, provided you are connected to the console port (and not a VTY) you will start seeing output.
Use the no logging console command to switch it off.
cheers,
Seb.
03-13-2019 10:27 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: