Get UPTIME matching dashboard value [message #116316] |
Thu, 25 September 2014 15:38  |
sorat
Messages: 59 Registered: November 2013 Location: byr
|
|
|
|
I need to programmatically get the UPTIME value, that displayed in System Status dashboard, for later use in scripts.
I explain.
Obviously, the value itself is time from latest reboot of kerio shell.
This is not the same as system uptime.
For example, server itself can have 1 year of uptime, but kerio control have 20 minutes, because of restart of service (update, rare crash, etc.)
I tried SNMP, but the uptime value gives time count from snmp service startup moment.
And snmp walk shows no other useful values there .
Any tip from Kerio folks here, maybe?
|
|
|
Re: Get UPTIME matching dashboard value [message #116425 is a reply to message #116316] |
Tue, 30 September 2014 08:39   |
mlee (Kerio)
Messages: 211 Registered: October 2012 Location: Sydney
|
|
|
|
A grep and top of the winroute process will give you a time:
~ # top | grep winroute
1364 root 20 0 121m 44m 17m S 0.3 4.4 32:11.12 winroute
32:11.12 = minutes:seconds.hundredths (TIME+)
Alternatively, ps aux | grep winroute gives you similar value with no live update.
M.
PTSD. BP. OCD. ASPD. BPD. Certified.
|
|
|
Re: Get UPTIME matching dashboard value [message #116430 is a reply to message #116425] |
Tue, 30 September 2014 09:57  |
sorat
Messages: 59 Registered: November 2013 Location: byr
|
|
|
|
Hey, mlee.
I forgot to mention, I thought of that too, and already cheched.
The result is oddly different than one would expect tho.
I attached a pic.
The 23k minutes is around 16 days. And uptime in dashboard is 20.
Hmmm.
|
|
|