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

Re: [Xen-users] xm top

xm top really invokes the xentop command

xentop gets its information from libxenstat...  This is a C library, although 
there are swig-based bindings for Perl and Python provided.  If you feel 
enterprising you could try to hack up a PHP binding...

Otherwise, your best bet for a quick-n-dirty is probably to get the 
information out either using libvirt or using libxenstat (by writing a little 
script in a language which has bindings), then dump that to a stdout / a file 
and access it in PHP.

Cheers,
Mark

On Monday 26 November 2007, weiming wrote:
> I guess you can get those info from xenstore
>
> On Nov 26, 2007 8:57 AM, Richard Jones <rjones@xxxxxxxxxx> wrote:
> > Alexandros Manakos wrote:
> > > Hello everybody!
> > >
> > > I´d like to know where "xm top" gets its information from. I want to
> > > get those informations (cpu-load, mem etc. from the domUs) and display
> > > them with php in a browser. So are the informations stored and updated
> > > in a textfile or something like that? Can anybody help me with this?
> >
> > libvirt can pull out this information for you.  http://libvirt.org/
> > eg: http://libvirt.org/html/libvirt-libvirt.html#virDomainBlockStats and
> > http://libvirt.org/html/libvirt-libvirt.html#virDomainInterfaceStats
> >
> > Unfortunately PHP is one of the few widespread languages that we don't
> > have bindings for at the moment, so you may need to drop into C or use
> > another language for web development.
> >
> > Rich.
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] xm top, Mark Williamson <=