Show Table of Contents
14.5.20. Domain Retrieval Commands
The following commands will display different information about a given domain
virsh domhostname domaindisplays the host name of the specified domain provided the hypervisor can publish it.virsh dominfo domaindisplays basic information about a specified domain.virsh domuid domain|IDconverts a given domain name or ID into a UUID.virsh domid domain|IDconverts a given domain name or UUID into an ID.virsh domjobabort domainaborts the currently running job on the specified domain.virsh domjobinfo domaindisplays information about jobs running on the specified domain, including migration statisticsvirsh domname domain ID|UUIDconverts a given domain ID or UUID into a domain name.virsh domstate domaindisplays the state of the given domain. Using the--reasonoption will also display the reason for the displayed state.virsh domcontrol domaindisplays the state of an interface to VMM that were used to control a domain. For states that are not OK or Error, it will also print the number of seconds that have elapsed since the control interface entered the displayed state.
Example 14.2. Example of statistical feedback
In order to get information about the domain, run the following command:
# virsh domjobinfo rhel6 Job type: Unbounded Time elapsed: 1603 ms Data processed: 47.004 MiB Data remaining: 658.633 MiB Data total: 1.125 GiB Memory processed: 47.004 MiB Memory remaining: 658.633 MiB Memory total: 1.125 GiB Constant pages: 114382 Normal pages: 12005 Normal data: 46.895 MiB Expected downtime: 0 ms Compression cache: 64.000 MiB Compressed data: 0.000 B Compressed pages: 0 Compression cache misses: 12005 Compression overflows: 0

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.