--- misc/xenconsole/webadmin.php 2012/11/30 08:44:57 1878 +++ misc/xenconsole/index.php 2013/07/19 08:06:00 2020 @@ -1,5 +1,5 @@ $size) { @@ -28,59 +28,345 @@ /* 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 | ++ | ||||||
+ Not logged in + + | +
- 12% |
-
+
- | + |
+ | - (IP: 192.168.10.45, 172.10.0.34) - + + + + + + | ||||||
- | start stop force | ++ + start | + stop | + force shutdown + - | + ++ | + +
+ - VCPU + VCPU |
+ - + |
- + |