[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-users
Subject:    [Xen-users] Re: python: how do I know if domainU was rebooted.
From:       Wensheng Wang <wenshengwang () gmail ! com>
Date:       2005-10-28 18:16:50
Message-ID: 7b22037d0510281116nc0fe20fseca39359d138ff8 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Never mind, I found there is a restart_time in xen.xend.XendClient.server
>
> .xend_domain()



Hope someone find this info useful



On 10/27/05, Wensheng Wang <wenshengwang@gmail.com> wrote:
>
> Hi,
> I want to write a script to monitor domain U's, and take note if a domain
> was rebooted.
> I noticed if a domain is shutdown (halt) and then started again I have a
> record. However if a domain was just rebooted(either by type 'reboot' fro=
m
> inside domain or type 'xm shutdown -R' from outside), I have no record.
>
> I found out what caused it. If a domain was rebooted, its uptime,
> start_time will not be reset.
> for example, xen.sv.util.getDomInfoHash('sarge1') will give up_time,
> start_time etc. for domain "sarge1"
> now after I rebooted sarge1,
> xen.sv.util.getDomInfoHash('sarge1')['up_time'] will continue grow, and
> start_time doesn't change!
>
> same thing if I use xen.xend.XendClient.server.xend_domain('sarge1')
>
> So how can I determine if a domain was rebooted or rnot?
>
> I use xen-devel 3.0 from fedora core 4.
>
> Thanks
>
>

[Attachment #5 (text/html)]

Never mind, I found there is a restart_time in xen.xend.XendClient.server
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">.xend_domain()</blockquote> <div><br>
<br>
Hope someone find this info useful<br>
</div><br><br><br><div><span class="gmail_quote">On 10/27/05, <b \
class="gmail_sendername">Wensheng Wang</b> &lt;<a \
href="mailto:wenshengwang@gmail.com">wenshengwang@gmail.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br>
I want to write a script to monitor domain U's,&nbsp; and take note if a domain was \
rebooted.<br> I noticed if a domain is shutdown (halt) and then started again I have
a record. However if a domain was just rebooted(either by type 'reboot'
from inside domain or type 'xm shutdown -R' from outside), I have no
record.<br>
<br>
I found out what caused it. If a domain was rebooted, its uptime, start_time will not \
be reset.<br> for example, xen.sv.util.getDomInfoHash('sarge1') will give up_time, \
start_time etc. for domain &quot;sarge1&quot;<br> now after I rebooted sarge1,<br>
xen.sv.util.getDomInfoHash('sarge1')['up_time'] will continue grow, and start_time \
doesn't change!<br> <br>
same thing if I use xen.xend.XendClient.server.xend_domain('sarge1')<br>
<br>
So how can I determine if a domain was rebooted or rnot?<br>
<br>
I use xen-devel 3.0 from fedora core 4.<br>
<br>
Thanks<br>
<br>

</blockquote></div><br>



_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic