VirtualBox

Ticket #12073 (new defect)

Opened 8 months ago

VBoxManage showvminfo --machinereadable XXX has inconsistent output format

Reported by: gsp Owned by:
Priority: major Component: other
Version: VirtualBox 4.2.16 Keywords: machinereadable
Cc: Guest type: all
Host type: Linux

Description

The output of VBoxManage showvminfo --machinereadable is not as easy to parse as it should.

To reproduce:

VBoxManage showvminfo --machinereadable SomeVM | less

some of the values which are integers show with quotas, some not:

cpus=4
sockSnd="64"

most of the keywords show without quotas, some with:

VMStateChangeTime="2013-09-04T08:07:24.020000000"
"IDE-Controller-1-1"="none"

some items are merged in a strange way:

Time offset=0rtcuseutc="off"

Boolean values should show without quotas to distinct them from strings:

lpt2="off"

Quotas and newlines in user-editable text should be replaced by the proper escape-sequences:

description="Multiline Description
with "quotas""

Keywords should be language-neutral (don't localize):

"Disketten-Controller-0-1"="none"

Please consider to make the output valid JSON, this is much easier to parse ( http://www.json.org)

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use