Get the Usage Data of the BOINC Deployed VM - ji-it/CloudTides GitHub Wiki
Note
Every time you new a BOINC deployed VM, please set its annotation as BOINC
. To set the annotation with scripts, please use clone_vm_annotation_added.py
. It will deploy a VM from a required template and directly set its annotation.
Script
In folder pyVmomi
, you will find the file get_vm_usage.py
.
Get the Data of BOINC Deployed VM
Use the command
python get_vm_usage.py -s (IP address of vCenter) -u (user) -p (password) -S
you will get a file named Information.json
. The format is like:
{ipAddress1: {"Name": Name_of_VM_1, "Memory": Memory_Usage_in_MB_1, "CPU": CPU_Usage_1}, ipAddress2: {"Name": Name_of_VM_2, "Memory": Memory_Usage_in_MB_2, "CPU": CPU_Usage_2}, ...}
This JSON file contains the information every VM whose annotation is exactly BOINC-running
.