[Users] ovirt shell issue

Michael Pasternak mpastern at redhat.com
Tue May 22 13:47:29 UTC 2012


Hi Nathanaël,

(CC'ing users at ovirt.org so others could benefit from our thread)

On 05/22/2012 04:03 PM, Nathanaël Blanchet wrote:
> hello,
> 
> I followed your wiki http://www.ovirt.org/wiki/CLI, and everything works quite good in an ovirt shell.
> Yet, I'd like to pass a command in a single line without being in the shell like this :
> #> ovirt-shell -l "http://ouragan.abes.fr:8080/api" -u "admin at internal" -p 'azerty' list vms
> according to your wiki.
> 

this is planned feature - yet not supported, see [1],
at the moment you can invoke commands only via script using -f/--file options

[1] http://www.ovirt.org/wiki/CLI#TODO_list

> but I have this issue :
> error: syntax error
> 
> 
>  ++++++++++++++++++++++++++++++++++++++++++
> 
>            Welcome to oVirt shell
> 
>  ++++++++++++++++++++++++++++++++++++++++++
> 
> 
> [oVirt shell (disconnected)]#
> 
> So I tried with a file like this :
> 
> 
> [root at ouragan ~]# ovirt-shell -c -l "http://ouragan.abes.fr:8080/api" -u "admin at internal" -p 'azerty' -f test
> Usage: ovirt-shell [options]
>        ovirt-shell [options] command...
> 
> ovirt-shell: error: no such option: -f
> 
> I use ovirt-engine-cli-2.1.3 version from stable release.

this feature available only at 3.1.0.1, i'll ask to upload rpms
to ovirt repo,

in general you can see all available options by: ovirt-shell --help

> 
> Tahnks for your help
> 


-- 

Michael Pasternak
RedHat, ENG-Virtualization R&D



More information about the Users mailing list