Created
November 23, 2012 07:20
-
-
Save coldfire-x/4134354 to your computer and use it in GitHub Desktop.
get currently cpu affinity from localhost
This file contains hidden or 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
#!/bin/bash | |
vmlist=$(virsh list | awk 'NR>2 {print $2}') | |
for vm in $vmlist | |
do | |
#echo "$vm" | |
virsh vcpuinfo $vm | grep 'CPU A' | awk '{print $3}' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment