* Getting informations about running domains
@ 2006-02-18 15:45 Thorolf Godawa
2006-02-19 2:10 ` Anthony Liguori
0 siblings, 1 reply; 3+ messages in thread
From: Thorolf Godawa @ 2006-02-18 15:45 UTC (permalink / raw)
To: xen-devel
Hi all,
I try it again, because I've got no answer until now and I didn't find a
solution too. Sorry if you think this is the wrong group, but on the
user-list I didn't got any answer too.
After searching much more about this, I found out that a modified
"xenmon.py" can do some of the job with getting the CPU-infos from the
shared-memory.
But I also wan't to have other infos like domain-name, mem-usage,
vm-state etc., like "xentop" shows them. I could get them if I parse the
output of "xm list" but I also found out that there is a library
"libxenstat" that could be used for this!
Where can I find detailed infos how to use this library with Python?
I compiled and installed it like menshioned in the thread:
http://lists.xensource.com/archives/html/xen-devel/2005-10/msg00835.html
But I get mostly the same error as the author:
------------
Traceback (most recent call last):
File "xenmon2.py", line 35, in ?
import xenstat
File "/usr/lib/python2.4/site-packages/xenstat.py", line 5, in ?
import _xenstat
ImportError: /usr/lib/python2.4/site-packages/_xenstat.so: undefined
symbol: xen
stat_init
------------
I modified the Makefile from XEN 3.0.1 to compile and install it,
"libxenstat" should be at the right place:
/usr/lib/libxenstat.a
/usr/lib/libxenstat.so -> libxenstat.so.0
/usr/lib/libxenstat.so.0 -> libxenstat.so.0.0
/usr/lib/libxenstat.so.0.0
What do I have to do to get it running?
In this thread from Oct 2005 Anthony Liguori also said that "libxenstat"
should not (yet?) be used and that you should use the "xc python
bindings" instead. Is this still true for XEN 3.0.1?
If so, how can I use this with Python, which library I have to import in
the Python-program and where can I find detailed infos how to use this
library to get the desired informations?
Please, don't tell me that the infos are in the C-source - maybe they
are there, I already looked in there but because I'm not a C-programmer
I didn't find anything usefull in there :-)
Thanks a lot for your help,
--
Chau y hasta luego,
Thorolf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Getting informations about running domains
2006-02-18 15:45 Getting informations about running domains Thorolf Godawa
@ 2006-02-19 2:10 ` Anthony Liguori
2006-02-19 13:26 ` Thorolf Godawa
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2006-02-19 2:10 UTC (permalink / raw)
To: Thorolf Godawa; +Cc: xen-devel
Thorolf Godawa wrote:
> In this thread from Oct 2005 Anthony Liguori also said that
> "libxenstat" should not (yet?) be used and that you should use the "xc
> python bindings" instead. Is this still true for XEN 3.0.1?
libxenstat is not installed and neither are it's bindings. The xc
python bindings are what Xend uses and therefore will always be present.
> If so, how can I use this with Python, which library I have to import
> in the Python-program and where can I find detailed infos how to use
> this library to get the desired informations?
Look at the xm sources--that's the best reference The following is
something like what xm list does:
http://pastebin.com/562077
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Getting informations about running domains
2006-02-19 2:10 ` Anthony Liguori
@ 2006-02-19 13:26 ` Thorolf Godawa
0 siblings, 0 replies; 3+ messages in thread
From: Thorolf Godawa @ 2006-02-19 13:26 UTC (permalink / raw)
To: xen-devel
Hi Anthony,
thanks a lot for your answer, that comes quite closer to what I want :-)
>libxenstat is not installed and neither are it's bindings.
I know, therefor I compiled it, installed it and (hopefully) also made
the bindings! Is there any special reason why it is not used?
>The xc python bindings are what Xend uses and therefore will always be
>present.
>Look at the xm sources--that's the best reference The following is
You mean the "xen-3.0.1/tools/python/xen/xm/main.py"?
Yes it looks that I can get most informations directly from there!
>something like what xm list does: http://pastebin.com/562077
That's what I like, easy code that I can adapt :-)
What still is missing is some more info that "xen top" gives me, like
the real memory of the machine and the real frequency of the CPU - the
CPU-load I get via xenmon.py/xenbaked!
cat /proc/... gives me only the reserved dom0-memory and the frequency
of the CPU seems to be to hight!
Thanks a lot for any help in advance,
--
Chau y hasta luego,
Thorolf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-19 13:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-18 15:45 Getting informations about running domains Thorolf Godawa
2006-02-19 2:10 ` Anthony Liguori
2006-02-19 13:26 ` Thorolf Godawa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.