From: Adrian Chadd Subject: Re: xeninfo utility Date: Thu, 3 May 2007 17:21:09 +0800 Message-ID: <20070503092109.GF27242@skywalker.creative.net.au> References: <20070503084523.GE27242@skywalker.creative.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070503084523.GE27242@skywalker.creative.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, May 03, 2007, Adrian Chadd wrote: > 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: The tool can be found here: http://www.creative.net.au/diffs/xeninfo.c I've added the rest of the libxenstat statistics as well as the "node" statistics. Please consider it for inclusion under the xenstat directory. I can provide a Makefile and manpage if required. [root@hosting-1 adrian]# ./xeninfo node.version = 3.0-unstable node.total_memory = 2130243584 node.free_memory = 15093760 node.num_domains = 14 node.num_cpus = 1 node.cpu_hz = 1908992000 [root@hosting-1 adrian]# ./xeninfo skywalker mem.current = 134033408 mem.max = 134217728 domain.ssid = 0 domain.id = 93 domain.name = skywalker status.dying = 0 status.crashed = 0 status.shutdown = 0 status.paused = 0 status.blocked = 1 status.running = 0 vcpu.0.status = online vcpu.0.time = 12892.770551 vbd.2050.dev = 8.2 vbd.2050.read = 194123 vbd.2050.write = 443082 vbd.2050.oo = 13077 vbd.2049.dev = 8.1 vbd.2049.read = 1889251 vbd.2049.write = 2444320 vbd.2049.oo = 67150 net.0.rx.bytes = 281708267 net.0.rx.packets = 2894917 net.0.rx.errors = 0 net.0.rx.drops = 4762 net.0.tx.bytes = 1868341991 net.0.tx.packets = 2097722 net.0.tx.errors = 0 net.0.tx.drops = 0 [root@hosting-1 adrian]#