Hi, somebody knows an script (simple as possible) to generate a list of domU''s, states and interfaces in html or plain text? if not, how can i have this information using xentools? regards -- José Alberto Suárez López Técnico I+D / Administrador Eneo Tecnología S.L. <www.eneotecnologia.com> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > José Alberto Suárez López > Sent: 15 March 2007 13:03 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Xen web status > > Hi, > > somebody knows an script (simple as possible) to generate a > list of domU''s, states and interfaces in html or plain text?xm list? xm top (xentop)? Those give plain text. Using a pretty simple script should be able to convert it into html - you may even be able to use a web-scripting language (for example php) to generate it and convert at the same time, if you see what I mean. Is that the sort of information do you want? -- Mats> > if not, how can i have this information using xentools? > > regards > > -- > José Alberto Suárez López > Técnico I+D / Administrador > Eneo Tecnología S.L. > <www.eneotecnologia.com> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Mats, it''s quite similar, so it''s possible to have too the IP assigned to interfaces and vnc status? i want somethign similar to: DomU-01 id:23 eth0:192.168.100.1 vncdiaplay: 11 mem: 128 uptime: 15days regards ----- Original Message ----- From: Mats Petersson <Mats.Petersson@amd.com> To: jasuarez@eneotecnologia.com, xen-users@lists.xensource.com Sent: jueves 15 de marzo de 2007 14H08 GMT+0100 Europe/Berlin Subject: RE: [Xen-users] Xen web status> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > José Alberto Suárez López > Sent: 15 March 2007 13:03 > To: xen-users@lists.xensource.com > Subject: [Xen-users] Xen web status > > Hi, > > somebody knows an script (simple as possible) to generate a > list of domU''s, states and interfaces in html or plain text?xm list? xm top (xentop)? Those give plain text. Using a pretty simple script should be able to convert it into html - you may even be able to use a web-scripting language (for example php) to generate it and convert at the same time, if you see what I mean. Is that the sort of information do you want? -- Mats> > if not, how can i have this information using xentools? > > regards > > -- > José Alberto Suárez López > Técnico I+D / Administrador > Eneo Tecnología S.L. > <www.eneotecnologia.com> > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > >-- José Alberto Suárez López Técnico I+D / Administrador Eneo Tecnología S.L. <www.eneotecnologia.com> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
José Alberto Suárez López wrote:> Hi, > > somebody knows an script (simple as possible) to generate a list of domU''s, states and interfaces in html or plain text? > > if not, how can i have this information using xentools? > > regards > >I wrote a python script that generates XML feeds for running domUs on each of my servers, it''s pretty simple to do in python or any scripting language. http://watters.ws/xen-stuff/report-stats.txt You can read the feeds using any XML parser, I wrote a custom one in python as well. Just put this in your cgi-bin and edit a few lines and it should work. http://watters.ws/xen-stuff/client.txt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 2007-03-15 at 14:08 +0100, Petersson, Mats wrote:> > > -----Original Message----- > > From: xen-users-bounces@lists.xensource.com > > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > > José Alberto Suárez López > > Sent: 15 March 2007 13:03 > > To: xen-users@lists.xensource.com > > Subject: [Xen-users] Xen web status > > > > Hi, > > > > somebody knows an script (simple as possible) to generate a > > list of domU''s, states and interfaces in html or plain text? > > xm list? > xm top (xentop)? > > Those give plain text. Using a pretty simple script should be able to convert it into html - you may even be able to use a web-scripting language (for example php) to generate it and convert at the same time, if you see what I mean. > > Is that the sort of information do you want? >This is not *nearly* ready for packaging but you should be able to get it going : http://dev1.netkinetics.net/grxen3-xmlpulse/ Read the install.txt for how to build it, see this link for samples of the output: http://dev1.netkinetics.net/grxen3-xmlpulse/samples/ On dom-0, it reads many useful things from /proc, including vif information that helps centralize bandwidth logging a bit (if you name the vif''s after the guests, anyway). It will also show you most of the basic information that you''d scrape from xentop. Basically, it puts it all into one easy to edit xml file which can be parsed easily by nearly any language including bash. The instructions are a little shotty, I have a bit left to do in order to ''properly'' package it for the Gridnix release but it should be fine functionally. It only needs libxenstat (sources) from your existing xen source tree in order to build. Anyway, sounds like its just what you wanted, so I''m making it available now. Its released GNU for whoever finds it useful. Best, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users