git://git.onelab.eu
/
pcucontrol.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verify expect versions of DRAC, HPiLO and updates to APCControl, & OpenIPMI
[pcucontrol.git]
/
pcucontrol
/
support
/
pcuProxy.php
diff --git
a/pcucontrol/support/pcuProxy.php
b/pcucontrol/support/pcuProxy.php
index
3cfcc47
..
564d0b9
100644
(file)
--- a/
pcucontrol/support/pcuProxy.php
+++ b/
pcucontrol/support/pcuProxy.php
@@
-1,9
+1,14
@@
<?php
<?php
+$DEBUG=FALSE;
function logit($string){
function logit($string){
+ global $DEBUG;
+ if ( $DEBUG )
+ {
$f = fopen("output.log", 'a');
fwrite($f, $string);
fclose($f);
$f = fopen("output.log", 'a');
fwrite($f, $string);
fclose($f);
+ }
}
function run_hp_script($script, $host, $username, $password)
}
function run_hp_script($script, $host, $username, $password)
@@
-52,7
+57,7
@@
function run_hp_script($script, $host, $username, $password)
echo system("which ipmitool 2>&1");
} else
{
echo system("which ipmitool 2>&1");
} else
{
- echo "
what do you want me to do with this?
";
+ echo "
Unrecognized pcu type: $model
";
}
} else {
}
} else {