Home » Kerio User Forums » Kerio Control » Get UPTIME matching dashboard value (programmatically)

Messages: 59
Karma: 2
Send a private message to this user
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?
mlee (Kerio)

Messages: 211
Karma: 16
Send a private message to this user
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.


PTSD. BP. OCD. ASPD. BPD. Certified.

Messages: 59
Karma: 2
Send a private message to this user
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.

Previous Topic: Captive Portal not so captive
Next Topic: Kerio Control sometimes crash
Goto Forum:

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Thu Nov 15 05:58:50 CET 2018

Total time taken to generate the page: 0.89391 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.