host__get_all(); $host = $xenserver->host__get_record($hosts_array[0]); $host_metrics = $xenserver->host_metrics__get_record($host["metrics"]); echo "
";
//var_dump($host_metrics);

$data = $xenserver->host__get_data_sources($hosts_array[0]);
var_dump($data);


echo "

" . $host["software_version"]["product_brand"] . " " . $host["software_version"]["product_version"] . "

"; echo "Linux:" . $host["software_version"]["linux"] . " / xen: " . $host["software_version"]["xen"] . " / xapi: " . $host["software_version"]["xapi"] . "
\n"; echo "License: " . $host["license_params"]["sku_type"] . ", expires " . $host["license_params"]["expiry"] . "
\n"; echo "CPU: " . $host["cpu_info"]["cpu_count"] . " x " . $host["cpu_info"]["modelname"] . "
\n"; echo "Memory, Total: " . mb( $host_metrics["memory_total"] ) . "mb
\n"; echo "Memory, Free: " . mb( $host_metrics["memory_free"] ) . "mb
\n"; ?>