39 function vmOps($host,$vm, $command)
56 foreach($vm as $machine)
58 $turnOnVm =
"vmware-cmd -H $host -U root -P iforgot $vm $command 2>&1";
59 $laston = exec($turnOnVm, $inout, $inrtn);
60 echo
"DB: Ops: inrtn is:$inrtn\n";
61 echo
"DB: Ops: inout is:\n"; print_r($inout) .
"\n";
64 echo
"Error: could not $command on $vm on $host\n";
72 $turnOnVm =
"vmware-cmd -H $host -U root -P iforgot $vm $command 2>&1";
73 $laston = exec($turnOnVm, $inout, $inrtn);
78 echo
"Error: could not $command on $vm on $host\n";