![](/images/new-backgrounds/1110903/110903449x1.webp)
List the data sources that can be recorded for a VM.
The VM or VMs on which this operation should be performed are selected using the standard selection mechanism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the beginning of this section.
vm-data-source-query
Display the specified data source for a VM.
The VM or VMs on which this operation should be performed are selected using the standard selection mechanism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the beginning of this section.
vm-data-source-record
Record the specified data source for a VM.
This will write the information from the data source to the VM's persistent performance metrics database. This database is distinct from the normal agent database for performance reasons.
Data sources have the true/false parameters standard and enabled, which can be seen in the output of the
sets enabled=false.
Once enabled, you can stop recording the metrics of the data source by running the
The VM or VMs on which this operation should be performed are selected using the standard selection mechanism (see VM selectors). Optional arguments can be any number of the VM parameters listed at the beginning of this section.
vm-destroy
vm-destroy uuid=<uuid_of_vm>
Destroy the specified VM. This leaves the storage associated with the VM intact. To delete storage as well, use xe
vm-disk-add
Add a new disk to the specified VMs. Select the device parameter from the value of the
205