[Users] cli: how to get value of a parameter
Gianluca Cecchi
tekka at normantec.it
Sun Mar 18 12:43:16 UTC 2012
2012/3/18 Michael Pasternak wrote:
>
> Hi,
>
> On 03/18/2012 10:44 AM, Gianluca Cecchi wrote:
>> Hello,
>> going through http://www.ovirt.org/wiki/CLI to see some syntax hints.
>> I don't see a way to get parameter of an object.
>> For example if I want to see the size of a vmpool, how can I do it
>
> you have two options for this:
>
> 1. show vmpool vmpool_name
> 2. list vmpools --show-all
yes, but they returns all the properties of an object. I would prefer
to have an option that gives only the value of the property/properties
I'm interested in
something like
show vmpool vmpool_name --props=prop1[,prop2,...,propN]
eg
show vmpool vmpool_name --props=size
>> And is it possible to store values as variables and use then them for
>> further commands?
>
> this one of the features i have in my list.
>
> i also have pipe support in my list, when it will be available,
> you will be able to redirect shell output directly to grep.
Ok, fine to have them.
So in ovirt-shell command, when you type "help" and you get
"
In addition to the basic command form, the following functionality is
available:
...
* The output of any command can be piped to a shell command with
the '|' character.
"
Actually it is not implemented yet, correct?
Because I tried some options but it seems none of them worked...
BTW: getting results seems quite slow in my opinion. Does it depend on
ovirt-shell itself or something I can tune in PotgreSQL RDBMS
parameters perhaps?
Gianluca
More information about the Users
mailing list