WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] power state evaluation

To: "Uli Staerk" <Uli.Staerk@xxxxxxxxxxxxxx>
Subject: Re: [Xen-API] power state evaluation
From: Tom Wilkie <tom.wilkie@xxxxxxxxx>
Date: Thu, 16 Aug 2007 18:52:56 +0100
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 16 Aug 2007 10:52:29 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=Ql4//svhNbN0vKp9E5k2T11vPhptohZqyB+Ehsi44G3icQ6xi6pjFdi3C6iX0Upjh72Dmnb30D9sdxabzq0ShzWaZTNPcX5RPswQ9akvFRoQSQtKv44deqNvgWmHAbpWk36zVy5Vu1J5MaKuKj3Vv95//flLaYHbKQQXsVqzCSM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=ImohW5qx/FIbntqwIi78MhijCW3fHm1N0so86VoCkB9qOPguPRVFCkPUQQnbWM1c7+CvsEwRvnSwIS1299ow6yh2ZXUmVVIC8bVhrEorDfKYOpOvixLUhJn9F/zR6v5Cer/IXSUadC6s2B6XzMJL2/zxP1ADqGXUat1JA6l+nxw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <F91A18B8B41BEA4496988E928B3AAE6D61A5E8@xxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <F91A18B8B41BEA4496988E928B3AAE6D61A5E8@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

If I call VM.get_record() I get an key named

    [power_state] => Running

This is the power state of the vm ie running, halted, suspended etc.

If I fetch the metrics by VM_metrics.get_record() I get a similar information:

    [state] => Array
        (
            [0] => running
        )

These are the individual statues of the vcpus, ie running, paused, blocked etc

Tom
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>