registerFunction("errorBack"); $xajax->registerFunction("checkEEBStatus"); session_start(); $user = $_SESSION['user']; $in_xAjax = false; $xAjax_objResponse; include('EEB_inc.htm'); include('common_admin_inc.htm'); // Note: This must be here to beable to use the error_handler // Debug function for testing the xajax error handling. // I am leaving this in for now for future testing. function errorBack( $aError ) { global $in_xAjax; global $xAjax_objResponse; $user = $_SESSION['user']; $xAjax_objResponse = new xajaxResponse(); $in_xAjax = true; // $save_error_handler = set_error_handler("xAjax__errorHandler"); $ret = error_back( $aError ); // $save_error_handler = set_error_handler("errorHandler"); // restore_error_handler(); error_log("We have returned from the call to error_back with a '". $ret ."'"); $in_xAjax = false; return $xAjax_objResponse; } // Function to check the status off all blades if any are not ready or powered down a timer is set to rerun the function. function checkEEBStatus() { global $in_xAjax; global $xAjax_objResponse; global $EEB_bladeStatus; $user = $_SESSION['user']; $xAjax_objResponse = new xajaxResponse(); $in_xAjax = true; // This must be called because we set NoInactivityTimer to true because of xajax loading the page behind the sheets. // Which causes an xajax XML error if the user is redirected to the login page durring the xajax call setup. // If we are logged out this function will reload the page which will take the user back to the login page. CheckLoggedOut(); error_log("Reloading EE Blade Status"); //$xAjax_objResponse->script('alert(xajax.$("testlevel[1]").value);'); $eebs = get_eeblades($user); error_log("In XAjaX - eebs = ". print_r($eebs,true) ); //error_log("=========================================================================="); $doItAgain = false; foreach($eebs as $eeb) { if( $eeb->status == 6 ) $xAjax_objResponse->assign("IOBStat_".$eeb->id, "innerHTML", $EEB_bladeStatus[$eeb->status]); else $xAjax_objResponse->assign("IOBStat_".$eeb->id, "innerHTML", "".$EEB_bladeStatus[$eeb->status].""); $xAjax_objResponse->assign("IOBStat", "innerHTML", "Note: One or more EE Blades are not ready. The page will auto re-load when all the EE Blades are ready."); if( $eeb->status != 6 ) { // This blade is NOT ready so set a timer to try this again. $doItAgain = true; } } if( $doItAgain ) $xAjax_objResponse->script('setTimeout("xajax_checkEEBStatus()",20000);'); else $xAjax_objResponse->script('setTimeout("location.reload(true)",10);'); $in_xAjax = false; return $xAjax_objResponse; } $xajax->processRequest(); /*******************************************************************************************/ // Handle the progress screen if opened and get the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); $theOp = $_POST['operation']; $theBlade = $_POST['bladeId']; $thePort = $_POST['bladePort']; $thePortId = $_POST['portId']; error_log("\n\nDoing operation ". $theOp ." on EE Blade '". $theBlade ."' port '". $thePort ."' and portId '".$thePortId."'\n\n" ); // !?!John, Just change the fuction calls here to your new ones and you should be good. switch( $theOp ) { case 'op_powercycle': power_cycle_blade( $user, $theBlade ); break; case 'op_poweron': set_blade_power( $user, $theBlade, true ); break; case 'op_poweroff': set_blade_power( $user, $theBlade, false ); break; case 'op_remove': remove_blade( $user, $theBlade ); break; } print $status->out(); return; } function is_fips_enabled($user) { $libs = get_logical_libraries_brief($user); foreach($libs as $lib) { $lib_detail = get_partition_enryption($user, $lib->guid); if($lib_detail->fips_mode) { return true; } } return false; } $fipsEnabled = is_fips_enabled($user); ?> printJavascript(); ?> Ethernet Expansion Blade Control id; } ?>
Diagnostics - Ethernet Expansion Blade Control
Set the Ethernet Expansion Blade Control Settings.
EE Blades cannot be removed while FIPS mode is enabled on one or more partitions.


No Ethernet Expansion Blades detected.
Please select an operation on an EE Blade.
id; $port=1; $checked = "checked"; $bladeNum = 1; foreach ($eebs as $blade) { if( $blade->status < 6 ) echo" "; ?>
EE Blade Status EE Blade Power Remove
location ?> status] ?> id="remove_" value="Remove" onClick="RemoveBlade('id?>', 'location?>');">