rename ipmi repo

This commit is contained in:
Derek Macias
2015-12-11 15:14:32 -07:00
parent d57f4dec62
commit b84353c51f
32 changed files with 34 additions and 1236 deletions

View File

@ -0,0 +1,4 @@
<?php
$command = "/usr/bin/ipmitool sel ".$_POST["options"];
exec($command);
?>

View File

@ -0,0 +1,10 @@
<?php
$command = "/usr/bin/ipmitool ".$_POST["options"]." 2>/dev/null";
exec($command, $output);
$array = array();
for ($i = 0; $i < sizeof($output); $i++) {
$value = explode(",", $output[$i]);
$array[] = $value;
}
echo json_encode($array);
?>