>>>>>>>>>> The file '$fileName' was not found on the server. <<<<<<<<<<<<<<\n\n\n\n"); echo ""; } return; } else { $operationInProgress = true; $status = new ReturnStatus(); // Create the log files. if( $_POST['logFile'] == "akmPrimLog" ) { $fileName = akm_get_logs($user, 0); // Primary error_log("We got the akm Primary logs - ". $fileName); } else if( $_POST['logFile'] == "akmSecLog" ) { $fileName = akm_get_logs($user, 1); // Secondary error_log("We got the akm Secondary logs - ". $fileName); } if (file_exists($fileName) && !filesize($fileName)) { $status->setErrorCode( 0x51002 ); if (file_exists($fileName)) unlink($fileName); } if ($operation == "email") { email_file( $user, $fileName, $_POST['emailAddress'], "SKM Server Log Files" ); print $status->out(); return; } else if ($operation == "browser") { } print $status->out(); return; } } $fileNameP = ""; $fileNameS = ""; // Test for email configuration $emailConfig = get_email_configuration($user); if( is_ibm_encryption_licensed($user) ) { /************************************** * Get the SKM server info and select * which options to show *************************************/ $akmPrimary = false; $akmSeconday = false; $ekm_data = get_ekm( $user, 2 ); if( $ekm_data->serverType == 2 ) { if( $ekm_data->primaryIP != "" ) $akmPrimary = true; if( $ekm_data->secondaryIP != "" ) $akmSeconday = true; } $akmResult = akm_get_error_codes(); //error_log("akm_get_error_codes = " . print_r($akmResult, true) ); $akmServAvail = @akm_servers_available($user); $fileNameP = @akm_get_logs($user, 0, true); // Get the filename ONLY $fileNameS = @akm_get_logs($user, 1, true); // Get the filename ONLY error_log( "akm_servers_available = ". $akmServAvail); if( $akmServAvail == $akmResult->Failed || $akmServAvail == $akmResult->SecondaryServerFailed ) // None or Sec down { if( $akmServAvail == $akmResult->SecondaryServerFailed ) { error_log("\n\n\n\n\n\n\n\n********************************************************* SETTING SEC DOWN **********************************************\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); $akmPrimary = true; $akmSeconday = false; } } else if( $akmServAvail == $akmResult->Failed || $akmServAvail == $akmResult->PrimaryServerFailed ) // None or Prim down { if( $akmServAvail == $akmResult->PrimaryServerFailed ) { error_log("\n\n\n\n\n\n\n\n********************************************************* SETTING PRIM DOWN **********************************************\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); $akmPrimary = false; $akmSeconday = true; } } else if( $akmServAvail == $akmResult->Failed || $akmServAvail == $akmResult->BothServerFailed ) // None or Prim down { if( $akmServAvail == $akmResult->BothServerFailed ) { error_log("\n\n\n\n\n\n\n\n********************************************************* SETTING BOTH DOWN **********************************************\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); $akmPrimary = false; $akmSeconday = false; } } } ?>