How to save and check the debug message in router

Posted on 2013-09-14
Medium Priority
Last Modified: 2013-09-16
After the logging console 7 is configured, the debug messages can be watched via console in the router/Pix. But when I want to watch history debug message via some command "show logging history", i did not find these debug message. Any experts can give me some suggestions ? Thank you.
Question by:EESky
  • 2
  • 2
LVL 17

Assisted Solution

surbabu140977 earned 2000 total points
ID: 39494353
debug messages typically will not be viewed in the buffer. If you install a free syslog server and put the ip address of the server in your router, all debug messages would be stored in your server then,for later viewing. The cisco hardware buffer is very very limited for logging......

A not so good method would be "logging file flash:<filename>" which will save the logfile in your flash memory. Be sure to mention min size and max size or else the flash would be exhausted in no time.

"logging history size" (1-500) is the max number of messages that can be stored in your hardware. Default is one message.


Author Comment

ID: 39495301
Thank you for your for your fast reply.  Due to your suggestion, i found in some IOS, it can save debug message and show it in router.

it looks like the command "logging file flash:<filename>" could not be typed in. Maybe it need different version of ios, right ?
LVL 17

Accepted Solution

surbabu140977 earned 2000 total points
ID: 39495428
"the logging file flash" I can see it in my switches but not routers. So may be it's for the switches.

Debug messages should fill your buffer in no time. I never tried it in the router. Our syslog server captures every debug though.

Theoretically, if your logging(sev 7) is on and "logging buffered" is there, you should see a limited debugging messages in "sh logg history".

Just note that you are not suppose to view debug messages through your buffer. The purpose of debug is to issue the command, view it in the console, troubleshoot the problem and disables it.

Author Closing Comment

ID: 39496350
Thank you !

Featured Post

Prepare for an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program curriculum features two internationally recognized certifications from the EC-Council at no additional time or cost.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
On Feb. 28, Amazon’s Simple Storage Service (S3) went down after an employee issued the wrong command during a debugging exercise. Among those affected were big names like Netflix, Spotify and Expedia.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question