--- misc/xenconsole/webadmin.php 2012/11/30 08:27:52 1876 +++ misc/xenconsole/index.php 2014/02/10 08:13:22 2105 @@ -1,5 +1,10 @@ $size) { @@ -28,55 +33,359 @@ /* Establish session with Xenserver */ $xenserver = new XenApi($url, $login, $password); +$hosts_array = $xenserver->host__get_all(); +$host = $xenserver->host__get_record($hosts_array[0]); +$host_metrics = $xenserver->host_metrics__get_record($host["metrics"]); + +$xenversion = $host["software_version"]["product_brand"] . " " . $host["software_version"]["product_version"]; +$xenversion .= " / Linux:" . $host["software_version"]["linux"] . " / xen: " . $host["software_version"]["xen"] . " / xapi: " . $host["software_version"]["xapi"] ; + +$expire = split('T', $host["license_params"]["expiry"]); +$license = "License: " . $host["license_params"]["sku_type"] . ", expires " . $expire[0] ; + $vms_array = $xenserver->VM__get_all_records(); +$namelabel = $host["name_label"]; ?>
-- | Linux:2.6.32.12-0.7.1.xs6.0.2.542.170665xen / xen: 4.1.2 / xapi: 1.3 | ++ | ||||||
- 12% |
++ Not logged in + + | ++ | + + + 12% + | + ++ + + 0/4 MB + |
- 1% |
+
- 89.3/405.5 GB |
-
+
- | - | (IP: 192.168.10.45, 172.10.0.34) | +
+ | + | + + + + + + + | |||||
- | start stop force | ++ | + + -+ | + ++ - VCPU + VCPU | + - + | -+ |