Testing stuff

feature/node-rewrite
Sven Slootweg 13 years ago
parent e2804c45a5
commit 8bed54a4eb

@ -17,13 +17,16 @@ elseif($_GET['action'] == "stop")
}
elseif($_GET['action'] == "bw")
{
$result = $sContainer->sNode->ssh->RunCommand("vzctl exec {$sContainer->sInternalId} cat /proc/net/dev", false);
$values = split_whitespace($result->stdout);
pretty_dump($values[1], $values[9]);
$result = $sContainer->sNode->ssh->RunCommand("vzctl exec {$sContainer->sInternalId} cat /proc/net/dev | grep venet0", false);
$lines = split_lines($result->stdout);
$values = split_whitespace($lines[0]);
pretty_dump($values);
}
echo("Done!");
?>
<title>CVM test</title>
<br><br>
<a href="?action=start">Start</a><br>
<a href="?action=stop">Stop</a><br>

Loading…
Cancel
Save