[one-users] Customize output
Carlos Martín Sánchez
cmartin at opennebula.org
Tue Dec 9 01:58:07 PST 2014
Hi,
On Thu, Dec 4, 2014 at 9:10 AM, Alejandro Feijóo <alfeijoo at cesga.es> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi.
>
> Just one quick questión.
>
> now, if i perfom onevm list my output return the options.
>
>
> ID USER GROUP NAME STAT UCPU UMEM HOST TIME
>
>
> But... its possible to add customs VAR? For example for us will be a
> great idea if i can see how vcpu or memory the user set in the template
>
>
> ... in short... its possible set VCPU_TEMPLATE MEM_TEMPLATE for example?
>
> Thanks in advance.
>
You can add new columns directly in the
/usr/lib/one/ruby/cli/one_helper/onevm_helper.rb file [1]. To make that new
column visible, the name needs to be added to /etc/one/cli/onevm.yaml [2]
and/or the default set [3].
Regards
[1]
https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onevm_helper.rb#L142
[2] https://github.com/OpenNebula/one/blob/master/src/cli/etc/onevm.yaml
[3]
https://github.com/OpenNebula/one/blob/master/src/cli/one_helper/onevm_helper.rb#L211
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20141209/757a1612/attachment-0001.htm>
More information about the Users
mailing list