[one-users] custom set of columns to display in 'onevm list' command

knawnd at gmail.com knawnd at gmail.com
Thu Oct 18 01:07:01 PDT 2012


Javier, thanks a lot for a prompt reply!

Maybe it does make a sense to mention in onevm man page that columns names have to be in upper case.

Regards,
Nikolay.

Javier Fontan wrote on 18/10/12 12:04:
> Use upper case names for the columns:
>
>    $ onevm list --list ID,NAME,UCPU
>
> If you want to make more permanent changes you can also modify the
> file /etc/one/cli/onevm.yaml. :default section is an array with the
> columns displayed:
>
> --8<------
> :default:
> - :ID
> - :USER
> - :GROUP
> - :NAME
> - :STAT
> - :UCPU
> - :UMEM
> - :HOST
> - :TIME
> ------>8--
>
>
> On Thu, Oct 18, 2012 at 9:50 AM,  <knawnd at gmail.com> wrote:
>> Dear community,
>>
>> I'd like to slightly modifya set of columns what are displayed as an output
>> of'onevm list' command.
>> For that purpose as far as I understand one can use '-l|--list' option of
>> list command according to onevm's man page:
>>
>> [...]
>>   ·   list [filterflag]
>>
>>             Lists VMs in the pool
>>             valid options: list, delay, xml, numeric, kilobytes
>>
>>
>> OPTIONS
>> [...]
>>                -l, --list x,y,z          Selects columns to display with list
>> command
>>
>> Itried as below:
>> $ onevm list --list id,name,ucpu
>> Column id not defined.
>>
>> $ onevm list --list id
>> Column id not defined.
>>
>> $ onevm list --list user
>> Column user not defined.
>>
>> $ onevm list --list cpu
>> Column cpu not defined.
>>
>> $ onevm list --list ucpu
>> Column ucpu not defined.
>>
>> $ onevm list --list id,ucpu
>> Column id not defined.
>>
>> So I wonder what the proper way to specify a list of columns to display by
>> 'onevm list' command?
>>
>> Regards,
>> Nikolay.
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>




More information about the Users mailing list