--- misc/xenconsole/index.php 2012/11/30 08:55:07 1880 +++ misc/xenconsole/index.php 2014/01/30 09:47:17 2100 @@ -1,5 +1,5 @@ $size) { @@ -28,59 +28,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) - + + + + + + | - stop | "; - echo "force shutdown"; - } else { - echo "start | "; - echo "stop | "; - echo "force shutdown"; - } - ?> + + + | -+ | + - VCPU + VCPU | + - + | -+ | + |