03-26-2010 09:12 AM
Is there a way to be updated when a router has been rebooted. Maybe there is a way to run a ip sla at startup that will send a http post to a webpage or a snmp. And the problem is, if the router has been rebooted but don't have access to the network, will it store the request and send it when the the link come back up. Then another problem, if the router has been rebooted twice before the link is up, maybe it could also be a good idea to store it on the flash.
03-26-2010 10:53 AM
A router will generate a %SYS-5-RESTART syslog message and a coldStart SNMP trap when it reboots. Using the Embedded Event Manager, you could catch the syslog, and write some data to flash.
--
Please support CSC Helps Haiti
https://supportforums.cisco.com/docs/DOC-8895
https://supportforums.cisco.com
03-26-2010 11:14 AM
And then could it be possible to send the information to a server somewhere on the network?
03-26-2010 11:18 AM
Absolutely. If you wrote an EEM Tcl policy to intercept the %SYS-5-RESTART syslog, it could dump some data to flash, then ping a network server. If that server is reachable, it could upload the data (TFTP, HTTP, etc.), then delete the file until the next reload.
--
Please support CSC Helps Haiti
https://supportforums.cisco.com/docs/DOC-8895
https://supportforums.cisco.com
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