On Thu, 2007-01-04 at 12:24 +0100, Henning Sprang wrote:
> On 1/4/07, anant <ANigam@xxxxxxxxxxx> wrote:
> >
> > Hi all,
> > Is there any tool which can retrieve hard ware info of all the guest OS from
> > main host OS and vice versa i.e.info of host OS from guest.
>
> By definition you should and can not access the dom0 from domu, only
> by opening some ports, for example to run hwinfo via ssh.
>
Henning is 100% correct. But there are easier ways to do this, not using
snmp and or ssh from dom-0 -> guest or vice versa, See below.
> Hardware info about the guest seems not really makes sense - the
> hardware available there is completely virtual and it's the hardware
> vonfigured in the xen config, see xm list --long.
>
> What exactly do you want or need to know in the guest domain about the
> host domain?
>
> Henning
>
I've got this : http://dev1.netkinetics.net/xmlpulse/
See xmlpulse.c for the source, the .xml file is a sample output. This is
a little easier to scrape, can be triggered or fetched with small web
servers like lighttpd, and easy to add to. It was inspired by the
popular phpsysinfo script but is written in low level C and only 7k in
size stripped once compiled.
gcc -o /usr/sbin/xmlpulse xmlpulse.c && strip /usr/sbin/xmlpulse to
build it
You can run it (on the guests) via cron, ssh (or your favorite rpc) and
the output is rather easy to parse with php, perl, python or anything
else that deals with xml. Cron is an easy way to do it, just have cron:
xmlpulse > /var/www/htdocs/serverinfo/info.xml every 5 minutes or so.
I hope to get a few hours this month to add some calls to the xenstat
stuff (xml version of xentop) in addition to what's there.. if anyone
else feels inspired go for it.
I have yet to license it, but feel free to treat it as GNU, if its a
major issue I'll license it this weekend.
This *should* give you everything you need.
Best,
--Tim
> _______________________________________________
> 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
|