[one-users] custom set of columns to display in 'onevm list' command
Javier Fontan
jfontan at opennebula.org
Thu Oct 18 01:04:24 PDT 2012
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
--
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula
More information about the Users
mailing list