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?
And is it possible to store values as variables and use then them for
further commands?
I can run something like this but it seems quite unoptimezed...
output redirection to see how many vms are up in a pool:
[oVirt shell (connected)]# list vms --kwargs
"vmpool-id=eba78b0e-6512-11e1-80c4-5254008e81ee;status-state=up" >
/tmp/testfile
[oVirt shell (connected)]# shell grep id /tmp/testfile | wc -l
2
shell command to see the size of the pool itself, so can I add more
vms to it if the previous :
[oVirt shell (connected)]# show vmpool --name mypool
id : eba78b0e-6512-11e1-80c4-5254008e81ee
name : mypool
cluster-id : 99408929-82cf-4dc7-a532-9d998063fa95
size : 2
I would like only the size value and use it then...
Thanks in advance,
Gianluca