<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Tahoma">Aha - cool - thanks! :) <br>
<br>
Now, I was also looking at the REST API - is there a simple
shell based way to read / query the resulting XML ? Or would you
suggest to write python scripts to e.g. start/stop instance, get
a list of VMs / their IDs, etc. ? <br>
<br>
I'm not a great programmer so rather look for something already
existing rather than me fiddling for a comparable looong time ;)
<br>
<br>
Alex<br>
<br>
</font></font><br>
On 10/07/2012 11:31 AM, Michael Pasternak wrote:
<blockquote cite="mid:507159EF.7070300@redhat.com" type="cite">
<pre wrap="">
Hi Alex,
This is a bug [1], fix available in 3.2.0.1, latest available cli version
is 3.2.0.5.
[1] <a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=850597">https://bugzilla.redhat.com/show_bug.cgi?id=850597</a>
</pre>
<blockquote type="cite">
<pre wrap="">-------- Original Message --------
Subject: [Users] ovirt cli commands / script wont exit the shell
Date: Sat, 06 Oct 2012 20:44:44 +0100
From: Alex Leonhardt <a class="moz-txt-link-rfc2396E" href="mailto:alex.tuxx@gmail.com"><alex.tuxx@gmail.com></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:users@ovirt.org">users@ovirt.org</a>
hi there,
i'm playing with the Ovirt CLI and started to script a few things, but
it seems as if the console stays connected when I execute the commands -
I even included a "exit" and tried "disconnect", but nothing would do it
- any hints / clues ?
the script is very simple :
---
action vm vm2 start
exit
---
or
---
action vm vm1 stop
disconnect
exit
---
I always end up back here :
###
==========================================
>>> connected to oVirt manager 3.1.0.0 <<<
==========================================
[oVirt shell (connected)]# action vm vm2 start
status-state: complete
[oVirt shell (connected)]# exit
[oVirt shell (connected)]#
###
Thanks
Alex
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
</body>
</html>