--- misc/xenconsole/index.php 2012/11/30 08:55:07 1880
+++ misc/xenconsole/index.php 2012/12/01 10:59:57 1887
@@ -39,23 +39,77 @@
@@ -122,7 +170,7 @@
- ![](gfx/citrix-logo.png) |
+ ![](gfx/citrix-logo.png) |
Linux:2.6.32.12-0.7.1.xs6.0.2.542.170665xen / xen: 4.1.2 / xapi: 1.3 |
@@ -156,6 +204,10 @@
$harddrive_size = 0;
$cpu_count = $vm["VCPUs_max"];
+ $clean_name = str_replace(" ", "_", $name);
+ $clean_name = str_replace(".", "_", $clean_name);
+
+
foreach ($vm["VBDs"] as $vbds) {
$vbd = $xenserver->VBD__get_record($vbds);
if ($vbd["type"] == 'Disk') {
@@ -164,38 +216,19 @@
}
}
- $vps_topbg = 'vps_topyellow.png';
-
- if ($state == "Running") {
- $vps_topbg = 'vps_topgreen.png';
- } else if ($state == "Halted") {
- $vps_topbg = 'vps_topred.png';
- }
-
- $url = "";
- $session = "";
- foreach($vm["consoles"] as $conref) {
- $con = $xenserver->console__get_record( $conref );
- //var_dump($con);
-
- if ($con["protocol"] == "rfb") {
- $url = urlencode( $con["location"] );
- $session = $xenserver->get_id();
- }
- }
-
-
-// echo "$name
\n";
+
?>
-
-
- |
+
+
+ |
|
- (IP: 192.168.10.45, 172.10.0.34)
-
+
+
+
+
|
@@ -203,17 +236,17 @@
|
- stop | ";
- echo "force shutdown";
- } else {
- echo "start | ";
- echo "stop | ";
- echo "force shutdown";
- }
- ?>
+
+ start |
+ stop |
+ force shutdown
+
+
+
+ start |
+ stop |
+ force shutdown
+
|