snapshot showvminfo duplicate of showvminfo

This is for discussing general topics about how to use VirtualBox.
Post Reply
QM
Posts: 5
Joined: 16. Apr 2018, 13:56
Primary OS: Mac OS X other
VBox Version: OSE Debian
Guest OSses: Ubuntu

snapshot showvminfo duplicate of showvminfo

Post by QM »

I'm trying to parse some snapshot info, and do things like delete some intermediate snapshots, or make a report.

I find that

Code: Select all

vboxmanage snapshot vmname showvminfo snapname
produces the same output as

Code: Select all

vboxmanage showvminfo vmname
This is the help on snapshot:

Code: Select all

  snapshot                  <uuid|vmname>
                            take <name> [--description <desc>] [--live]
                                 [--uniquename Number,Timestamp,Space,Force] |
                            delete <uuid|snapname> |
                            restore <uuid|snapname> |
                            restorecurrent |
                            edit <uuid|snapname>|--current
                                 [--name <name>]
                                 [--description <desc>] |
                            list [--details|--machinereadable]
                            showvminfo <uuid|snapname>
This is the help on showvminfo:

Code: Select all

  showvminfo                <uuid|vmname> [--details]
                            [--machinereadable]
  showvminfo                <uuid|vmname> --log <idx>
Should I expect

Code: Select all

vboxmanage snapshot vmname showvminfo snapname
to behave differently?

(I must comment, this is pretty poor help formatting. It took me several tries to realize what the required arguments were.)
Quantum Mechanics: The Dreams Stuff is Made Of
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: snapshot showvminfo duplicate of showvminfo

Post by socratis »

The "VBoxManage showvminfo <VM>" shows you the current state of the VM including its snapshots.

The "VBoxManage snapshot <VM> showvminfo <Snapshot>" shows the state of the VM at the speciic snapshot state, which may be different from its current state.
QM wrote:I must comment, this is pretty poor help formatting. It took me several tries to realize what the required arguments were.
It becomes quite clear if you look at it a little bit harder ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
QM
Posts: 5
Joined: 16. Apr 2018, 13:56
Primary OS: Mac OS X other
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: snapshot showvminfo duplicate of showvminfo

Post by QM »

Thanks. It wasn't obvious without a diff that two different snapshot dumps were different. Or that
vboxmanage snapshot vmname showvminfo snapname
and
vboxmanage showvminfo vmname
were dumping out similar, but slightly different, info.

Also, the syntax help makes me think that
list
precedes
showvminfo
, because there's no "or" bar after the list entry, but there are after all other entries (except
<uuid|vmname>
:

Code: Select all

  snapshot                  <uuid|vmname>
                            take <name> [--description <desc>] [--live]
                                 [--uniquename Number,Timestamp,Space,Force] |
                            delete <uuid|snapname> |
                            restore <uuid|snapname> |
                            restorecurrent |
                            edit <uuid|snapname>|--current
                                 [--name <name>]
                                 [--description <desc>] |
                            list [--details|--machinereadable]
                            showvminfo <uuid|snapname> 
Quantum Mechanics: The Dreams Stuff is Made Of
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: snapshot showvminfo duplicate of showvminfo

Post by socratis »

QM wrote:because there's no "or" bar after the list entry
That's a "typo", or an omission if you prefer. I'll file a "patch" to have it addressed in the next release.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply