Verify expect versions of DRAC, HPiLO and updates to APCControl, & OpenIPMI
[pcucontrol.git] / pcucontrol / support / pcuProxy.php
index 3cfcc47..564d0b9 100644 (file)
@@ -1,9 +1,14 @@
 <?php 
 
+$DEBUG=FALSE;
 function logit($string){
+    global $DEBUG;
+    if ( $DEBUG )
+    {
                $f = fopen("output.log", 'a');
                fwrite($f, $string);
                fclose($f);
+    }
 }
 
 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 "what do you want me to do with this?";
+                       echo "Unrecognized pcu type: $model";
                }
 
        } else {