rename ipmi repo
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$command = "/usr/bin/ipmitool sel ".$_POST["options"];
|
||||
exec($command);
|
||||
?>
|
@ -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);
|
||||
?>
|
Reference in New Issue
Block a user