image uptime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

image uptime

fstephany
Hi,

Is there a way to know for how long an image is running (i.e., when the
VM started it)?

Cheers,
Francois

Reply | Threaded
Open this post in threaded view
|

Re: image uptime

Henrik Sperre Johansen
WorldMenu -> System -> Vm statistics.

It accesses the millisecondClockValue directly though, so will not be adjusted for rollovers, nor (if it's not a hard guarantee) VMs whose initial value is something other than 0.

If you need it, a new class which fulfill those requirements shouldn't be too hard to make though.
- Register it as part of startUp
- Record  millisecondClockValue
- Store accumulation at rollovers.

Reply | Threaded
Open this post in threaded view
|

Re: image uptime

Mariano Martinez Peck
In reply to this post by fstephany
menu -> System -> VM statistics
the first line is "uptime" which is what you need.
check #vmStatisticsReportString  for details

On Mon, May 9, 2011 at 10:13 AM, Francois Stephany <[hidden email]> wrote:
Hi,

Is there a way to know for how long an image is running (i.e., when the VM started it)?

Cheers,
Francois




--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: image uptime

Sven Van Caekenberghe
In reply to this post by Henrik Sperre Johansen

On 10 May 2011, at 15:02, Henrik Sperre Johansen wrote:

> If you need it, a new class which fulfill those requirements shouldn't be
> too hard to make though.
> - Register it as part of startUp
> - Record  millisecondClockValue
> - Store accumulation at rollovers.

Have a look at the Seaside WAUpTimeTracker class that I wrote, it does exactly that (actually based on TimeStamp).

Sven