Last active
October 7, 2015 15:09
-
-
Save jwadolowski/618991ad379d191b0d53 to your computer and use it in GitHub Desktop.
Number of allocated vCPUs on XenServer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xe vm-list params=VCPUs-number --minimal | tr ',' '\n' | paste -sd+ | bc |
As my colleague pointed out there's a much faster way to achieve the same as presented above, hence this gist was updated.
One last thing - when VM is not in running
state it reports 0 vCPUs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Human-readable version: