LOGOUT |
---|
DATE | LOG DIRECTORY | OVERALL STATUS | PR->PARSER Result SR->SCRIPT Result |
VIEW LOGS | ADDITIONAL INFO | NA | "; }else{ echo "$date | "; } //Log directory $test_name1=""; list($test_name1,$filer_detail)= get_testname($file,$username); list($time_name)=get_time($file,$username); $filer_detail=implode($filer_detail); $f=count($test_name1); $c=count($time_name); echo " $file ";
echo " "; echo "
| NOT COMPLETED | "; //}else{ // echo "COMPLETED | "; // $i++; //} //Overall Status new list($parser_result,$script_result)=get_parser_result($file,$username); $f=count($parser_result); if (in_array($dir_name[1], $result)) { echo "EXECUTING | "; }else{ //$ka=get_run($file); // if($ka == 0){ //echo "nnnn EXECUTING | "; //}else{ if((preg_match('/FAILED/',$parser_result[0]))){ echo "FAILED | "; }elseif((preg_match('/PASSED$/',$parser_result[0])) && (preg_match('/FAILED/',$script_result[0]))){ echo "Script FAILED | "; } elseif((preg_match('/PASSED\s.*/',$parser_result[0]))){ if ((preg_match('/FAILED/',$script_result[0]))){ echo "Script FAILED | "; }else{ echo "Warning | "; } }elseif((preg_match('/PASSED$/',$parser_result[0])) && (preg_match('/PASSED/',$script_result[0]))){ echo "PASSED | "; } else{ echo "Complete logs Not Available | "; } } $flags = 0; //list($parser_result,$script_result)=get_parser_result($file,$username); if($f<=0){ echo "Complete logs Not Available "; $flags = 8; } if ($flags == 0){ echo " | ";
}
echo " "; echo " "; echo " "; for($i=0;$i<$f;$i++){ echo " "; if((preg_match('/FAILED/',$parser_result[$i])) && ($flags == 0)){ echo "PR:$parser_result[$i]"; } echo" | ";
$var=$_SERVER[SERVER_ADDR];
//View logs
if (in_array($dir_name[1], $result)){
echo "Under Execution | "; }else{ if(preg_match('/\/(\w+\/\S+)/',$file,$f)){ } echo "Click here to View Logs | "; } //Total time // list($gtime)= get_time($file,$username); // if ($gtime ==""){ // echo "NA | "; // }else{ // echo "$gtime | "; // } //Filer info $drive_list=get_drive_type($file,$username); $drive =count($drive_list); if($drive <= 0){ $drive_list= ""; } list($check,$build,$version,$pnate_buid)=get_mode($file,$username); list($filer_model,$ontap,$shelf_id,$vendor,$channel)=get_info($file,$username); $flag = 0; echo "";
if(($filer_model== "") && ($ontap == "") && ($shelf_id == "") && ($vendor== "") &&($channel== "") && ($drive_list== "")){
echo "Data not Available";
$flag = 1;
}
if((($filer_model == "") || ($ontap == "") ||($shelf_id == "") || ($vendor== "") ||($channel== "") || ($drive_list== "")||($build == "")||($version == "") ||($pnate_buid == "")) && ($flag == 0)){
if($build == ""){
}
else{
echo "NDATE Build Date:$build "; } if($pnate_buid == ""){ } else{ echo "Pnate Build Version:$pnate_buid "; } if($version == ""){ } else{ echo "NDATE Version:$version "; } if($filer_detail == ""){ echo "Filer Node: Not Available "; } else{ if( preg_match ('/\d/',$filer_detail )){ echo "Filer Node:$filer_detail "; } } if($check == ""){ echo "Test Setup:Cluster mode "; } else{ echo "Test Setup:$check "; } if($filer_model ==""){ echo "Filer Mode: Not Available "; } else{ echo "Filer Mode:$filer_model "; } if($ontap == ""){ echo "Version:Not Available "; } else{ echo "Version:$ontap "; } if($shelf_id == ""){ echo "Shelf ID:Not Available "; } else{ echo "Shelf ID: $shelf_id"; } if($vendor== ""){ echo "Vendor:Not Available "; } else{ echo "Vendor: $vendor "; } if($channel== ""){ echo "Channel:Not Available "; } else{ echo "Channel:$channel "; } }else if((($filer_model != "") || ($filer_detail !="") || ($ontap != "") ||($shelf_id != "") || ($vendor != "") ||($channel != "") || ($drive_list != "")) && ($flag == 0)){ echo "Pnate Build Version: $pnate_buidNDATE Build Date: $buildNDATE Version: $version FilerNode: $filer_detailTest Setup:$checkFiler Model:$filer_modelVersion: $ontap Shelf ID: $shelf_idVendor: $vendorChannel: $channelDrive Type:$drive_list"; } echo " | ";
echo "";
}
}
}
?>
---|