--- misc/xenconsole/index.php 2012/11/30 08:55:07 1880 +++ misc/xenconsole/index.php 2013/04/16 15:21:10 1971 @@ -28,38 +28,227 @@ /* 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% |
-
+
- | + |
+ | - (IP: 192.168.10.45, 172.10.0.34) - + + + | - stop | "; - echo "force shutdown"; - } else { - echo "start | "; - echo "stop | "; - echo "force shutdown"; - } - ?> + + + + start | + stop | + force shutdown + | -+ |
+ - VCPU + VCPU |
+ - + |
- + | + |