VMware Cloud Community
danandham
Contributor
Contributor

[Bug Report] esxcli network vm list - erroneous trailing comma in 'Networks' field value when using csv formatter

Example:

No formatter:

[root@esx01:~] esxcli network vm list

World ID  Name  Num Ports  Networks

--------  ----  ---------  ----------

2099470  foo           1  VM Network

When using the csv formatter there is an additional (and incorrect) trailing comma included in the 'Networks' field value:

[root@esx01:~] esxcli --formatter=csv network vm list

Name,Networks,NumPorts,WorldID,

foo,"VM Network,",1,2099470,

               ^

               |___________ This comma shouldn't be here!!

Output using other formatters e.g. the XML formatter is fine:

[root@esx01:~] esxcli --formatter=xml network vm list

<?xml version="1.0" encoding="utf-8"?>

<output xmlns="http://www.vmware.com/Products/ESX/5.0/esxcli">

...

         <field name="Networks">

            <list type="string">

               <string>VM Network</string>

            </list>

....

</output>

This bug appears to affect all versions of ESXi 6:

ESXi 6.7.0 (Releasebuild-8169922)

ESXi 6.5.0u2 (Releasebuild-8294253)

ESXi 6.5.0a (Releasebuild-4887370)

0 Kudos
5 Replies
Devi94
Hot Shot
Hot Shot

im running on build VMware ESXi 6.5.0 build-7388607. command works fine without any error.

0 Kudos
Devi94
Hot Shot
Hot Shot

im running on build VMware ESXi 6.5.0 build-7388607. command works fine without any error.

0 Kudos
danandham
Contributor
Contributor

Devi94. That's odd. What is the output from running the following command?

esxcli system version get

0 Kudos
Devi94
Hot Shot
Hot Shot

Here we go,

  Product: VMware ESXi

   Version: 6.5.0

   Build: Releasebuild-7388607

   Update: 1

   Patch: 36

0 Kudos
danandham
Contributor
Contributor

OK. So with that version you don't get the trailing comma in the Networks field value when running the 'esxcli --formatter=csv network vm list' command?

0 Kudos