init web ems all
This commit is contained in:
172
wxc2_omc/performance/improveCsta_bak/conf/erlang.conf
Executable file
172
wxc2_omc/performance/improveCsta_bak/conf/erlang.conf
Executable file
@@ -0,0 +1,172 @@
|
||||
[All]
|
||||
Title="Performance > MSC > Erlang"
|
||||
SubTitle="Customize the statistic condition for Erlang"
|
||||
HelpID=1.2.2
|
||||
MaxInterval=30
|
||||
|
||||
MainConditionCount=3
|
||||
MainConditionListName=MainConditionList
|
||||
|
||||
SubConditionCount=12
|
||||
SubConditionListName=SubConditionList
|
||||
|
||||
[MainConditionList]
|
||||
0=TypeCondition
|
||||
1=IntervalCondition
|
||||
2=MergeCondition
|
||||
|
||||
[SubConditionList]
|
||||
0=SubSubCondition
|
||||
1=SubTrkCondition
|
||||
2=TrkSubCondition
|
||||
3=TrkIPCondition
|
||||
4=TrkTrkCondition
|
||||
5=IntraCondition
|
||||
6=SubIPCondition
|
||||
7=IPCondition
|
||||
8=MOCondition
|
||||
9=MTCondition
|
||||
10=InTrkCondition
|
||||
11=OutTrkCondition
|
||||
|
||||
[TypeCondition]
|
||||
Flag=enable
|
||||
Type=select
|
||||
ShowName=Type
|
||||
Define=TypeConditionSelect
|
||||
|
||||
[TypeConditionSelect]
|
||||
DefaultValue=0
|
||||
ValueCount=2
|
||||
0=Service
|
||||
1=Trunk Group
|
||||
|
||||
[IntervalCondition]
|
||||
Flag=enable
|
||||
Type=select
|
||||
ShowName=Interval
|
||||
Define=IntervalConditionSelect
|
||||
|
||||
[IntervalConditionSelect]
|
||||
DefaultValue=0
|
||||
ValueCount=2
|
||||
0=Daily
|
||||
1=Hourly
|
||||
|
||||
[MergeCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=Merge
|
||||
Define=MergeConditionCheckbox
|
||||
|
||||
[MergeConditionCheckbox]
|
||||
DefaultValue=1
|
||||
|
||||
[SubSubCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=SUB SUB
|
||||
Define=SubSubConditionCheckbox
|
||||
|
||||
[SubSubConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[SubTrkCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=SUB TRK
|
||||
Define=SubTrkConditionCheckbox
|
||||
|
||||
[SubTrkConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[TrkSubCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=TRK SUB
|
||||
Define=TrkSubConditionCheckbox
|
||||
|
||||
[TrkSubConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[TrkIPCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=TRK IP
|
||||
Define=TrkIPConditionCheckbox
|
||||
|
||||
[TrkIPConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[TrkTrkCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=TRK TRK
|
||||
Define=TrkTrkConditionCheckbox
|
||||
|
||||
[TrkTrkConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[IntraCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=INTRA
|
||||
Define=IntraConditionCheckbox
|
||||
|
||||
[IntraConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[SubIPCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=SUB IP
|
||||
Define=SubIPConditionCheckbox
|
||||
|
||||
[SubIPConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[IPCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=IP
|
||||
Define=IPConditionCheckbox
|
||||
|
||||
[IPConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[MOCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=MO
|
||||
Define=MOConditionCheckbox
|
||||
|
||||
[MOConditionCheckbox]
|
||||
DefaultValue=1
|
||||
|
||||
[MTCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=MT
|
||||
Define=MTConditionCheckbox
|
||||
|
||||
[MTConditionCheckbox]
|
||||
DefaultValue=1
|
||||
|
||||
[InTrkCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=IN TRK
|
||||
Define=InTrkConditionCheckbox
|
||||
|
||||
[InTrkConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
[OutTrkCondition]
|
||||
Flag=enable
|
||||
Type=checkbox
|
||||
ShowName=OUT TRK
|
||||
Define=OutTrkConditionCheckbox
|
||||
|
||||
[OutTrkConditionCheckbox]
|
||||
DefaultValue=0
|
||||
|
||||
177
wxc2_omc/performance/improveCsta_bak/csta_condition.php
Executable file
177
wxc2_omc/performance/improveCsta_bak/csta_condition.php
Executable file
@@ -0,0 +1,177 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
require("./function.inc");
|
||||
?>
|
||||
<script language="javascript">
|
||||
|
||||
</script>
|
||||
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
<?php
|
||||
$configuration=parse_ini_file($conf,true);
|
||||
|
||||
|
||||
adjust_head();
|
||||
|
||||
adjust_title_head();
|
||||
echo "<form name=\"myform\" action=\"csta_result.php\" method=\"post\">";
|
||||
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "{$configuration[All][Title]}";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($configuration[All][HelpID]);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
adjust_title_tail();
|
||||
adjust_content_head();
|
||||
|
||||
echo "<br>{$configuration[All][SubTitle]}<br><br>";
|
||||
|
||||
if(0)
|
||||
{
|
||||
echo "<pre>";
|
||||
print_r($configuration);
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
|
||||
echo "<table border=\"1\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" bordercolor=\"#666666\" bordercolordark=\"#FFFFFF\" bgcolor=\"#ffffff\">";
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
for($i=0;$i<$configuration[All][MainConditionCount];$i++)
|
||||
{
|
||||
echo "<td>";
|
||||
|
||||
$mainname=$configuration[All][MainConditionListName];
|
||||
$ctlname=$configuration[$mainname][$i];
|
||||
$definename=$configuration[$ctlname][Define];
|
||||
if(strcasecmp($configuration[$ctlname][Flag],"enable") == 0)
|
||||
{
|
||||
if(strcasecmp($configuration[$ctlname][Type],"select") == 0)
|
||||
{
|
||||
$default=$configuration[$definename][DefaultValue];
|
||||
$valuecount=$configuration[$definename][ValueCount];
|
||||
echo "{$configuration[$ctlname][ShowName]} ";
|
||||
echo "<select name=\"{$ctlname}\">";
|
||||
for($v=0;$v<$valuecount;$v++)
|
||||
{
|
||||
echo "<option value={$v}";
|
||||
if($v == $default)
|
||||
echo " selected";
|
||||
echo ">{$configuration[$definename][$v]}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
}
|
||||
else if(strcasecmp($configuration[$ctlname][Type],"checkbox") == 0)
|
||||
{
|
||||
$default=$configuration[$definename][DefaultValue];
|
||||
echo "<input type=\"checkbox\" name=\"$ctlname\"";
|
||||
if($default == 1)
|
||||
echo " checked";
|
||||
echo ">";
|
||||
echo "{$configuration[$ctlname][ShowName]}";
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
}
|
||||
|
||||
|
||||
echo "<td align=\"center\">";
|
||||
echo "Start Time ";
|
||||
echo "<select>";
|
||||
for($i=0;$i<$configuration[All][MaxInterval];$i++)
|
||||
{
|
||||
$timestr=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<option value={$i}>{$timestr}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td>";
|
||||
|
||||
|
||||
echo "<td align=\"center\">";
|
||||
echo "End Time ";
|
||||
echo "<select>";
|
||||
for($i=0;$i<$configuration[All][MaxInterval];$i++)
|
||||
{
|
||||
$timestr=date("Y-m-d",mktime(0,0,0,date("m"),date("d")-$i,date("Y")));
|
||||
echo "<option value={$i}>{$timestr}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td>";
|
||||
|
||||
|
||||
echo "<td align=\"right\">";
|
||||
echo "<input type=submit value=\"Search\" class=button>";
|
||||
echo "</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td colspan=".($configuration[All][MainConditionCount]+3).">";
|
||||
|
||||
echo "<table border=0 width=100%>";
|
||||
for($i=0;$i<$configuration[All][SubConditionCount];$i++)
|
||||
{
|
||||
if($i%4 == 0)
|
||||
echo "<tr>";
|
||||
|
||||
|
||||
$mainname=$configuration[All][SubConditionListName];
|
||||
$ctlname=$configuration[$mainname][$i];
|
||||
$definename=$configuration[$ctlname][Define];
|
||||
if(strcasecmp($configuration[$ctlname][Flag],"enable") == 0)
|
||||
{
|
||||
echo "<td>";
|
||||
if(strcasecmp($configuration[$ctlname][Type],"select") == 0)
|
||||
{
|
||||
$default=$configuration[$definename][DefaultValue];
|
||||
$valuecount=$configuration[$definename][ValueCount];
|
||||
echo "{$configuration[$ctlname][ShowName]} ";
|
||||
echo "<select name=\"{$ctlname}\">";
|
||||
for($v=0;$v<$valuecount;$v++)
|
||||
{
|
||||
echo "<option value={$v}";
|
||||
if($v == $default)
|
||||
echo " selected";
|
||||
echo ">{$configuration[$definename][$v]}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
}
|
||||
else if(strcasecmp($configuration[$ctlname][Type],"checkbox") == 0)
|
||||
{
|
||||
$default=$configuration[$definename][DefaultValue];
|
||||
echo "<input type=\"checkbox\" name=\"$ctlname\"";
|
||||
if($default == 1)
|
||||
echo " checked";
|
||||
echo ">";
|
||||
echo "{$configuration[$ctlname][ShowName]}";
|
||||
}
|
||||
echo "</td>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "</table>";
|
||||
|
||||
echo "<input type=hidden name=conf value=\"{$conf}\">";
|
||||
|
||||
echo "</form>";
|
||||
adjust_content_tail();
|
||||
?>
|
||||
|
||||
72
wxc2_omc/performance/improveCsta_bak/csta_result.php
Executable file
72
wxc2_omc/performance/improveCsta_bak/csta_result.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
require("../../inc/header.inc");
|
||||
require("./function.inc");
|
||||
?>
|
||||
<script language="javascript">
|
||||
|
||||
</script>
|
||||
|
||||
<body onload="javascript:adjust();" onresize="javascript:adjust();" leftmargin="15" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;">
|
||||
<?php
|
||||
$configuration=parse_ini_file($conf,true);
|
||||
|
||||
|
||||
adjust_head();
|
||||
|
||||
adjust_title_head();
|
||||
echo "<form name=\"myform\" action=\"csta_result.php\" method=\"post\">";
|
||||
echo "<table id=\"table_up\" border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo "{$configuration[All][Title]}";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($configuration[All][HelpID]);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\">";
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Clear\">";
|
||||
echo " ";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
adjust_title_tail();
|
||||
adjust_content_head();
|
||||
|
||||
echo "<br>{$configuration[All][SubTitle]}<br><br>";
|
||||
|
||||
if(0)
|
||||
{
|
||||
echo "<pre>";
|
||||
print_r($configuration);
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
if(1)
|
||||
{
|
||||
$maincondcount=$configuration[All][MainConditionCount];
|
||||
$maincondname=$configuration[All][MainConditionListName];
|
||||
for($i=0;$i<$maincondcount;$i++)
|
||||
{
|
||||
$name=$configuration[$maincondname][$i];
|
||||
$value=$$name;
|
||||
echo "{$configuration[$maincondname][$i]}={$value}<br>";
|
||||
}
|
||||
|
||||
$maincondcount=$configuration[All][SubConditionCount];
|
||||
$maincondname=$configuration[All][SubConditionListName];
|
||||
for($i=0;$i<$maincondcount;$i++)
|
||||
{
|
||||
$name=$configuration[$maincondname][$i];
|
||||
$value=$$name;
|
||||
echo "{$configuration[$maincondname][$i]}={$value}<br>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo "</form>";
|
||||
adjust_content_tail();
|
||||
?>
|
||||
3
wxc2_omc/performance/improveCsta_bak/function.inc
Executable file
3
wxc2_omc/performance/improveCsta_bak/function.inc
Executable file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user