02-06-2017 04:13 AM
Hi There,
I would like to get the uptime of an ESA Device for certain peroid like one month or 2 months.
I can get the uptime from the CLI with status command but it shares only the uptime of device since the last reboot.
Thanks,
Logan
02-06-2017 04:51 AM
Hi Logan,
You can review the system_logs to determine when the device was rebooted over a period of time. I do not think there is a log to calculate specifically the uptime of the appliance as all logs keep updating while the device is up so you would need to manually review them for time gaps.
cisco.lab> grep System system_logs
Thu Nov 5 18:05:09 2015 Info: System is coming up.
Mon Sep 12 07:27:28 2016 Info: System is coming up.
Fri Dec 2 11:04:31 2016 Info: System is shutting down.
Fri Dec 2 11:07:47 2016 Info: System is coming up.
Thanks
Libin Varghese
02-12-2018 09:44 AM
> grep System system_logs grep does not support this log format.
This does not seem to work!
02-12-2018 03:57 PM
You would need a local copy of the status logs on the appliance for the grep command to work.
If the status logs are being pushed using scp/syslog to a different server then the grep command would return such an error.
Regards
Libin Varghese
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