# Opennebula 5.8:Column for Description in command onevm list (CLI)

**URL:** <https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009>\
**Category:** Product Support\
**Created:** [March 11, 2019, 1:27pm UTC](https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009 "2019-03-11T13:27:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![telecast](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/telecast/32/6187_2.png) [@telecast](https://forum.opennebula.io/u/telecast)\
**Post date:** [March 11, 2019, 1:27pm UTC](https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009/1 "2019-03-11T13:27:52Z")

</div>

Hi,  
I faced with issue, can’t add showing the column “Description”  
In 5.6 and older version it did work.  
My step:  
to patch files: onevm\_helper.rb, onevm.yaml

1. /usr/lib/one/ruby/cli/one\_helper/

```
# cat patch_onevm_helper.txt 
--- onevm_helper.rb	2019-03-11 15:49:29.224295092 +0300
+++ onevm_helper.rb.description	2019-03-11 15:49:49.400383268 +0300
@@ -371,8 +371,12 @@
                 OneVMHelper.ip_str(d)
             end
 
+ column :DESCRIPTION, "DESCRIPTION", :size=>12 do |d|
+ d["USER_TEMPLATE"]["DESCRIPTION"]
+ end
+
             default :ID, :USER, :GROUP, :NAME, :STAT, :UCPU, :UMEM, :HOST,
- :TIME
+ :TIME, :DESCRIPTION
         end
 
         table
```

1. ~oneadmin/.one/cli/

```
$ cat patch_onevm.txt 
--- .one/cli/onevm.yaml	2019-03-11 15:24:47.202367286 +0300
+++ .one/cli/onevm.yaml.rpmsave	2019-03-11 11:56:48.129511773 +0300
@@ -5,7 +5,7 @@
 
 :NAME:
   :desc: Name of the Virtual Machine
- :size: 30
+ :size: 15
   :left: true
 
 :USER:
@@ -52,7 +52,6 @@
 :DESCRIPTION:
   :desc: DESCRIPTION
   :size: 30
- :left: true
 
 :default:
 - :ID
@@ -76,4 +75,4 @@
     - :UMEM
     - :HOST
     - :TIME
- - :DESCRIPTION
+ - :DESCRIPTION
\ No newline at end of file
```

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![telecast](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/telecast/32/6187_2.png) [@telecast](https://forum.opennebula.io/u/telecast)\
**Post date:** [April 22, 2019, 11:59am UTC](https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009/2 "2019-04-22T11:59:31Z")

</div>

It’s seems up to version 5.6, the “onevm list” command gives info the description which containing into the USER TEMPLATE in XML code.

```
 <USER_TEMPLATE>
    <DESCRIPTION><![CDATA[some text about VM]]></DESCRIPTION>
    *****
  </USER_TEMPLATE>

```

Beginning the version of 5.8 the USER TEMPLATE I can get only via command "onevm show "

---

<div class="post-metadata">

**Author:** ![cgonzalez](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cgonzalez/32/7096_2.png) [@cgonzalez](https://forum.opennebula.io/u/cgonzalez)\
**Post date:** [April 22, 2019, 3:25pm UTC](https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009/3 "2019-04-22T15:25:25Z")

</div>

In OpenNebula 5.8.0 some of the VM attributes were removed from the VM\_POOL in order to decrease its size and improve the performance on large deployments. If you need those attributes you can use the `--extended` option for getting all the VMs attributes.

If you need to modify the current behavior of `onevm list` command you can modify it and force it to call `one.vmpool.infoextended` instead of `one.vmpool.info`

---

<div class="post-metadata">

**Author:** ![telecast](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/telecast/32/6187_2.png) [@telecast](https://forum.opennebula.io/u/telecast)\
**Post date:** [April 24, 2019, 1:49pm UTC](https://forum.opennebula.io/t/opennebula-5-8-column-for-description-in-command-onevm-list-cli/7009/4 "2019-04-24T13:49:59Z")

</div>

@cgonzalez

Thank you for you reply!  
Great,thanks for the tip. Now I can see DESCRIPTION in xml and will be to try parse it.
