init web ems all

This commit is contained in:
agtuser
2024-09-27 17:13:36 +08:00
parent 81c97acbe9
commit 5cc56f8078
4263 changed files with 798779 additions and 0 deletions

View File

@@ -0,0 +1,385 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "$strSysStatus > Platform";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
//showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=\"plat_status.php\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">$strBack</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
if(0)
{
echo "subSysNo=$subSysNo,platID=$platID<br>";
}
$config=parse_ini_file("config.ini",true);
$config_count=sizeof($config);
foreach($config as $key => $val)
{
if($config[$key][PlatformID] == $platID)
{
$thisconfig=$config[$key];
break;
}
}
$tmpconf[PlatNo]=$platID;
$plat=GetPlatInfo($tmpconf,$subSysNo);
if(0)
{
echo "<pre>";
print_r($plat);
echo "</pre>";
}
echo "<br><center><font color=\"blue\">{$thisconfig[PlatformName]}_$subSysNo platform information</font></center>";
echo "<table width=100% border=1 cellpadding=1 cellspacing=0 bordercolor=#666666 bordercolordark=#FFFFFF bgcolor=\"#ffffff\">";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>Status</td>";
echo "<td>";
//platform Status
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>Refresh Time</td>";
echo "<td>";
//Refresh Time
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>Start Time</td>";
echo "<td>";
//Start Time
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>CPU Usage</td>";
echo "<td>";
//CPU Usage PN
$id=AssignID();
$val=GetProcessLabel(0);
echo "<input id=\"{$id}\" value=\"{$val}\" readonly type=text size=18 style=\"font-family:Arial; color:#3366aa; background-color:#ffffff; padding:0px; border-style:double; border-width:1px;height:14px;border-color:#222222;font-size:12px;\">";
echo "&nbsp;";
//CPU Usage Rate
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>Physical Memory</td>";
echo "<td>";
//Physical Memory Used/Total
$id=AssignID();
$val=GetProcessLabel(0);
echo "<input id=\"{$id}\" value=\"{$val}\" readonly type=text size=18 style=\"font-family:Arial; color:#3366aa; background-color:#ffffff; padding:0px; border-style:double; border-width:1px;height:14px;border-color:#222222;font-size:12px;\">";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
echo "(Used/Total)";
echo "<br>";
//Physical Memory Used/Swap
$id=AssignID();
$val=GetProcessLabel(0);
echo "<input id=\"{$id}\" value=\"{$val}\" readonly type=text size=18 style=\"font-family:Arial; color:#3366aa; background-color:#ffffff; padding:0px; border-style:double; border-width:1px;height:14px;border-color:#222222;font-size:12px;\">";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
echo "(Used/Swap)";
echo "<br>";
$id=AssignID();
echo "Buffers:";
echo "&nbsp;";
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo ";&nbsp;";
$id=AssignID();
echo "Cached:";
echo "&nbsp;";
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "<br>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=left bgcolor=\"#E6E6E6\" width=50%>Harddisk Space</td>";
echo "<td>";
//Harddisk, support 16 harddisk
for($i=0;$i<16;$i++)
{
$id=AssignID();
if($i==0)
echo "<span id=\"{$id}\">";
else
echo "<span id=\"{$id}\" style=\"display:none;\">";
$id=AssignID();
$val=GetProcessLabel(0);
echo "<input id=\"{$id}\" value=\"{$val}\" readonly type=text size=18 style=\"font-family:Arial; color:#3366aa; background-color:#ffffff; padding:0px; border-style:double; border-width:1px;height:14px;border-color:#222222;font-size:12px;\">";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "&nbsp;";
$id=AssignID();
echo "<span id=\"{$id}\" style=\"color:#000000;\">";
echo "--";
echo "</span>";
echo "<br>";
echo "</span>";
}
echo "</td>";
echo "</tr>";
echo "</table>";
//Remark Table
echo "<table border=\"0\" width=\"100%\" cellpadding=1 cellspacing=0>";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=\"plat_status.php\"><img align=absBottom border=0 src=\"../../images/left.gif\" width=\"14\" height=\"14\">$strBack</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_content_tail();
?>
<script language="JavaScript">
function updateStatus(platID,subSysNo)
{
var fixurl="./plat_status_detail_update.php?platID="+platID+"&subSysNo="+subSysNo;
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
request_oo = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_oo = new XMLHttpRequest();
}
request_oo.open("GET",fixurl,"false");
request_oo.onreadystatechange=function()
{
checUpdateState();
}
request_oo.send(null);
setTimeout("updateStatus('"+platID+"','"+subSysNo+"')", 10000);
}
function checUpdateState()
{
//not
if(request_oo.readyState == 3)
{
//alert("not finish");
}
if(request_oo.readyState == 4)
{
var response = request_oo.responseText;
response=response.replace(/(^\s*)|(\s*$)/g, "");
if(response == "")
return;
var objects=response.split(';');
//alert(objects.length);
for(i=0;i<objects.length;i++)
{
var items=objects[i].split(',');
var item_id=items[0].replace(/(^\s*)|(\s*$)/g, "");
if(document.getElementById(item_id) == null)
continue;
var item_display=items[1].replace(/(^\s*)|(\s*$)/g, "");
var item_value=items[2].replace(/(^\s*)|(\s*$)/g, "");
var item_color=items[3].replace(/(^\s*)|(\s*$)/g, "");
if(item_display == 'Rect')
{
document.getElementById(item_id).value=GetLabel(item_value);
document.getElementById(item_id).style.color='#3366aa';
}
else if(item_display == 'layerShow')
{
document.getElementById(item_id).style.display='';
}
else if(item_display == 'layerHide')
{
document.getElementById(item_id).style.display='none';
}
else
{
document.getElementById(item_id).style.color=item_color;
document.getElementById(item_id).innerHTML=item_value;
if(item_display == 'none')
document.getElementById(item_id).style.display='none';
else
document.getElementById(item_id).style.display='';
}
}
}
}
function GetLabel(pn)
{
switch(pn)
{
case '0':
case 0:
return '';
case '1':
case 1:
return '<27><>';
case '2':
case 2:
return '<27><><EFBFBD><EFBFBD>';
case '3':
case 3:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '4':
case 4:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '5':
case 5:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '6':
case 6:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '7':
case 7:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '8':
case 8:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '9':
case 9:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '10':
case 10:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
}
return '';
}
</script>
<?php
echo "\n<script language=\"JavaScript\">\n";
echo "updateStatus('$platID','$subSysNo');\n";
echo "</script>\n";
?>

View File

@@ -0,0 +1,181 @@
<?php
require("../../inc/lib.inc");
require("../serverStatusImprove/function.inc");
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
if(0)
{
echo "platID=$platID,subSysNo=$subSysNo";
}
$config=parse_ini_file("config.ini",true);
$config_count=sizeof($config);
foreach($config as $key => $val)
{
if($config[$key][PlatformID] == $platID)
{
$thisconfig=$config[$key];
break;
}
}
$sql="select * from OMC_PUB.sysStat where sysTypeNo=200 and sysNo={$platID} and subSysNo=$subSysNo ";
//echo "$sql<br>";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num == 0)
exit();
$tmpconf[PlatNo]=$platID;
$plat=GetPlatInfo($tmpconf,$subSysNo);
//platform Status
$id=AssignID();
$sql="select * from OMC_PUB.sysInfo where sysTypeNo=200 and sysNo={$platID} and subSysNo=$subSysNo ";
//echo "$sql<br>";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num != 1)
{
$baseStat=0;
}
else
{
$row=@mysqli_fetch_array($res);
$baseStat=$row[baseStat]+0;
}
$refresh_time=$row[updateTime];
$due_date=date("Y-m-d H:i:s",mktime(date("H"),date("i"),date("s")-60,date("m"),date("d"),date("Y")));
$ove_date=date("Y-m-d H:i:s",mktime(date("H"),date("i"),date("s")+60,date("m"),date("d"),date("Y")));
if($refresh_time < $due_date || $refresh_time > $ove_date)
{
$valid_time=0;
}
else
{
$valid_time=1;
}
if($valid_time == 0 || $baseStat == 0)
$total_response.="$id,block,N,#ff0000;";
else
$total_response.="$id,block,Y,#0000ff;";
//Refresh Time
$id=AssignID();
if($valid_time)
$total_response.="$id,block,$refresh_time,#0000ff;";
else
$total_response.="$id,block,$refresh_time,#ff0000;";
//Start Time
$id=AssignID();
if(trim($plat[StartTime][Value]) == "")
$total_response.="$id,block,--,#000000;";
else
$total_response.="$id,block,{$plat[StartTime][Value]},#0000ff;";
//CPU Usage PN
$id=AssignID();
$message="{$id},{$plat[CPURatePN][Display]},{$plat[CPURatePN][Value]},{$plat[CPURatePN][Color]};";
$total_response.=$message;
//CPU Usage
$id=AssignID();
$message="{$id},{$plat[CPURate][Display]},{$plat[CPURate][Value]},{$plat[CPURate][Color]};";
$total_response.=$message;
//Physical Memory
$id=AssignID();
$message="{$id},{$plat[PMTotalRatePN][Display]},{$plat[PMTotalRatePN][Value]},{$plat[PMTotalRatePN][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMTotalRate][Display]},{$plat[PMTotalRate][Value]},{$plat[PMTotalRate][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMTotalRateV][Display]},{$plat[PMTotalRateV][Value]},{$plat[PMTotalRateV][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMSwapRatePN][Display]},{$plat[PMSwapRatePN][Value]},{$plat[PMSwapRatePN][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMSwapRate][Display]},{$plat[PMSwapRate][Value]},{$plat[PMSwapRate][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMSwapRateV][Display]},{$plat[PMSwapRateV][Value]},{$plat[PMSwapRateV][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMBuffers][Display]},{$plat[PMBuffers][Value]},{$plat[PMBuffers][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[PMCached][Display]},{$plat[PMCached][Value]},{$plat[PMCached][Color]};";
$total_response.=$message;
//Harddisk
for($i=0;$i<16;$i++)
{
if($i<$plat[HDNum])
{
$id=AssignID();
$message="{$id},layerShow,no,no;";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[HD][$i][PN][Display]},{$plat[HD][$i][PN][Value]},{$plat[HD][$i][PN][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[HD][$i][Rate][Display]},{$plat[HD][$i][Rate][Value]},{$plat[HD][$i][Rate][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[HD][$i][V][Display]},{$plat[HD][$i][V][Value]},{$plat[HD][$i][V][Color]};";
$total_response.=$message;
$id=AssignID();
$message="{$id},{$plat[HD][$i][Path][Display]},{$plat[HD][$i][Path][Value]},{$plat[HD][$i][Path][Color]};";
$total_response.=$message;
}
else
{
$id=AssignID();
$message="{$id},layerHide,no,no;";
$total_response.=$message;
$id=AssignID();
$message="{$id},none,{$plat[HD][$i][PN][Value]},{$plat[HD][$i][PN][Color]};";
//$total_response.=$message;
$id=AssignID();
$message="{$id},none,{$plat[HD][$i][Rate][Value]},{$plat[HD][$i][Rate][Color]};";
//$total_response.=$message;
$id=AssignID();
$message="{$id},none,{$plat[HD][$i][V][Value]},{$plat[HD][$i][V][Color]};";
//$total_response.=$message;
$id=AssignID();
$message="{$id},none,{$plat[HD][$i][Path][Value]},{$plat[HD][$i][Path][Color]};";
//$total_response.=$message;
}
}
echo "$total_response";
?>

View File

@@ -0,0 +1,146 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > IPTRANS Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
if(0)
{
echo "config_count=$config_count<br>";
echo "<pre>";
print_r($config);
echo "</pre>";
}
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,0);
$table_title="<font color=\"#0000FF\">IPTRANS</font>( Version:";
$table_title.="<font color=\"#0000FF\"> {$platDetailInfo[IPTRANS][Version][Value]}</font>";
$table_title.=",";
$table_title.=" Status:";
$table_title.="<font color=\"{$platDetailInfo[IPTRANS][Status][Color]}\">{$platDetailInfo[IPTRANS][Status][Value]}</font>";
$table_title.=",";
$table_title.="RefreshTime:";
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
$table_title.=")";
echo "<br><b><center>$table_title</center></b>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "</tr>";
echo "<br>";
?>
<?php
/*
for($i=0;$i<8;$i++)
{
echo "<tr>";
for($j=0;$j<8;$j++)
{
if($j%2==0)
{
$dis_no=4950+($j/2)*8+$i;
echo "<td>";
echo $dis_no;
echo "</td>";
}
else
{
$dis_port=(($j-1)/2)*8+$i;
echo "<td>";
echo "<font color=\"{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Color]}\">{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Value]}</font>";
echo "</td>";
}
}
echo "</tr>";
}
*/
for($i=0;$i<8;$i++)
{
echo "<tr>";
for($j=0;$j<4;$j++)
{
$dis_no=4950+($j)*8+$i;
echo "<td>";
echo $dis_no;
echo "</td>";
echo "<td>";
$dis_port=($j)*8+$i;
//echo "$dis_port";
echo "<font color=\"{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Color]}\">{$platDetailInfo[IPTRANS][Port][$dis_port][Status][Value]}</font>";
echo "</td>";
}
echo "</tr>";
}
?>
</table>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
//echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
?>

View File

@@ -0,0 +1 @@
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

View File

@@ -0,0 +1,204 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > MTP3 Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
if(0)
{
echo "config_count=$config_count<br>";
echo "<pre>";
print_r($config);
echo "</pre>";
}
echo "<br><center><font color=\"blue\">Platform summary information</font></center>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td>Item</td>";
echo "<td>Application status</td>";
echo "<td>IPTRANS</td>";
echo "<td>MTP3</td>";
echo "<td>SCCP</td>";
echo "<td>TCAP</td>";
echo "<td>SNMP</td>";
echo "<td>DEBUG</td>";
echo "<td>SMPP</td>";
echo "<td>Refresh Time</td>";
echo "<td>IP Address</td>";
echo "</tr>";
echo "<tr id=\"blank_line\">";
echo "<td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td>";
echo "</tr>";
foreach($config as $key => $val)
{
if(strcmp($key,"PlatSysTypeNo")==0)
{
continue;
}
for($j=0;$j<$config[$key][PlatformNo];$j++)
{
//Rowline
$id=AssignID();
echo "<tr id=\"$id\" style=\"display:none;\">";
//Item Name
echo "<td>{$config[$key][PlatformName]}_{$j}</td>";
//Application status
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//IPTRANS
$id=AssignID();
echo "<td>";
//echo "<a href=\"./plat_status_detail.php?subSysNo=$j&platID={$config[$key][PlatformID]}\">";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//MTP3
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SCCP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//TCAP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SNMP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//DEBUG
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SMPP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//Refresh Time
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//IP Address
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
echo "</tr>";
}
}
echo "<table>";
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
if($clearAll)
{
echo "<script language=\"JavaScript\">\n";
echo "document.getElementById('blank_line').style.display='';\n";
echo "</script>\n";
}
echo "</form>";
adjust_content_tail();
?>

View File

@@ -0,0 +1,245 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<script language="JavaScript">
function clearAll()
{
window.location.href="./plat_status.php?clearAll=1";
}
</script>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > Plat Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
//showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
if(0)
{
echo "config_count=$config_count<br>";
echo "<pre>";
print_r($config);
echo "</pre>";
}
if($clearAll == 1)
{
$sql="delete from OMC_PUB.sysInfo where sysTypeNo={$config[PlatSysTypeNo]} ";
@mysqli_query($pubConn,$sql);
echo mysqli_error($pubConn);
}
echo "<br><center><font color=\"blue\">Platform summary information</font></center>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td>Item</td>";
echo "<td>IPTRANS</td>";
echo "<td>MTP3</td>";
echo "<td>SCCP</td>";
echo "<td>TCAP</td>";
echo "<td>SNMP</td>";
echo "<td>DEBUG</td>";
echo "<td>Refresh Time</td>";
echo "<td>IP Address</td>";
echo "</tr>";
echo "<tr id=\"blank_line\">";
echo "<td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td>";
echo "</tr>";
foreach($config as $key => $val)
{
if(strcmp($key,"PlatSysTypeNo")==0)
{
continue;
}
for($j=0;$j<$config[$key][PlatformNo];$j++)
{
//Rowline
$id=AssignID();
echo "<tr id=\"$id\" style=\"display:none;\">";
//Item Name
echo "<td>{$config[$key][PlatformName]}_{$j}</td>";
//IPTRANS
$id=AssignID();
echo "<td>";
//echo "<a href=\"./plat_status_detail.php?subSysNo=$j&platID={$config[$key][PlatformID]}\">";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//MTP3
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SCCP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//TCAP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SNMP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//DEBUG
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//Refresh Time
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//IP Address
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
echo "</tr>";
}
}
echo "<table>";
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
if($clearAll)
{
echo "<script language=\"JavaScript\">\n";
echo "document.getElementById('blank_line').style.display='';\n";
echo "</script>\n";
}
echo "</form>";
adjust_content_tail();
?>
<script language="JavaScript">
function updateStatus()
{
var fixurl="./plat_general_status_update.php";
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
request_oo = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_oo = new XMLHttpRequest();
}
request_oo.open("GET",fixurl,"false");
request_oo.onreadystatechange=function()
{
checUpdateState();
}
request_oo.send(null);
setTimeout("updateStatus()", 10000);
}
function checUpdateState()
{
//not
if(request_oo.readyState == 3)
{
//alert("not finish");
}
if(request_oo.readyState == 4)
{
var response = request_oo.responseText;
//alert(response);
var module=response.split(';');
//alert("module.length="+module.length);
for(i=0;i<module.length;i++)
{
var items=module[i].split(',');
//alert(items.length);
if(items.length != 4)
continue;
var item_id=items[0].replace(/(^\s*)|(\s*$)/g, "");
var item_state=items[1].replace(/(^\s*)|(\s*$)/g, "");
var item_value=items[2].replace(/(^\s*)|(\s*$)/g, "");
var item_color=items[3].replace(/(^\s*)|(\s*$)/g, "");
//alert("item_id="+item_id+",item_state="+item_state+",item_value="+item_value+",item_color="+item_color);
if(item_state == 'block')
{
document.getElementById(item_id).style.display='';
}
else
{
document.getElementById(item_id).style.display='none';
}
if(item_value != 'none')
{
document.getElementById(item_id).innerHTML=item_value;
}
if(item_color != 'none')
{
document.getElementById(item_id).style.color=item_color;
}
}
}
}
updateStatus();
</script>

View File

@@ -0,0 +1,104 @@
<?php
require("../../inc/lib.inc");
require("../serverStatusImprove/function.inc")
?>
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$total_response="";
$show_num=0;
foreach($config as $key => $val)
{
if(strcmp($key,"PlatSysTypeNo")==0)
{
continue;
}
for($sysNo=0;$sysNo<$config[$key][PlatformNo];$sysNo++)
{
$sql="select * from OMC_PUB.sysInfo where sysTypeNo={$config[PlatSysTypeNo]} and sysNo={$config[$key][PlatformID]} and subSysNo={$sysNo} ";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num == 0)
{
$id=AssignID();
$total_response.="$id,none,none,none;";
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
continue;
}
else
{
$row=@mysqli_fetch_array($res);
$id=AssignID();
$total_response.="$id,block,none,none;";
$platDetailInfo=GetDetailPlatInfo($config[$key][PlatformID],$sysNo,9999);
//IPTRANS
$id=AssignID();
if(strcmp($platDetailInfo[IPTRANS][Status][Value],"--"))
$platDetailInfo[IPTRANS][Status][Value]="<a href=#>".$platDetailInfo[IPTRANS][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[IPTRANS][Status][Value]},{$platDetailInfo[IPTRANS][Status][Color]};";
//MTP3
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[MTP3][Status][Value]},{$platDetailInfo[MTP3][Status][Color]};";
//SCCP
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[SCCP][Status][Value]},{$platDetailInfo[SCCP][Status][Color]};";
//TCAP
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[TCAP][Status][Value]},{$platDetailInfo[TCAP][Status][Color]};";
//SNMP
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[SNMP][Status][Value]},{$platDetailInfo[SNMP][Status][Color]};";
//DEBUG
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[DEBUG][Status][Value]},{$platDetailInfo[DEBUG][Status][Color]};";
//Refresh Time
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[RefreshTime][Value]},{$platDetailInfo[RefreshTime][Color]};";
//IP Address
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[IPAddress][Value]},{$platDetailInfo[IPAddress][Color]};";
$show_num++;
}
}
}
if($show_num)
$total_response.="blank_line,none,none,none;";
else
$total_response.="blank_line,block,none,none;";
debug_log("/tmp/test.txt",$total_response);
echo $total_response;
?>

View File

@@ -0,0 +1,352 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
function GetLabel($pn)
{
switch($pn)
{
case '0':
case 0:
return '';
case '1':
case 1:
return '<27><>';
case '2':
case 2:
return '<27><><EFBFBD><EFBFBD>';
case '3':
case 3:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '4':
case 4:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '5':
case 5:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '6':
case 6:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '7':
case 7:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '8':
case 8:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '9':
case 9:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
case '10':
case 10:
return '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
}
return '';
}
function GetPlatInfo1($qq,$sysNo)
{
$sql="select detailStat from OMC_PUB.sysStat where sysTypeNo=200 and sysNo={$qq} and subSysNo=$sysNo ";
//echo "$sql<br>";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
if($num != 1)
{
return 0;
}
$row=@mysqli_fetch_array($res);
$baseStat=$row[detailStat];
$compStat=substr($baseStat,38);
$compStatLen=strlen($compStat)-1;
//echo "$compStat<br>";
$index=0;
$i=0;
while($i<$compStatLen)
{
$tmp=substr($compStat,$i,4);
$component[$index][ID]=$tmp+0;
$i+=4;
$tmp=substr($compStat,$i,4);
$component[$index][Length]=hexdec($tmp);
$i+=4;
$component[$index][Content]=substr($compStat,$i,$component[$index][Length]*2);
$i+=$component[$index][Length]*2;
$index++;
}
//echo "<pre>";
//print_r($component);
//echo "</pre>";
if($component[8][Length] > 0)
{
$snmp_hb=$component[8][Content];
//echo "{$component[8][Length]}<br>$snmp_hb<br>";
//Start Time
$pos=0;
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$plat[StartTime][Value]=date("Y-m-d H:i:s",$tmpValue);
$plat[StartTime][Color]="#0000ff";
$plat[StartTime][Display]="block";
$pos+=8;
//CPU Use Rate
$tmpValue=100-hexdec(substr($snmp_hb,$pos,2));
$plat[CPURate][Value]="{$tmpValue}%";
$plat[CPURate][Color]="#000000";
$plat[CPURate][Display]="block";
//<2F><><EFBFBD><EFBFBD>
$plat[CPU]=GetLabel(floor($tmpValue/10));
//<2F><><EFBFBD><EFBFBD>
//CPU Use Rate Process Num
$plat[CPURatePN][Value]=floor($tmpValue/10);
$plat[CPURatePN][Color]="#0000ff";
$plat[CPURatePN][Display]="Rect";
$pos+=2;
//Physical Memory Used/Total
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue1=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue2=floor(($tmpValue/$tmpValue1)*100);
$plat[PMTotalRate][Value]="{$tmpValue2}%";
$plat[PMTotalRate][Color]="#000000";
$plat[PMTotalRate][Display]="block";
$plat[PMTotalRateV][Value]=(floor($tmpValue/1024))."M/".(floor($tmpValue1/1024))."M";
$plat[PMTotalRateV][Color]="#000000";
$plat[PMTotalRateV][Display]="block";
$plat[PMTotalRatePN][Value]=floor($tmpValue2/10);
$plat[PMTotalRatePN][Color]="#0000ff";
$plat[PMTotalRatePN][Display]="Rect";
//Physical Memory Used/Swap
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue1=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue2=floor(($tmpValue/$tmpValue1)*100);
$plat[PMSwapRate][Value]="{$tmpValue2}%";
$plat[PMSwapRate][Color]="#000000";
$plat[PMSwapRate][Display]="block";
$plat[PMSwapRateV][Value]=(floor($tmpValue/1024))."M/".(floor($tmpValue1/1024))."M";
$plat[PMSwapRateV][Color]="#000000";
$plat[PMSwapRateV][Display]="block";
$plat[PMSwapRatePN][Value]=floor($tmpValue2/10);
$plat[PMSwapRatePN][Color]="#0000ff";
$plat[PMSwapRatePN][Display]="Rect";
//Physical Memory Buffers
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$plat[PMBuffers][Value]=(floor($tmpValue/1024))."M";
$plat[PMBuffers][Color]="#000000";
$plat[PMBuffers][Display]="block";
//Physical Memory Cached
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$plat[PMCached][Value]=(floor($tmpValue/1024))."M";
$plat[PMCached][Color]="#000000";
$plat[PMCached][Display]="block";
//Harddisk
$tmpValue=hexdec(substr($snmp_hb,$pos,2));
$pos+=2;
$plat[HDNum]=$tmpValue;
for($i=0;$i<$plat[HDNum];$i++)
{
$tmpValue=hexdec(substr($snmp_hb,$pos,2));
$pos+=2;
$path_len=$tmpValue;
$path="";
for($j=0;$j<$path_len;$j++)
{
$path.=chr(hexdec(substr($snmp_hb,$pos,2)));
$pos+=2;
}
$plat[HD][$i][Path][Value]="($path)";
$plat[HD][$i][Path][Color]="#000000";
$plat[HD][$i][Path][Display]="block";
$tmpValue=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue1=hexdec(substr($snmp_hb,$pos,8));
$pos+=8;
$tmpValue2=floor(($tmpValue/$tmpValue1)*100);
$plat[HD][$i][PN][Value]=floor($tmpValue2/10);
$plat[HD][$i][PN][Color]="#0000ff";
$plat[HD][$i][PN][Display]="Rect";
$plat[HD][$i][V][Value]=(floor($tmpValue/1024))."M/".(floor($tmpValue1/1024))."M";
$plat[HD][$i][V][Color]="#000000";
$plat[HD][$i][V][Display]="block";
$plat[HD][$i][Rate][Value]="{$tmpValue2}%";
$plat[HD][$i][Rate][Color]="#000000";
$plat[HD][$i][Rate][Display]="block";
}
}
return $plat;
}
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > PLAT Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
/*
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
*/
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
?>
<?php
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,0);
$plat_status=GetPlatInfo1($sysNo,$subSysNo);
$table_title="<font color=\"#0000FF\">PLAT STATUS information</font>( Version:";
$table_title.="<font color=\"{$platDetailInfo[version][Status][Color]}\">{$platDetailInfo[version][Status][Value]}</font>";
$table_title.=")";
echo "<br><b><center>$table_title</center></b><br>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr >";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\" >Status</td>";
echo "<td align=\"left\" >Y</td>";
//echo "<td>--</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Dual server mode</td>";
echo "<td align=\"left\" color=\"#0000FF\">Single</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Reflash time</td>";
echo "<td align=\"left\" color=\"{$platDetailInfo[RefreshTime][color]}\">{$platDetailInfo[RefreshTime][Value]}</td>";
//echo "<td>--</td>";
echo "</tr>";
//Start Time
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Start time</td>";
echo "<td align=\"left\" color=\"{$plat_status[StartTime][Value]}\">{$plat_status[StartTime][Value]}</td>";
//echo "<td>--</td>";
echo "</tr>";
//CPU Use Rate
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">CPU use rate/Process Num</td>";
echo "<td>";
echo "{$plat_status[CPU]}";
echo "{$plat_status[CPURate][Value]}/{$plat_status[CPURatePN][Value]}</td>";
//echo "<td>--/--</td>";
echo "</tr>";
//CPU Use Rate Process Num
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Physical Memory Used/Total</td>";
echo "<td align=\"left\" color=\"{$plat_status[PMTotalRate][Color]}\">{$plat_status[PMTotalRate][Value]}/ {$plat_status[PMTotalRateV][Value]} / {$plat_status[PMTotalRatePN][Value]}</td>";
//echo "<td>--/--/--</td>";
echo "</tr>";
//Physical Memory Used/Total
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Physical Memory Used/Swap</td>";
echo "<td align=\"left\" color=\"{$plat_status[PMSwapRate][Color]}\">{$plat_status[PMSwapRate][Value]}/{$plat_status[PMSwapRateV][Value]}/{$plat_status[PMSwapRatePN][Value]}</td>";
//echo "<td>--/--/--</td>";
echo "</tr>";
//Physical Memory Used/Swap
echo "<tr>";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Physical Memory Buffers/Cached</td>";
echo "<td align=\"left\" color=\"{$plat_status[PMBuffers][Color]}\">{$plat_status[PMBuffers][Value]}/{$plat_status[PMCached][Value]}</td>";
//echo "<td>--/--/--</td>";
echo "</tr>";
//Harddisk
echo "<tr >";
echo "<td align=\"left\" bgcolor=\"#E6E6E6\" width=\"50%\">Harddisk</td>";
echo "<td align=\"left\" color=\"{$plat_status[PMBuffers][Color]}\">{$plat_status[PMBuffers][Value]}/{$plat_status[PMCached][Value]}</td>";
//echo "<td>--/--/--</td>";
echo "</tr>";
echo "</table>";
?>
<?php
echo "<table border=\"0\" width=\"78%\">";
echo "<tr>";
//echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
?>

View File

@@ -0,0 +1,313 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<script language="JavaScript">
function clearAll()
{
window.location.href="./plat_status.php?clearAll=1";
}
</script>
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > Plat Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
//showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
if(0)
{
echo "config_count=$config_count<br>";
echo "<pre>";
print_r($config);
echo "</pre>";
}
if($clearAll == 1)
{
$sql="delete from OMC_PUB.sysInfo where sysTypeNo=200 ";
@mysqli_query($pubConn,$sql);
echo mysqli_error($pubConn);
}
echo "<br><center><font color=\"blue\">Platform summary information</font></center>";
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td>Item</td>";
echo "<td>Application status</td>";
echo "<td>IPTRANS</td>";
echo "<td>MTP3</td>";
echo "<td>SCCP</td>";
echo "<td>TCAP</td>";
echo "<td>SNMP</td>";
echo "<td>DEBUG</td>";
echo "<td>SMPP</td>";
echo "<td>PLAT STATUS</td>";
echo "<td>Refresh Time</td>";
echo "<td>IP Address</td>";
echo "</tr>";
echo "<tr id=\"blank_line\">";
echo "<td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>--</td><td>Y</td><td>--</td>";
echo "</tr>";
foreach($config as $key => $val)
{
if(strcmp($key,"PlatSysTypeNo")==0)
{
continue;
}
for($j=0;$j<$config[$key][PlatformNo];$j++)
{
//Rowline
$id=AssignID();
echo "<tr id=\"$id\" style=\"display:none;\">";
//Item Name
echo "<td>{$config[$key][PlatformName]}_{$j}</td>";
//Application status
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//IPTRANS
$id=AssignID();
echo "<td>";
//echo "<a href=\"./plat_status_detail.php?subSysNo=$j&platID={$config[$key][PlatformID]}\">";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//MTP3
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SCCP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//TCAP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SNMP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//DEBUG
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//SMPP
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//PLAT STATUS
$id=AssignID();
echo "<td>";
//echo "<a href=\"./plat_status.php?subSysNo=$j&platID={$config[$key][PlatformID]}\">";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</a>";
echo "</td>";
//Refresh Time
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
//IP Address
$id=AssignID();
echo "<td>";
echo "<span id=\"{$id}\" style=\"color:#000000;\">$id</span>";
echo "</td>";
echo "</tr>";
}
}
echo "<table>";
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strClear</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
if($clearAll)
{
echo "<script language=\"JavaScript\">\n";
echo "document.getElementById('blank_line').style.display='';\n";
echo "</script>\n";
}
echo "</form>";
adjust_content_tail();
?>
<script language="JavaScript">
function updateStatus()
{
var fixurl="./plat_test_status_update.php";
var browserr = navigator.appName;
if(browserr == "Microsoft Internet Explorer")
{
request_oo = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
request_oo = new XMLHttpRequest();
}
request_oo.open("GET",fixurl,"false");
request_oo.onreadystatechange=function()
{
checUpdateState();
}
request_oo.send(null);
setTimeout("updateStatus()", 10000);
}
function checUpdateState()
{
//not
if(request_oo.readyState == 3)
{
//alert("not finish");
}
if(request_oo.readyState == 4)
{
var response = request_oo.responseText;
//alert(response);
var module=response.split(';');
//alert("module.length="+module.length);
for(i=0;i<module.length;i++)
{
var items=module[i].split(',');
//alert(items.length);
if(items.length != 4)
continue;
var item_id=items[0].replace(/(^\s*)|(\s*$)/g, "");
var item_state=items[1].replace(/(^\s*)|(\s*$)/g, "");
var item_value=items[2].replace(/(^\s*)|(\s*$)/g, "");
var item_color=items[3].replace(/(^\s*)|(\s*$)/g, "");
//alert("item_id="+item_id+",item_state="+item_state+",item_value="+item_value+",item_color="+item_color);
if(item_state == 'block')
{
document.getElementById(item_id).style.display='';
}
else
{
document.getElementById(item_id).style.display='none';
}
if(item_value != 'none')
{
document.getElementById(item_id).innerHTML=item_value;
}
if(item_color != 'none')
{
document.getElementById(item_id).style.color=item_color;
}
}
}
}
updateStatus();
</script>

View File

@@ -0,0 +1,158 @@
<?php
require("../../inc/lib.inc");
require("../serverStatusImprove/function.inc")
?>
<?php
$global_id=0;
function AssignID()
{
global $global_id;
$id="ID_{$global_id}";
$global_id++;
return $id;
}
?>
<?php
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$total_response="";
$show_num=0;
foreach($config as $key => $val)
{
if(strcmp($key,"PlatSysTypeNo")==0)
{
continue;
}
for($sys=0;$sys<$config[$key][PlatformNo];$sys++)
{
$sql="select * from OMC_PUB.sysInfo where sysTypeNo={$config[PlatSysTypeNo]} and sysNo={$config[$key][PlatformID]} and subSysNo={$sys} ";
$res=mysqli_query($pubConn,$sql);
$num=mysqli_num_rows($res);
// $module_vertion=GetModuleVersion({$config[PlatSysTypeNo]},{$config[$key][PlatformID]},{$sysNo});
if($num == 0)
{
$id=AssignID();
$total_response.="$id,none,none,none;";
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
$id=AssignID();
continue;
}
else
{
$row=@mysqli_fetch_array($res);
$id=AssignID();
$total_response.="$id,block,none,none;";
$platDetailInfo=GetDetailPlatInfo($config[$key][PlatformID],$sys,9999);
$debug_message="GetDetailPlatInfo($config[$key][PlatformID],$sys,9999);<br>";
debug_log("/tmp/test.txt",$debug_message);
//Application status
$id=AssignID();
if(strcmp($platDetailInfo[Application][Status][Value],"--"))
$platDetailInfo[Application][Status][Value]="Y";
$total_response.="$id,block,{$platDetailInfo[Application][Status][Value]},{$platDetailInfo[Application][Status][Color]};";
//IPTRANS
$id=AssignID();
if(strcmp($platDetailInfo[IPTRANS][Status][Value],"--"))
$platDetailInfo[IPTRANS][Status][Value]="<a href=\"./iptrans_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[IPTRANS][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[IPTRANS][Status][Value]},{$platDetailInfo[IPTRANS][Status][Color]};";
//MTP3
$id=AssignID();
if(strcmp($platDetailInfo[MTP3][Status][Value],"--"))
//$platDetailInfo[MTP3][Status][Value]="<a href=\"./mtp3_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[MTP3][Status][Value]."</a>";
$platDetailInfo[MTP3][Status][Value]="<a href=\"../linksetStatus/linksetStatus_show.php\">".$platDetailInfo[MTP3][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[MTP3][Status][Value]},{$platDetailInfo[MTP3][Status][Color]};";
//SCCP
$id=AssignID();
if(strcmp($platDetailInfo[SCCP][Status][Value],"--"))
$platDetailInfo[SCCP][Status][Value]="<a href=\"./sccp_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[SCCP][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[SCCP][Status][Value]},{$platDetailInfo[SCCP][Status][Color]};";
//TCAP
$id=AssignID();
if(strcmp($platDetailInfo[TCAP][Status][Value],"--"))
$platDetailInfo[TCAP][Status][Value]="<a href=\"./tcap_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[TCAP][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[TCAP][Status][Value]},{$platDetailInfo[TCAP][Status][Color]};";
//SNMP
$id=AssignID();
if(strcmp($platDetailInfo[SNMP][Status][Value],"--"))
$platDetailInfo[SNMP][Status][Value]="<a href=\"./snmp_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[SNMP][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[SNMP][Status][Value]},{$platDetailInfo[SNMP][Status][Color]};";
//DEBUG
$id=AssignID();
if(strcmp($platDetailInfo[DEBUG][Status][Value],"--"))
$platDetailInfo[DEBUG][Status][Value]="<a href=\"./tcap_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[DEBUG][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[DEBUG][Status][Value]},{$platDetailInfo[DEBUG][Status][Color]};";
//SMPP
$id=AssignID();
if(strcmp($platDetailInfo[SMPP][Status][Value],"--"))
$platDetailInfo[SMPP][Status][Value]="<a href=\"./smpp_status.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[SMPP][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[SMPP][Status][Value]},{$platDetailInfo[SMPP][Status][Color]};";
//PLAT Status
$id=AssignID();
if(strcmp($platDetailInfo[Application][Status][Value],"--"))
$platDetailInfo[Application][Status][Value]="<a href=\"../create/plat_status_detail.php?sysNo={$config[$key][PlatformID]}&subSysNo=$sys\">".$platDetailInfo[Application][Status][Value]."</a>";
$total_response.="$id,block,{$platDetailInfo[Application][Status][Value]},{$platDetailInfo[SMPP][Status][Color]};";
//Refresh Time
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[RefreshTime][Value]},{$platDetailInfo[RefreshTime][Color]};";
//IP Address
$id=AssignID();
$total_response.="$id,block,{$platDetailInfo[IPAddress][Value]},{$platDetailInfo[IPAddress][Color]};";
$show_num++;
}
}
}
if($show_num)
$total_response.="blank_line,none,none,none;";
else
$total_response.="blank_line,block,none,none;";
debug_log("/tmp/test.txt",$total_response);
echo $total_response;
?>

View File

@@ -0,0 +1,69 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > SCCP Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,2);
$table_title="<font color=\"#0000FF\">SCCP</font>( Version:";
$table_title.="<font color=\"#0000FF\"> {$platDetailInfo[SCCP][Version][Value]}</font>";
$table_title.=",";
$table_title.=" Status:";
$table_title.="<font color=\"{$platDetailInfo[SCCP][Status][Color]}\">{$platDetailInfo[SCCP][Status][Value]}</font>";
$table_title.=",";
$table_title.="RefreshTime:";
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
$table_title.=")";
echo "<br><center><font color=\"blu\">{$table_title}</font></center>";
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</form>";
adjust_content_tail();
?>

View File

@@ -0,0 +1,114 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > SMPP Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,9);
$table_title="<font color=\"#0000FF\">SMPP</font>( ";
$table_title.=" Status:";
$table_title.="<font color=\"{$platDetailInfo[SMPP][Status][Color]}\">{$platDetailInfo[SMPP][Status][Value]}</font>";
$table_title.=",";
$table_title.="RefreshTime:";
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
$table_title.=")";
echo "<br><b><center>$table_title</center></b><br>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "<td align=\"left\" >Port no</td>";
echo "<td align=\"left\" >Status</td>";
echo "</tr>";
for($i=0;$i<8;$i++)
{
echo "<tr>";
for($j=0;$j<4;$j++)
{
$dis_no=($j)*8+$i;
echo "<td>";
echo $dis_no;
echo "</td>";
echo "<td>";
$dis_port=($j)*8+$i;
//echo "$dis_port";
echo "{$platDetailInfo[SMPP][SMPPLink][$dis_port][Value]}";
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
?>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">0</font> = Not initializing , <font color=\"red\">1</font> = Idle, <font color=\"red\">2</font> = Waiting, <font color=\"red\">3</font> =Established.";
echo "</td>";
//echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
?>

View File

@@ -0,0 +1,105 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > SNMP Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,4);
$table_title="<font color=\"#0000FF\">SNMP</font>( Version:";
$table_title.="<font color=\"#0000FF\"> {$platDetailInfo[SNMP][Version][Value]}</font>";
$table_title.=",";
$table_title.=" Status:";
$table_title.="<font color=\"{$platDetailInfo[SNMP][Status][Color]}\">{$platDetailInfo[SNMP][Status][Value]}</font>";
$table_title.=",";
$table_title.="RefreshTime:";
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
$table_title.=")";
echo "<br><b><center>$table_title</center></b>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"left\" >Function type</td>";
echo "<td align=\"left\" >Registered number</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" >TARP</td>";
echo "<td align=\"left\"><font color=\"$platDetailInfo[SNMP][TrapFuncCount][Value]\">{$platDetailInfo[SNMP][TrapFuncCount][Value]}</font></td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" >SET</td>";
echo "<td align=\"left\"><font color=\"$platDetailInfo[SNMP][SetFuncCount][Value]\">{$platDetailInfo[SNMP][SetFuncCount][Value]}</font></td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" >GET</td>";
echo "<td align=\"left\"><font color=\"$platDetailInfo[SNMP][GetFuncCount][Value]\">{$platDetailInfo[SNMP][GetFuncCount][Value]}</font></td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"left\" >RSP</td>";
echo "<td align=\"left\"><font color=\"$platDetailInfo[SNMP][RspFuncCount][Value]\">{$platDetailInfo[SNMP][RspFuncCount][Value]}</font></td>";
echo "</tr>";
echo "<br>";
?>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\" align=\"left\">";
echo "Remarks: <font color=\"blue\">Y</font> = Normal, <font color=\"red\">N</font> = Abnormal, -- = None.";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
?>

View File

@@ -0,0 +1,109 @@
<?php
require("../../inc/header.inc");
require("../serverStatusImprove/function.inc");
?>
<?php
adjust_head();
adjust_title_head();
echo "<FORM NAME=\"downForm\" action=\"./server_status.php\" method=\"post\">";
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
echo "<tr>";
echo "<td width=\"50%\">";
echo "Advanced > TCAP Status";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
showHelp($helpId);
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td width=\"50%\">";
echo "&nbsp;";
echo "</td>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
//echo "<a href=# onClick=\"javascript:clearAll();\"><img align=absBottom border=0 src=\"../../images/delete.gif\" width=\"14\" height=\"14\">$strBlack</a>";
echo "<a target=\"back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
adjust_title_tail();
adjust_content_head();
$config=parse_ini_file("../platStatus/config.ini",true);
$config_count=sizeof($config);
$platDetailInfo=GetDetailPlatInfo($sysNo,$subSysNo,3);
$table_title="<font color=\"#0000FF\">TCAP</font>( Version:";
$table_title.="<font color=\"#0000FF\"> {$platDetailInfo[TCAP][Version][Value]}</font>";
$table_title.=",";
$table_title.=" Status:";
$table_title.="<font color=\"{$platDetailInfo[TCAP][Status][Color]}\">{$platDetailInfo[TCAP][Status][Value]}</font>";
$table_title.=",";
$table_title.="RefreshTime:";
$table_title.="<font color=\"{$platDetailInfo[RefreshTime][Color]}\">{$platDetailInfo[RefreshTime][Value]}</font>";
$table_title.=")";
echo "<br><b><center>$table_title</center></b><br>";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#FFFFFF\">";
echo "<tr bgcolor=\"#E6E6E6\">";
echo "<td align=\"left\" >Current Used Dialogue ID</td>";
echo "<td align=\"left\" >Max Used Dialogue ID</td>";
echo "</tr>";
if(strcmp($platDetailInfo[TCAP][Status][Value],"--"))
{
echo "<tr>";
echo "<td>";
echo "<font color=\"{$platDetailInfo[TCAP][CurrentUsedDialogueID][Color]}\">{$platDetailInfo[TCAP][CurrentUsedDialogueID][Value]}</font>";
echo "</td>";
echo "<td>";
echo "<font color=\"{$platDetailInfo[TCAP][MaxUsedDialogueID][Color]}\">{$platDetailInfo[TCAP][MaxUsedDialogueID][Value]}</font>";
echo "</td>";
echo "</tr>";
}
else
{
echo "<tr>";
echo "<td>--</td> ";
echo "<td>--</td> ";
echo "</tr>";
}
echo "</table>";
?>
<?php
echo "<table border=\"0\" width=\"100%\">";
echo "<tr>";
//echo "<a target=\"_parent\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "<td width=\"50%\" align=\"right\" title=\"back\">";
echo "<a target=\"Back\" href=\"./plat_test_status.php?\"><img src=\"../../images/left.gif\" border=0></img>back</a>";
echo "</td>";
echo "</tr>";
echo "</table>";
?>