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-devel

[Xen-devel] [PATCH] Improve xm uptime command for inactive managed domai

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Improve xm uptime command for inactive managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Sun, 15 Jul 2007 17:43:32 +0900
Delivery-date: Sun, 15 Jul 2007 01:41:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When I tried xm uptime command to a inactive managed domain, I saw 
the following error messages. 
At first, I tried xm uptime command to the inactive managed domain 
only.  I thought that the error message is adequate because the 
domain is inactive. 
Next, I tried xm uptime command to both the inactive managed domain 
and a active domain.  The uptime of the active domain was shown by 
xm uptime command, but the uptime of the inactive managed domain 
was not shown by xm uptime command.  I felt sad because xm uptime 
command caused error halfway. 

# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   747     2     r-----     63.7
vm1                                          1   256     2     r-----    209.5
vm2                                              128     1                 0.0
# xm uptime vm2
Name                                ID Uptime 
Error: Invalid argument.
Usage: xm uptime [-s] <Domain>

Print uptime for a domain.
# xm uptime vm1 vm2
Name                                ID Uptime 
vm1                                  1  0:04:00
Error: Invalid argument.
Usage: xm uptime [-s] <Domain>

Print uptime for a domain.

This patch improves xm uptime command for inactive managed domains. 
xm uptime command always shows 0:00:00 in uptime if domain is 
inactive. 

# xm uptime vm2
Name                                ID Uptime 
vm2                                     0:00:00
# xm uptime vm1 vm2
Name                                ID Uptime 
vm1                                  1  0:05:50
vm2                                     0:00:00


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_uptime.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Improve xm uptime command for inactive managed domains, Masaki Kanno <=