This commit is contained in:
parent
a4a7eda8e2
commit
a1c96fd929
2
kvmstats
2
kvmstats
|
@ -48,7 +48,7 @@ done
|
|||
for VM in $(virsh list --name --all)
|
||||
do
|
||||
CPU=$(virsh vcpucount --maximum --current "$VM")
|
||||
# libvirt store memoy in KiB, POW must be lowered by 1
|
||||
# libvirt store memory in KiB, POW must be lowered by 1
|
||||
RAM=$(virsh domstats --balloon "$VM" | awk 'BEGIN { FS="=" } /balloon.maximum/ { print $2 / '$((POW / 1024))'}')
|
||||
DSK=$(for BLK in $(virsh domblklist "$VM" | sed '1,2d;/-$/d;/^$/d' | cut -d\ -f1)
|
||||
do
|
||||
|
|
Loading…
Reference in a new issue