Displaying 1 result from an estimated 1 matches for "fakepass".
Did you mean:
fakepack
2007 Oct 08
0
Node CPU Utilization
...e:
for cpu in cpus:
load = session.xenapi.host_cpu.get_utilisation(cpu)
print load
time.sleep(1)
url = ''httpu:///var/run/xend/xen-api.sock''
username = ''fakeuser'' # we run as root, dont worry about auth
password = ''fakepass''
# First acquire a valid session by logging in:
session = XenAPI.Session(url)
session.xenapi.login_with_password(username, password)
print_cpu_utilization()
Some observations:
* If I run a program with only a tight loop on dom0, this seems to
affect the figures printed out by this program...