12-27-2018 07:35 AM - edited 03-05-2019 11:08 AM
Hello,
I have defined a syslog server for my router and after a while I noticed that some logs aren't getting to the server.
The logs I have noticed for now that aren't getting there are the boot logs - Whenever I restart the router I see the reload log, and every log that comes after the boot (like command, logons, etc) but not the actual boot so there is no way for me to know if the router is back up.
Using Cisco ISR4321/K9 Router (IOS Version 15.5(3)S2), with logging trap 7 defined and a logging host Ofc.
12-27-2018 12:30 PM
Boot logs can not be redirected to syslog, this can only view via console.
12-31-2018 08:05 AM
12-31-2018 08:28 AM
If you have configured your router to communicate with an SNMP server then you could have the server attempt to access the router as a way to know when it has come back up. Otherwise you would need some manual effort such as attempting to ping the router interface to determine when it is back up.
As I think about your question I wonder how you know that the router was down and rebooting? If we knew that it might suggest some way to verify when the router is back up.
Another thought that occurs to me is that you could write an EEM script that would run after reboot and have the script generate a log message that could be sent to the log server indicating that the router was back up.
HTH
Rick
12-31-2018 10:17 AM
you can have different monitoring system like ping or snmp.
if you configured the syslog properly, after rebooted and device come online, you can see interface comes up in syslog server.
01-01-2019 06:03 AM
01-01-2019 07:09 AM
While there is always some possibility of errors in configuration there is not anything in what you have posted that indicates anything wrong in your configuration. My suggestion is that you should work on active checking.
HTH
Rick
01-01-2019 12:55 PM
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