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] xeninfo utility

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xeninfo utility
From: Adrian Chadd <adrian@xxxxxxxxxxxxxxx>
Date: Thu, 3 May 2007 16:45:24 +0800
Delivery-date: Thu, 03 May 2007 01:45:12 -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
User-agent: Mutt/1.5.9i
Hi,

I've been trying to extract per-Xen statistics out of the hypervisor for some
monitoring and I've found there's "almost" enough stuff to do it but it
doesn't seem to be exported via any command line interface.

So a little hacking of xentop has produced a local tool I've called "xeninfo",
which does something like this:

[root@hosting-2 xeninfo]# ./xeninfo katie
vbd-5-2050 is VBD.
vbd-5-2049 is VBD.
vbd-4-2050 is VBD.
vbd-4-2049 is VBD.
vbd-3-2050 is VBD.
vbd-3-2049 is VBD.
domain.id = 4
domain.name = katie
vcpu.0.status = online
vcpu.0.time = 804.469943
vbd.2050.dev = 8.2
vbd.2050.read = 65
vbd.2050.write = 0
vbd.2050.oo = 0
vbd.2049.dev = 8.1
vbd.2049.read = 7943
vbd.2049.write = 136105
vbd.2049.oo = 0
net.0.rx.bytes = 67232129
net.0.rx.packets = 834738
net.0.rx.errors = 0
net.0.rx.drops = 0
net.0.tx.bytes = 23693854
net.0.tx.packets = 168056
net.0.tx.errors = 0
net.0.tx.drops = 0
[root@hosting-2 xeninfo]#

I'm planning on extending it to include the rest of the libxenstat data -
current domain state, max/current memory reservation.

The plan is to call this from munin to graph various per-Xen VM statistics over
the current plugins' method of running xentop and extracting the info from it.
This uses libxenstat and some of the xentop code. Its also much faster at
extracting data for a VM for other scripts then trying to use xentop.

Do people view this as a potentially useful command to have in the Xen command
line repotoire? (Minus the "xxxxx is VBD" bits from the library itself..)



Adrian


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

<Prev in Thread] Current Thread [Next in Thread>