init web ems all
This commit is contained in:
39
wxc2_omc/configuration/nibConf/beforeClearSubs
Executable file
39
wxc2_omc/configuration/nibConf/beforeClearSubs
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
tmptty=`tty`
|
||||
tmptty=`basename $tmptty`
|
||||
tmpname=`whoami`
|
||||
ip="$1"
|
||||
inp1="ems
|
||||
"
|
||||
inp2="Ems123!
|
||||
"
|
||||
|
||||
inputfile="inabc"
|
||||
outputfile="out.log"
|
||||
delbak="rm -f /usr/local/backup/*"
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
mknod $inputfile p
|
||||
touch $outputfile
|
||||
|
||||
exec 7<>$outputfile
|
||||
exec 8<>$inputfile
|
||||
|
||||
telnet $ip <&8 >&7 &
|
||||
sleep 2; echo $inp1 >>$inputfile
|
||||
sleep 2; echo $inp2 >>$inputfile
|
||||
|
||||
#tail -f $outputfile &
|
||||
|
||||
sleep 3; echo "su -" >>$inputfile
|
||||
sleep 2; echo "rootaa" >>$inputfile
|
||||
sleep 2; echo "wxc2d stop" >>$inputfile
|
||||
sleep 2; echo $delbak >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
|
||||
46
wxc2_omc/configuration/nibConf/beforeFtp
Executable file
46
wxc2_omc/configuration/nibConf/beforeFtp
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
tmptty=`tty`
|
||||
tmptty=`basename $tmptty`
|
||||
tmpname=`whoami`
|
||||
ip="$1"
|
||||
inp1="ems
|
||||
"
|
||||
inp2="Ems123!
|
||||
"
|
||||
|
||||
inputfile="inabc"
|
||||
outputfile="out.log"
|
||||
|
||||
chmodbak_0="chmod -R 777 /usr/local/backup/"
|
||||
chmodbak="chmod -R 666 /usr/local/backup/*"
|
||||
chmodcnf_0="chmod -R 777 /usr/local/wxc2/bin/conf/"
|
||||
chmodcnf="chmod -R 666 /usr/local/wxc2/bin/conf/*"
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
mknod $inputfile p
|
||||
touch $outputfile
|
||||
|
||||
exec 7<>$outputfile
|
||||
exec 8<>$inputfile
|
||||
|
||||
telnet $ip <&8 >&7 &
|
||||
sleep 2; echo $inp1 >>$inputfile
|
||||
sleep 2; echo $inp2 >>$inputfile
|
||||
|
||||
#tail -f $outputfile &
|
||||
|
||||
sleep 3; echo "su -" >>$inputfile
|
||||
sleep 2; echo "rootaa" >>$inputfile
|
||||
sleep 2; echo "wxc2d stop" >>$inputfile
|
||||
sleep 2; echo $chmodbak_0 >>$inputfile
|
||||
sleep 2; echo $chmodbak >>$inputfile
|
||||
sleep 2; echo $chmodcnf_0 >>$inputfile
|
||||
sleep 2; echo $chmodcnf >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
|
||||
BIN
wxc2_omc/configuration/nibConf/bssPara/BssGb.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/BssGb.db
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/bssPara/abis.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/abis.db
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/bssPara/aifadmin.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/aifadmin.db
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/bssPara/bscadmin.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/bscadmin.db
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/bssPara/calltrc.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/calltrc.db
Executable file
Binary file not shown.
0
wxc2_omc/configuration/nibConf/bssPara/frmgr.db
Executable file
0
wxc2_omc/configuration/nibConf/bssPara/frmgr.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/sysmon.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/sysmon.db
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/bssPara/trkadmin.db
Executable file
BIN
wxc2_omc/configuration/nibConf/bssPara/trkadmin.db
Executable file
Binary file not shown.
30
wxc2_omc/configuration/nibConf/bssReboot
Executable file
30
wxc2_omc/configuration/nibConf/bssReboot
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
tmptty=`tty`
|
||||
tmptty=`basename $tmptty`
|
||||
tmpname=`whoami`
|
||||
ip="$1"
|
||||
|
||||
inputfile="inabc"
|
||||
outputfile="out.log"
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
mknod $inputfile p
|
||||
touch $outputfile
|
||||
|
||||
exec 7<>$outputfile
|
||||
exec 8<>$inputfile
|
||||
|
||||
telnet $ip <&8 >&7 &
|
||||
|
||||
#tail -f $outputfile &
|
||||
|
||||
sleep 2; echo "reboot" >>$inputfile
|
||||
sleep 2; echo "logout" >>$inputfile
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
|
||||
#ps -ef | grep telnet | grep -v grep | grep -v telnetd | grep $tmptty | grep $tmpname | awk '{print " kill -9", }' | sh
|
||||
#ps -ef | grep tail | grep -v grep | grep -v telnetd | grep $tmptty | grep $tmpname | awk '{print " kill -9", }' | sh
|
||||
0
wxc2_omc/configuration/nibConf/cfg
Executable file
0
wxc2_omc/configuration/nibConf/cfg
Executable file
634
wxc2_omc/configuration/nibConf/configureForBss.php
Executable file
634
wxc2_omc/configuration/nibConf/configureForBss.php
Executable file
@@ -0,0 +1,634 @@
|
||||
<?php
|
||||
$pubDb = 'OMC_PUB';
|
||||
$imsiStart=$mcc.$mnc.$msinStart;
|
||||
$imsiEnd=$mcc.$mnc.$msinEnd;
|
||||
$msisdnStart=$cc.$ndc.$snStart;
|
||||
$msisdnEnd=$cc.$ndc.$snEnd;
|
||||
?>
|
||||
|
||||
<?php
|
||||
//configure local node
|
||||
$selSql = "SELECT * FROM OBJ_223.param_99
|
||||
WHERE level_1='2' AND level_2='1'
|
||||
ORDER BY level_3";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
$tmpSn=$snStart;
|
||||
while($selRows=mysqli_fetch_array($selResult)){
|
||||
$localNodeMsisdn=$cc.$ndc.$tmpSn;
|
||||
$localNodeMsisdn=omc_keep_length($localNodeMsisdn,'F',20,0);
|
||||
if($selRows[level_3]==4||$selRows[level_3]==21)
|
||||
$localNode='02'.$localNodeMsisdn.'AC128001'.'FFFFFFFF';
|
||||
else
|
||||
$localNode='02'.$localNodeMsisdn.'AC126201'.'FFFFFFFF';
|
||||
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='$localNode',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='$selRows[level_3]'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
$tmpSn++;
|
||||
}
|
||||
|
||||
//hlr gtt
|
||||
//imsi
|
||||
//01064600200000000000FFFF4600299999999990FFFF03000064060107000000FFFFFFFFFFFFFFFFFFFF
|
||||
$gtt='0106';
|
||||
$tmpImsiStart=omc_keep_length($imsiStart,'F',20,0);
|
||||
$gtt=$gtt.$tmpImsiStart;
|
||||
$tmpImsiEnd=omc_keep_length($imsiEnd,'F',20,0);
|
||||
$gtt=$gtt.$tmpImsiEnd;
|
||||
$gtt=$gtt.'03000064060007000000FFFFFFFFFFFFFFFFFFFF';
|
||||
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='$gtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//hlr gtt
|
||||
//msisdn
|
||||
//0101867559000000FFFFFFFF86755999999FFFFFFFFF03000064060107000000FFFFFFFFFFFFFFFFFFFF
|
||||
if($msrnStart>$msisdnStart+20){
|
||||
$gtt='0101';
|
||||
$tmpMsisdnStart=$msisdnStart+20;
|
||||
$tmpMsisdnStart=omc_keep_length($tmpMsisdnStart,'F',20,0);
|
||||
$gtt=$gtt.$tmpMsisdnStart;
|
||||
$tmpMsisdnEnd=$msrnStart-1;
|
||||
$tmpMsisdnEnd=omc_keep_length($tmpMsisdnEnd,'F',20,0);
|
||||
$gtt=$gtt.$tmpMsisdnEnd;
|
||||
$gtt=$gtt.'03000064060007000000FFFFFFFFFFFFFFFFFFFF';
|
||||
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='$gtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='1'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
}else{
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000FFFFFFFFFFFFFFFFFFFF',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='1'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
}
|
||||
|
||||
if($msrnEnd<$msisdnEnd){
|
||||
|
||||
$gtt='0101';
|
||||
$tmpMsisdnStart=$msrnEnd+1;
|
||||
$tmpMsisdnStart=omc_keep_length($tmpMsisdnStart,'F',20,0);
|
||||
$gtt=$gtt.$tmpMsisdnStart;
|
||||
$tmpMsisdnEnd=omc_keep_length($msisdnEnd,'F',20,0);
|
||||
$gtt=$gtt.$tmpMsisdnEnd;
|
||||
$gtt=$gtt.'03000064060007000000FFFFFFFFFFFFFFFFFFFF';
|
||||
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='$gtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='2'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
}else{
|
||||
$updateSql="UPDATE OBJ_223.param_99 SET initValue='0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000FFFFFFFFFFFFFFFFFFFF',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='2'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
}
|
||||
|
||||
|
||||
//xapp parameters
|
||||
//mcc
|
||||
$tmpMcc=omc_keep_length($mcc,'E',4,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpMcc',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//mnc
|
||||
$tmpMnc=omc_keep_length($mnc,'E',4,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpMnc',readValue=''
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//cc
|
||||
$tmpCc=omc_keep_length($cc,'E',4,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpCc',readValue=''
|
||||
WHERE level_1='2' AND level_2='3' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//ndc
|
||||
$tmpNdc=omc_keep_length($ndc,'E',6,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpNdc',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//international prefix
|
||||
$tmpInternationalPrefix=omc_keep_length($internationalPrefix,'E',4,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpInternationalPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='5' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//national prefix
|
||||
$tmpNationalPrefix=omc_keep_length($nationalPrefix,'E',4,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpNationalPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='6' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//VLR parameters
|
||||
//MSRN
|
||||
$msrn=omc_keep_length($msrnStart,'F',16,0).omc_keep_length($msrnEnd,'F',16,0);
|
||||
$updateSql="UPDATE OBJ_325.param_99 SET initValue='$msrn',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='13' AND instanceNo='0'";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
//SMSC parameters
|
||||
//MSISDN
|
||||
$tmpMsisdnStart=$msisdnStart+20;
|
||||
$tmpMsisdnEnd=$msrnStart-1;
|
||||
$tmpMsisdn=omc_keep_length($tmpMsisdnStart,'E',18,0).omc_keep_length($tmpMsisdnEnd,'E',18,0);
|
||||
$updateSql="UPDATE OBJ_350.param_99 SET initValue='$tmpMsisdn',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$tmpMsisdnStart=$msrnEnd+1;
|
||||
|
||||
$tmpMsisdn=omc_keep_length($tmpMsisdnStart,'E',18,0).omc_keep_length($msisdnEnd,'E',18,0);
|
||||
$updateSql="UPDATE OBJ_350.param_99 SET initValue='$tmpMsisdn',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='1'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
/**************MSC Prefix*********************************/
|
||||
//MSC-MSRN-Prefix
|
||||
$tmpMsrn='';
|
||||
for($i=0;$i<strlen($msrnStart);$i++){
|
||||
if($msrnStart[$i]!=$msrnEnd[$i])
|
||||
break;
|
||||
$tmpMsrn=$tmpMsrn.$msrnStart[$i];
|
||||
}
|
||||
|
||||
$tmpMsrn=omc_keep_length($tmpMsrn,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpMsrn',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='4400EEEEEEEEEEEEEEEE890000EEEEEEEE030100',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
//MSC-SN-Prefix
|
||||
$sn='';
|
||||
for($i=0;$i<strlen($snStart);$i++){
|
||||
if($snStart[$i]!=$snEnd[$i])
|
||||
break;
|
||||
$sn=$sn.$snStart[$i];
|
||||
}
|
||||
|
||||
$tmpPrefix=omc_keep_length($sn,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='1'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$tmpPrefixAtt='42';
|
||||
$tmpCcNdc=$cc.$ndc;
|
||||
$tmpInsertCount=dechex(strlen($tmpCcNdc));
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpInsertCount.'0'.omc_keep_length($tmpCcNdc,'E',16,0).'8500'.$tmpInsertCount.'0'.omc_keep_length($tmpCcNdc,'E',8,0).'030100';
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='1'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
//MSC-(National Prefix+NDC+SN)-Prefix
|
||||
$tmpPrefix=$nationalPrefix.$ndc.$sn;
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='2'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$tmpPrefixAtt='42';
|
||||
$tmpInsertCount=dechex(strlen($cc));
|
||||
$tmpDeleteCount=dechex(strlen($nationalPrefix));
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpInsertCount.$tmpDeleteCount.omc_keep_length($cc,'E',16,0).'8500'.$tmpInsertCount.$tmpDeleteCount.omc_keep_length($cc,'E',8,0).'030100';
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='2'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//MSC-(Internatioanal prefix+CC+NDC+SN)-Prefix
|
||||
$tmpPrefix=$internationalPrefix.$cc.$ndc.$sn;
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='3'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$tmpDeleteCount=dechex(strlen($internationalPrefix));
|
||||
$tmpPrefixAtt='42'.'0'.$tmpDeleteCount.'EEEEEEEEEEEEEEEE'.'8500'.'0'.$tmpDeleteCount.'EEEEEEEE'.'030100';
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='3'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//MSC-(NDC+SN)-Prefix
|
||||
$tmpPrefix=$ndc.$sn;
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='4'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$tmpPrefixAtt='42';
|
||||
$tmpInsertCount=dechex(strlen($cc));
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpInsertCount.'0'.omc_keep_length($cc,'E',16,0).'8500'.$tmpInsertCount.'0'.omc_keep_length($cc,'E',8,0).'030100';
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='4'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//MSC-(CC+NDC+SN)-Prefix
|
||||
$tmpPrefix=$cc.$ndc.$sn;
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'E',16,0);
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='5'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='4400EEEEEEEEEEEEEEEE850000EEEEEEEE020100',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='5'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
/**************MSC Prefix END*********************************/
|
||||
|
||||
|
||||
/**************XAPP-Conv Prefix *********************************/
|
||||
//XAPP-Conv-SN-Prefix
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($sn);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($sn[i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpInsertCount=omc_keep_length(dechex(strlen($tmpCcNdc)),'0',2);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefix.'00'.$tmpInsertCount;
|
||||
|
||||
$tmpPrefix='';
|
||||
$tmpCcNdc=$cc.$ndc;
|
||||
for($i=0;$i<strlen($tmpCcNdc);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpCcNdc[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpPrefix.'00';
|
||||
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='8' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//XAPP-Conv-(National Prefix+NDC+SN)-Prefix
|
||||
$tmpValue=$nationalPrefix.$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpDeleteCount=omc_keep_length(dechex(strlen($nationalPrefix)),'0',2);
|
||||
$tmpInsertCount=omc_keep_length(dechex(strlen($cc)),'0',2);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefix.$tmpDeleteCount.$tmpInsertCount;
|
||||
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($cc);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($cc[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpPrefix.'00';
|
||||
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='8' AND instanceNo='1'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//XAPP-Conv-(Internatioanal prefix+CC+NDC+SN)-Prefix
|
||||
$tmpValue=$internationalPrefix.$cc.$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpDeleteCount=omc_keep_length(dechex(strlen($internationalPrefix)),'0',2);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefix.$tmpDeleteCount.'00'.'00000000000000000000000000000000'.'00';
|
||||
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='8' AND instanceNo='2'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//XAPP-Conv-(NDC+SN)-Prefix
|
||||
$tmpValue=$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpInsertCount=omc_keep_length(dechex(strlen($cc)),'0',2);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefix.'00'.$tmpInsertCount;
|
||||
|
||||
$tmpPrefix='';
|
||||
|
||||
for($i=0;$i<strlen($cc);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($cc[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpPrefix.'00';
|
||||
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='8' AND instanceNo='3'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//XAPP-Conv-(CC+NDC+SN)-Prefix
|
||||
$tmpValue=$cc.$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpPrefixAtt=omc_keep_length($tmpPrefix,'0',70,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='8' AND instanceNo='4'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
/**************XAPP-Conv Prefix END*********************************/
|
||||
|
||||
/**************XAPP-CLI-Conv Prefix *********************************/
|
||||
//XAPP-CLI-Conv-(CC+NDC+SN)-Prefix
|
||||
$tmpValue=$cc.$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpValue=$cc.$ndc;
|
||||
$tmpDeleteCount=omc_keep_length(dechex(strlen($tmpValue)),'0',2);
|
||||
|
||||
$tmpPrefixAtt='01'.$tmpPrefix.$tmpDeleteCount.'03';
|
||||
$tmpPrefixAtt=omc_keep_length($tmpPrefixAtt,'0',74,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='9' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//XAPP-CLI-Conv-(International Prefix+CC+NDC+SN)-Prefix
|
||||
$tmpValue=$internationalPrefix.$cc.$ndc.$sn;
|
||||
$tmpPrefix='';
|
||||
for($i=0;$i<strlen($tmpValue);$i++)
|
||||
$tmpPrefix=$tmpPrefix.omc_keep_length(dechex(ord($tmpValue[$i])),'0',2);
|
||||
$tmpPrefix=omc_keep_length($tmpPrefix,'0',32,0);
|
||||
|
||||
$tmpValue=$internationalPrefix.$cc.$ndc;
|
||||
$tmpDeleteCount=omc_keep_length(dechex(strlen($tmpValue)),'0',2);
|
||||
|
||||
$tmpPrefixAtt='01'.$tmpPrefix.$tmpDeleteCount.'03';
|
||||
$tmpPrefixAtt=omc_keep_length($tmpPrefixAtt,'0',74,0);
|
||||
$updateSql="UPDATE OBJ_225.param_99 SET initValue='$tmpPrefixAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='9' AND instanceNo='1'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
/**************XAPP-CLI-Conv Prefix END*********************************/
|
||||
|
||||
/*************************************clear PSTN loopback******************/
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='EEEEEEEEEEEEEEEE',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='2200EEEEEEEEEEEEEEEE010800EEEEEEEE030000',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
$setForBssArr=array(
|
||||
array('remark' => 'SCCP parameters','sysTypeNo' => '223','sysId' => '223_99_99', 'oid' => '2'),
|
||||
array('remark' => 'XAPP parameters','sysTypeNo' => '225','sysId' => '225_99_99', 'oid' => '2'),
|
||||
array('remark' => 'MSC parameters','sysTypeNo' => '322','sysId' => '322_99_99', 'oid' => '2.1'),
|
||||
array('remark' => 'VLR parameters','sysTypeNo' => '325','sysId' => '325_99_99', 'oid' => '2.1.13'),
|
||||
array('remark' => 'SMSC parameters','sysTypeNo' => '350','sysId' => '350_99_99', 'oid' => '2.1.4')
|
||||
);
|
||||
|
||||
//send set command
|
||||
echo "<br>Setting parameters to MSS!<br>";
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($setForBssArr);$i++){
|
||||
if($DEBUG)
|
||||
echo "<br>sysId={$setForBssArr[$i][sysId]},oid={$setForBssArr[$i][oid]},value={$setForBssArr[$i][value]}";
|
||||
$tmpCommStr=sysCommSend($setForBssArr[$i][sysId],$nSetComm,$setForBssArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please check the device state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.</font></b>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($setForBssArr);$j++){
|
||||
if($setForBssArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.({$setForBssArr[$j][remark]})</font></b>";
|
||||
|
||||
}
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
break;
|
||||
}
|
||||
|
||||
sleep(2);
|
||||
//send save command
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($saveCmdArr);$i++){
|
||||
if($DEBUG)echo "<br>sysId={$saveCmdArr[$i][sysId]},oid={$saveCmdArr[$i][oid]},value={$saveCmdArr[$i][value]}";
|
||||
setSysParamValue($saveCmdArr[$i][sysId],$saveCmdArr[$i][oid],'0',$saveCmdArr[$i][value]);
|
||||
$tmpCommStr=sysCommSend($saveCmdArr[$i][sysId],$nSetComm,$saveCmdArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please check the device state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.</font></b>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($resetCommArr);$j++){
|
||||
if($resetCommArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.({$resetCommArr[$j][remark]})</font></b>";
|
||||
}
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$getSysIdSql = "SELECT * FROM $sysInfoTable
|
||||
WHERE sysTypeNo='320'
|
||||
ORDER BY baseStat DESC,updateTime DESC";
|
||||
|
||||
if($DEBUG) echo "<br>getSysIdSql=$getSysIdSql";
|
||||
$getSysIdResult=mysqli_query($pubConn,$getSysIdSql);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
while($getSysIdRows=mysqli_fetch_array($getSysIdResult)){
|
||||
$dstSeverIp=$getSysIdRows[ip];
|
||||
echo "<br>Restarting MSS,please wait about 6 minutes!<br>";
|
||||
flush();
|
||||
$tmpScript="./beforeClearSubs".' '.$dstSeverIp;
|
||||
system($tmpScript);
|
||||
|
||||
//clear heartbeat
|
||||
$delSql="DELETE FROM OMC_PUB.sysStat";
|
||||
mysqli_query($pubConn,$delSql);
|
||||
|
||||
for($i=0;$i<30;$i++){
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
sleep(4);
|
||||
}
|
||||
|
||||
$tmpScript="./mssStart".' '.$dstSeverIp;
|
||||
system($tmpScript);
|
||||
|
||||
for($i=0;$i<45;$i++){
|
||||
$tmpSql = "SELECT * FROM OMC_PUB.sysStat WHERE sysTypeNo='200' AND sysNo='9'";
|
||||
|
||||
if($DEBUG) echo "<br>tmpSql=$tmpSql";
|
||||
$tmpResult=mysqli_query($pubConn,$tmpSql);
|
||||
echo mysqli_error($pubConn);
|
||||
if(mysqli_num_rows($tmpResult)>0)
|
||||
break;
|
||||
sleep(4);
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}
|
||||
if($i==30)
|
||||
echo "<font size=\"2\" color=\"#FF0000\">Starting MSS failed,please check it</font>";
|
||||
else
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
}
|
||||
echo "<br><font size=\"2\" color=\"#0000FF\">Process finished</font><br>";
|
||||
?>
|
||||
532
wxc2_omc/configuration/nibConf/configureForPstn.php
Executable file
532
wxc2_omc/configuration/nibConf/configureForPstn.php
Executable file
@@ -0,0 +1,532 @@
|
||||
<?php
|
||||
$pubDb = 'OMC_PUB';
|
||||
?>
|
||||
|
||||
<?php
|
||||
//network inicator
|
||||
$selSql = "SELECT initValue FROM OBJ_222.param_99
|
||||
WHERE level_1='2' AND level_2='2'";
|
||||
|
||||
if($DEBUG)echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
|
||||
switch($ni){
|
||||
case 0:
|
||||
$tmpValue=setBitValue($selRows[initValue],'0.0',0);
|
||||
break;
|
||||
case 1:
|
||||
$tmpValue=setBitValue($selRows[initValue],'0.2',0);
|
||||
break;
|
||||
case 2:
|
||||
$tmpValue=setBitValue($selRows[initValue],'0.0',1);
|
||||
break;
|
||||
case 3:
|
||||
$tmpValue=setBitValue($selRows[initValue],'0.2',1);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='$tmpValue' WHERE level_1='2' AND level_2='2'";
|
||||
if($DEBUG)echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$levelWhere = getLevelWhere($NetOPCArr[$ni][0]);
|
||||
$opc=omc_keep_length($opc,'0',6);
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='$opc',readValue='' WHERE $levelWhere";
|
||||
if($DEBUG)echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//Routing
|
||||
$dpc=omc_keep_length($dpc,'0',6);
|
||||
$tmpRouting=$dpc.'00'.'80';
|
||||
|
||||
switch($ni){
|
||||
case 0:
|
||||
case 2:
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='$tmpRouting',readValue=''
|
||||
WHERE level_1='2' AND level_2='6' AND level_3='1' AND instanceNo='0'";
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='$tmpRouting',readValue=''
|
||||
WHERE level_1='2' AND level_2='6' AND level_3='3' AND instanceNo='0'";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//clear PSTN loopback
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='0000008080',readValue=''
|
||||
WHERE level_1='2' AND level_2='6' AND level_3='3' AND instanceNo='7'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//linkset
|
||||
$dpc=omc_keep_length($dpc,'0',6);
|
||||
$tmpLinkset=$dpc.'00';
|
||||
switch($ni){
|
||||
case 0:
|
||||
case 2:
|
||||
$tmpLinkset=setBitValue($tmpLinkset,'3.0-3.1','00');
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
$tmpLinkset=setBitValue($tmpLinkset,'3.0-3.1','10');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='$tmpLinkset',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='1' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//clear PSTN loopback
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='00000000',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='1' AND instanceNo='7'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='00000000',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='1' AND instanceNo='8'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//link
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='000062',readValue=''
|
||||
WHERE level_1='2' AND level_2='5' AND level_3='1' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='000162',readValue=''
|
||||
WHERE level_1='2' AND level_2='5' AND level_3='1' AND instanceNo='2'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_222.param_99 SET initValue='000262',readValue=''
|
||||
WHERE level_1='2' AND level_2='5' AND level_3='1' AND instanceNo='4'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
|
||||
//E1
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='01',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='1' AND (instanceNo='0' OR instanceNo='2' OR instanceNo='4')";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='2' AND (instanceNo='0' OR instanceNo='2' OR instanceNo='4')";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='3' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='01',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='3' AND instanceNo='2'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='02',readValue=''
|
||||
WHERE level_1='2' AND level_2='4' AND level_3='3' AND instanceNo='4'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
|
||||
//Trunk Group
|
||||
$tmpTgAtt='00000008070200FF0000000000';
|
||||
$tmpTgAtt=setBitValue($tmpTgAtt,'1.0-3.7',$dpc);
|
||||
switch($ni){
|
||||
case 0:
|
||||
case 2:
|
||||
$tmpTgAtt=setBitValue($tmpTgAtt,'5.0-5.7','00');
|
||||
break;
|
||||
case 1:
|
||||
case 3:
|
||||
$tmpTgAtt=setBitValue($tmpTgAtt,'5.0-5.7','02');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch($ni){
|
||||
case 0:
|
||||
case 1:
|
||||
$tmpTgAtt=setBitValue($tmpTgAtt,'12.0-12.7','00');
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
$tmpTgAtt=setBitValue($tmpTgAtt,'12.0-12.7','01');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpTgAtt',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='0'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//clear PSTN loopback
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='000000000A0302FF0000000000',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='7'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='000000000A0302FF0000000000',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='8'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue=''
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='255'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
|
||||
//PSTN to mobile prefix
|
||||
$selSql = "SELECT initValue FROM OBJ_322.param_99
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='1'";
|
||||
|
||||
if($DEBUG)echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$selRows[initValue]',readValue='EEEEEEEEEEEEEEEE'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
//PSTN to mobile prefix
|
||||
$selSql = "SELECT initValue FROM OBJ_322.param_99
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='1'";
|
||||
|
||||
if($DEBUG)echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
|
||||
$tmpPrefix=setBitValue($selRows[initValue],'00.-0.7','43');
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefix',readValue='2200EEEEEEEEEEEEEEEE010800EEEEEEEE030000'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue='FF'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='30'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
/**************Mobile to PSTN*********************************/
|
||||
/*
|
||||
$selSql = "SELECT initValue FROM OBJ_225.param_99
|
||||
WHERE level_1='2' AND level_2='3'";
|
||||
|
||||
if($DEBUG)echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$tmpCc=$tmpArr[0];
|
||||
|
||||
$tmpPrefixAtt='32';
|
||||
$tmpInsertCount=dechex(strlen($tmpCc));
|
||||
$tmpPrefixAtt=$tmpPrefixAtt.$tmpInsertCount.'0'.omc_keep_length($tmpCc,'E',16,0).'8100'.'0'.'0'.'EEEEEEEE'.'030100';
|
||||
*/
|
||||
|
||||
/*****************************************/
|
||||
/*
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$pstnPrefix_0',readValue='EEEEEEEEEEEEEEEE'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='11'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue='2200EEEEEEEEEEEEEEEE010800EEEEEEEE030000'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='11'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue='FF'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='11'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
*/
|
||||
/*****************************************/
|
||||
/*
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$pstnPrefix_1',readValue='EEEEEEEEEEEEEEEE'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='12'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue='2200EEEEEEEEEEEEEEEE010800EEEEEEEE030000'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='12'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue='FF'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='12'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
/***********************************************/
|
||||
/*
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$pstnPrefix_2',readValue='EEEEEEEEEEEEEEEE'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='1' AND instanceNo='13'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='$tmpPrefixAtt',readValue='2200EEEEEEEEEEEEEEEE010800EEEEEEEE030000'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='2' AND instanceNo='13'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$updateSql="UPDATE OBJ_322.param_99 SET initValue='00',readValue='FF'
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='3' AND instanceNo='13'";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
$setForPstnArr=array(
|
||||
array('remark' => 'MTP3 parameters','sysTypeNo' => '222','sysId' => '222_99_99', 'oid' => '2'),
|
||||
array('remark' => 'MSC parameters','sysTypeNo' => '322','sysId' => '322_99_99', 'oid' => '2'),
|
||||
);
|
||||
|
||||
//send set command
|
||||
echo "<br>Setting parameters to MSS!<br>";
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($setForPstnArr);$i++){
|
||||
$tmpCommStr=sysCommSend($setForPstnArr[$i][sysId],$nSetComm,$setForPstnArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please check the device state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.</font></b>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($setForPstnArr);$j++){
|
||||
if($setForPstnArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.({$setForPstnArr[$j][remark]})</font></b>";
|
||||
}
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
break;
|
||||
}
|
||||
|
||||
sleep(2);
|
||||
//send save command
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($saveCmdArr);$i++){
|
||||
if($DEBUG)echo "<br>sysId={$saveCmdArr[$i][sysId]},oid={$saveCmdArr[$i][oid]},value={$saveCmdArr[$i][value]}";
|
||||
setSysParamValue($saveCmdArr[$i][sysId],$saveCmdArr[$i][oid],'0',$saveCmdArr[$i][value]);
|
||||
$tmpCommStr=sysCommSend($saveCmdArr[$i][sysId],$nSetComm,$saveCmdArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please check the device state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.</font></b>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($resetCommArr);$j++){
|
||||
if($resetCommArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.({$resetCommArr[$j][remark]})</font></b>";
|
||||
|
||||
}
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
break;
|
||||
}
|
||||
|
||||
//send reset command
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($resetCmdArr);$i++){
|
||||
if($DEBUG)echo "<br>sysId={$resetCmdArr[$i][sysId]},oid={$resetCmdArr[$i][oid]},value={$resetCmdArr[$i][value]}";
|
||||
setSysParamValue($resetCmdArr[$i][sysId],$resetCmdArr[$i][oid],'0',$resetCmdArr[$i][value]);
|
||||
$tmpCommStr=sysCommSend($resetCmdArr[$i][sysId],$nSetComm,$resetCmdArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please check the device state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.</font></b>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($resetCommArr);$j++){
|
||||
if($resetCommArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "<font color=\"#FF0000\">Error: $tmpRemark.({$resetCommArr[$j][remark]})</font></b>";
|
||||
}
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
echo "<br><font size=\"2\" color=\"#0000FF\">Process finished</font><br>";
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/AucSysPara
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/AucSysPara
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/EirSysPara
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/EirSysPara
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/HlrSysPara
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/HlrSysPara
Executable file
Binary file not shown.
8
wxc2_omc/configuration/nibConf/defaultPara/cap_acn.conf
Executable file
8
wxc2_omc/configuration/nibConf/defaultPara/cap_acn.conf
Executable file
@@ -0,0 +1,8 @@
|
||||
#application context name configure file for CAP
|
||||
total data length=4
|
||||
|
||||
#application context name data
|
||||
No.1:50 02 // gsmSSF to gsmSCF
|
||||
No.2:51 02 // assist handoff gsmSSF to gsmSCF
|
||||
No.3:52 02 // gsmSRF to gsmSCF
|
||||
No.4:128 02 // gsmSRF to gsmSCF
|
||||
36
wxc2_omc/configuration/nibConf/defaultPara/cap_operation.conf
Executable file
36
wxc2_omc/configuration/nibConf/defaultPara/cap_operation.conf
Executable file
@@ -0,0 +1,36 @@
|
||||
# operation code configure file for CAP
|
||||
total data length=32
|
||||
|
||||
#operation code
|
||||
No.1:00 02 5 // initial DP
|
||||
No.2:16 02 5 // assist request instructions
|
||||
No.3:17 02 20 // establish temporary connection
|
||||
No.4:18 04 5 // disconnect forward connection
|
||||
No.5:19 04 5 // connect to resource
|
||||
No.6:20 04 5 // connect
|
||||
No.7:22 04 5 // release call
|
||||
No.8:23 04 5 // request report BCSM event
|
||||
No.9:24 04 5 // event report BCSM
|
||||
No.10:31 04 5 // continue
|
||||
No.11:33 04 5 // reset timer
|
||||
No.12:34 04 5 // furnish charging information
|
||||
No.13:35 04 5 // apply charging
|
||||
No.14:36 04 5 // apply charging report
|
||||
No.15:44 04 5 // call information report
|
||||
No.16:45 04 5 // call information request
|
||||
No.17:46 04 5 // send charging information
|
||||
No.18:47 04 60 // play announcement
|
||||
No.19:48 01 60 // prompt and collect user information
|
||||
No.20:49 04 5 // specialized resource report
|
||||
No.21:53 04 5 // cancel
|
||||
No.22:55 01 5 // activity test
|
||||
No.23:60 04 5 // initial DPSMS
|
||||
No.24:61 04 5 // Furnishing charging info.SMS
|
||||
No.25:62 04 5 // connect DPSMS
|
||||
No.26:63 04 5 // request SMS event
|
||||
No.27:64 04 5 // event report SMS
|
||||
No.28:65 04 5 // continue SMS
|
||||
No.29:66 04 5 // release DPSMS
|
||||
No.30:67 04 5 // reset timer DPSMS
|
||||
No.31:176 04 5 // VPS to PPS
|
||||
No.32:177 04 5 // PPS to VPS
|
||||
215
wxc2_omc/configuration/nibConf/defaultPara/cc_table.conf
Executable file
215
wxc2_omc/configuration/nibConf/defaultPara/cc_table.conf
Executable file
@@ -0,0 +1,215 @@
|
||||
# Country code table configure file
|
||||
|
||||
#List the country code
|
||||
0086; // China
|
||||
0001; // Canada & USA
|
||||
0007; // Kazakhstan & Kirighzia & Kyrgyzstan & Russia & Sakhalin & Tajikistan & Uzbekistan
|
||||
0020; // Egypt
|
||||
0027; // South Africa
|
||||
0030; // Greece
|
||||
0031; // Netherlands
|
||||
0036; // Hungary
|
||||
0039; // Italy
|
||||
0040; // Bomania
|
||||
0041; // Switzerland
|
||||
0042; // Czech Republic & Slovakia
|
||||
0043; // Austria
|
||||
0044; // United Kingdom
|
||||
0045; // Denmark
|
||||
0046; // Sweden
|
||||
0047; // Norway
|
||||
0048; // Poland
|
||||
0049; // Germany
|
||||
0051; // Peru
|
||||
0052; // South Korea
|
||||
0053; // Cuba
|
||||
0054; // Argentina
|
||||
0055; // Brazil
|
||||
0056; // Chile
|
||||
0057; // Colombia
|
||||
0058; // Venezuela
|
||||
0060; // Malaysia
|
||||
0061; // Australia
|
||||
0062; // Indonesia
|
||||
0063; // Philippines
|
||||
0064; // New Zealand
|
||||
0065; // Singapore
|
||||
0066; // Thailand
|
||||
0081; // Japan
|
||||
0084; // Vietnam
|
||||
0090; // Turkey
|
||||
0091; // India
|
||||
0092; // Pakistan
|
||||
0093; // Afghanistan
|
||||
0094; // Sri Lanka
|
||||
0095; // Myanmar (Burma)
|
||||
0098; // Iran
|
||||
0212; // Morocco
|
||||
0213; // Algeria
|
||||
0216; // Tunisia
|
||||
0218; // Libya
|
||||
0220; // Gambia
|
||||
0221; // Senegal Republic
|
||||
0222; // Mauritania
|
||||
0223; // Mali Republic
|
||||
0224; // Guinea
|
||||
0225; // Ivory Coast
|
||||
0226; // Burkina Faso
|
||||
0227; // Niger
|
||||
0228; // Togo
|
||||
0229; // Benin
|
||||
0230; // Mauritius
|
||||
0231; // Liberia
|
||||
0232; // Sierra Leone
|
||||
0233; // Ghana
|
||||
0234; // Nigeria
|
||||
0235; // Chad Republic
|
||||
0236; // Central Africa Republic
|
||||
0237; // Cameroon
|
||||
0239; // Sao Tome
|
||||
0240; // Equatorial Guinea
|
||||
0241; // Gabon
|
||||
0242; // Congo
|
||||
0243; // Zaire
|
||||
0244; // Angola
|
||||
0245; // Guinea Bissau
|
||||
0246; // Diego Garcia
|
||||
0247; // Ascension Islands
|
||||
0248; // Seychelles
|
||||
0249; // Sudan
|
||||
0250; // Rwanda
|
||||
0251; // Ethiopia
|
||||
0252; // Somalia
|
||||
0253; // Djibouti
|
||||
0254; // Kenya
|
||||
0255; // Tanzania
|
||||
0256; // Uganda
|
||||
0257; // Burundi
|
||||
0258; // Mozambigue
|
||||
0259; // Zanzibar
|
||||
0260; // Zambia
|
||||
0261; // Madagascar
|
||||
0262; // Reunion Island
|
||||
0263; // Zimbabwe
|
||||
0264; // Namibia
|
||||
0265; // Malawi
|
||||
0266; // Lesotho
|
||||
0267; // Botswana
|
||||
0268; // Swaziland
|
||||
0269; // Comoros
|
||||
0290; // St.Helena
|
||||
0291; // Eritrea
|
||||
0297; // Aruba
|
||||
0298; // Faeroe Islands
|
||||
0299; // Greenland
|
||||
#2696 // Mayotte Island
|
||||
0321; // Belgium
|
||||
0331; // France
|
||||
0339; // Monaco
|
||||
0349; // Spain
|
||||
0350; // Gibraltar
|
||||
0351; // Portugal
|
||||
0352; // Luxembourg
|
||||
0353; // Ireland
|
||||
0354; // Iceland
|
||||
0355; // Albania
|
||||
0356; // Malta
|
||||
0357; // Cyprus
|
||||
0358; // Finland
|
||||
0359; // Bulgaria
|
||||
0370; // Lithuania
|
||||
0371; // Latvia
|
||||
0372; // Estonia
|
||||
0373; // Moldova
|
||||
0374; // Armenia
|
||||
0375; // Belarus
|
||||
0376; // Andorra
|
||||
0380; // Ukraine
|
||||
0381; // Yugoslavia
|
||||
0385; // Croatia
|
||||
0386; // Slovenia
|
||||
0387; // Bosnia Herzegovina
|
||||
0389; // Macedonia
|
||||
0395; // San Marino
|
||||
0396; // Vatican City
|
||||
0417; // Liechtenstein
|
||||
0500; // Falkland Islands
|
||||
0501; // Belize
|
||||
0502; // Guatemala
|
||||
0503; // EI Salvador
|
||||
0504; // Honduras
|
||||
0505; // Nicaragua
|
||||
0506; // Costa Rica
|
||||
0507; // Panama
|
||||
0508; // St.Pierre
|
||||
0509; // Haiti
|
||||
0521; // Mexico Band 1
|
||||
0522; // Mexico Band 2
|
||||
0523; // Mexico Band 3
|
||||
0524; // Mexico Band 4
|
||||
0525; // Mexico Band 5
|
||||
0526; // Mexico Band 6
|
||||
0527; // Mexico Band 7
|
||||
0528; // Mexico Band 8
|
||||
0590; // Guadeloupe
|
||||
0591; // Bolivia
|
||||
0592; // Ecuador & Guyana
|
||||
0594; // French Guiana
|
||||
0595; // Paraguay
|
||||
0596; // French Antilles
|
||||
0597; // Suriname
|
||||
0598; // Uruguay
|
||||
0599; // Netherlands Antilles
|
||||
#5399 // Guantanamo Bay
|
||||
0670; // Saipan
|
||||
0671; // Guam
|
||||
0672; // Antarctica(Casey) & Antarctica(Scott) & Christmas/Cocos
|
||||
0673; // Brunei
|
||||
0674; // Nauru
|
||||
0675; // Papau New Guinea
|
||||
0676; // Tonga
|
||||
0677; // Solomon Islands
|
||||
0678; // Vanuatu
|
||||
0679; // Fiji Islands
|
||||
0680; // Palau
|
||||
0681; // Wallis/Futuna
|
||||
0682; // Cook Island
|
||||
0683; // Niue Island
|
||||
0684; // American Samoa
|
||||
0685; // West Samoa
|
||||
0686; // Kiribati
|
||||
0687; // New Caledonia
|
||||
0688; // Tuvalu Islands
|
||||
0689; // French Polynesia
|
||||
0691; // Micronesia
|
||||
0692; // Marshall Islands
|
||||
#6723 // Norfolk Island
|
||||
0787; // Puerto Rico
|
||||
0809; // Anguilla & Antigua & Bahamas & Barbados & Bermuda......
|
||||
0850; // North Korea
|
||||
0852; // Hong Kong
|
||||
0853; // Macao
|
||||
0855; // Cambodia
|
||||
0856; // Laos
|
||||
0868; // Trinidad/Tobago
|
||||
0880; // Bangladesh
|
||||
0886; // Taiwan
|
||||
0960; // Maldives
|
||||
0961; // Lebanon
|
||||
0962; // Jordan
|
||||
0963; // Syria
|
||||
0964; // Iraq
|
||||
0965; // Kuwait
|
||||
0966; // Saudi Arabia
|
||||
0967; // Yemen Arab Rep.
|
||||
0968; // Oman
|
||||
0971; // United Arab Emirates
|
||||
0972; // Israel
|
||||
0973; // Bahrain
|
||||
0974; // Qatar
|
||||
0975; // Bhutan
|
||||
0976; // Mongolia
|
||||
0977; // Nepal
|
||||
0994; // Azerbaijan
|
||||
0995; // Georgia
|
||||
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/conv_prefix.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/conv_prefix.conf
Executable file
Binary file not shown.
20
wxc2_omc/configuration/nibConf/defaultPara/help_page
Executable file
20
wxc2_omc/configuration/nibConf/defaultPara/help_page
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
******************
|
||||
* HELP PAGE *
|
||||
******************
|
||||
|
||||
Welcome to DEBUG MONITOR.
|
||||
|
||||
Press 's' or 'S' to enter "SUB MODULE SELECTION PAGE".
|
||||
|
||||
In "SUB MODULE SELECTION PAGE",
|
||||
Press 'x' or 'X' to return "HELP PAGE",
|
||||
Press 'a-p' or 'A-P' to select sub module.
|
||||
|
||||
In each sub module, Press '0-9' and 'a-f' to select pages.
|
||||
|
||||
There are two methods to use Debug,
|
||||
1. Serial Port, use PC-to-PC serial line.
|
||||
2. Telnet, use "telnet dst_host_ip 4965".
|
||||
|
||||
$
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/hlr_parambit.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/hlr_parambit.conf
Executable file
Binary file not shown.
18
wxc2_omc/configuration/nibConf/defaultPara/iptrans.conf
Executable file
18
wxc2_omc/configuration/nibConf/defaultPara/iptrans.conf
Executable file
@@ -0,0 +1,18 @@
|
||||
#ipconfig for pps
|
||||
#port=type,num,interface
|
||||
#type=UDP/TCP
|
||||
#num=0-6
|
||||
#interface=BUFFER/DIRECT
|
||||
4950=UDP,6,DIRECT
|
||||
4952=UDP,2,BUFFER
|
||||
4953=UDP,3,BUFFER
|
||||
4954=UDP,3,BUFFER
|
||||
4955=UDP,3,BUFFER
|
||||
4957=UDP,4,BUFFER
|
||||
4960=UDP,3,BUFFER
|
||||
4965=TCP,3,BUFFER
|
||||
4967=UDP,2,BUFFER
|
||||
4969=UDP,3,BUFFER
|
||||
4970=UDP,3,BUFFER
|
||||
4971=UDP,2,BUFFER
|
||||
4972=UDP,2,BUFFER
|
||||
40
wxc2_omc/configuration/nibConf/defaultPara/map_acn.conf
Executable file
40
wxc2_omc/configuration/nibConf/defaultPara/map_acn.conf
Executable file
@@ -0,0 +1,40 @@
|
||||
#application context name configure file
|
||||
total data length=36
|
||||
|
||||
#application context name data
|
||||
No.1:01 03 // network location update
|
||||
No.2:02 03 // location cancel
|
||||
No.3:03 03 // roaming number enquiry
|
||||
No.4:05 03 // location info retrieval
|
||||
No.5:10 02 // reset context
|
||||
No.6:11 02 // handover control
|
||||
No.7:13 02 // equipment management
|
||||
No.8:14 02 // info retrieval
|
||||
No.9:15 02 // inter VLR info retrieval
|
||||
No.10:16 03 // subscriber data management
|
||||
No.11:17 03 // tracing
|
||||
No.12:18 02 // network functional SS
|
||||
No.13:19 02 // network unstructured SS
|
||||
No.14:20 03 // short message gateway
|
||||
No.15:21 03 // short message MO relay
|
||||
No.16:23 03 // short message alert
|
||||
No.17:24 03 // short message waiting data management
|
||||
No.18:25 03 // mobile terminating short message relay
|
||||
No.19:26 02 // imsi retrieval
|
||||
No.20:27 03 // MS purging
|
||||
No.21:28 03 // subscriber info enquiry
|
||||
No.22:29 03 // any time info enquiry
|
||||
No.23:06 03 // call control transfer
|
||||
No.24:36 03 // invocation notification
|
||||
No.25:12 03 // sIWFS allocation
|
||||
No.26:31 03 // group call control
|
||||
No.27:32 03 // GPRS location update
|
||||
No.28:33 03 // GPRS location info retrieval
|
||||
No.29:34 03 // failure report
|
||||
No.30:35 03 // GPRS notify
|
||||
No.31:07 03 // reporting
|
||||
No.32:08 03 // call completion
|
||||
No.33:200 02 // security triplets (MAP-H defined by Meng Xiaozhen)
|
||||
No.34:201 02 // subscriber interrogate (MAP-H defined by Meng Xiaozhen)
|
||||
No.35:202 02 // HLR subscriber management (MAP-H defined by Meng Xiaozhen)
|
||||
No.36:203 02 // HLR ping AUC (MAP-H defined by Meng Xiaozhen reserved)
|
||||
67
wxc2_omc/configuration/nibConf/defaultPara/map_operation.conf
Executable file
67
wxc2_omc/configuration/nibConf/defaultPara/map_operation.conf
Executable file
@@ -0,0 +1,67 @@
|
||||
# operation code configure file
|
||||
total data length=63
|
||||
|
||||
#operation code
|
||||
No.1:02 01 20 // update location
|
||||
No.2:03 01 10 // cancel location
|
||||
No.3:67 01 20 // purge mobile station
|
||||
No.4:55 01 05 // send identification
|
||||
No.5:68 01 20 // prepare handover
|
||||
No.6:29 03 108000 // send end signal
|
||||
No.7:33 04 05 // process access signalling
|
||||
No.8:34 04 05 // forward access signalling
|
||||
No.9:69 01 20 // prepare subsequent handover
|
||||
No.10:56 01 20 // send authentication info
|
||||
No.11:43 01 20 // check IMEI
|
||||
No.12:07 01 20 // insert subscriber data
|
||||
No.13:08 01 20 // delete subscriber data
|
||||
No.14:37 04 20 // reset
|
||||
No.15:38 04 20 // forward check ss indication
|
||||
No.16:57 01 20 // restore data
|
||||
No.17:50 01 20 // active trace mode
|
||||
No.18:51 01 20 // deactive trace mode
|
||||
No.19:58 01 20 // send imsi
|
||||
No.20:22 01 20 // send routing info
|
||||
No.21:04 01 20 // provide roaming number
|
||||
No.22:06 01 20 // resume call handling
|
||||
No.23:31 01 20 // provide SIWFS number
|
||||
No.24:32 01 20 // SIWFS signalling modify
|
||||
No.25:73 01 20 // set report state
|
||||
No.26:74 01 20 // status report
|
||||
No.27:75 01 60 // remote user free
|
||||
No.28:10 01 20 // register ss
|
||||
No.29:11 01 20 // erase ss
|
||||
No.30:12 01 20 // activate ss
|
||||
No.31:13 01 20 // deactivate ss
|
||||
No.32:14 01 20 // interrogate ss
|
||||
No.33:59 01 600 // process unstructure ss request
|
||||
No.34:60 01 60 // unstructure ss request
|
||||
No.35:61 01 60 // unstructure ss notify
|
||||
No.36:17 01 60 // register password
|
||||
No.37:18 03 20 // get password
|
||||
No.38:76 01 20 // register cc entry
|
||||
No.39:77 01 20 // erase cc entry
|
||||
No.40:45 01 20 // send routing info for sm
|
||||
No.41:46 01 60 // mo forward sm
|
||||
No.42:44 01 60 // mt forward sm
|
||||
No.43:47 01 05 // report sm delivery status
|
||||
No.44:63 04 05 // inform service centre
|
||||
No.45:64 01 05 // alert service center
|
||||
No.46:66 01 05 // ready for sm
|
||||
No.47:70 01 20 // provider subscriber info
|
||||
No.48:71 01 20 // any time interrogation
|
||||
No.49:72 01 20 // ss invocatin notification
|
||||
No.50:39 01 20 // prepare group call
|
||||
No.51:40 03 108000 // send group call end signal
|
||||
No.52:41 04 05 // process group call signalling
|
||||
No.53:42 04 05 // forward group call signalling
|
||||
No.54:23 01 20 // update GPRS location
|
||||
No.55:24 01 20 // send routing info for GPRS
|
||||
No.56:25 01 20 // failure report
|
||||
No.57:26 01 20 // note ms present for GPRS
|
||||
No.58:200 01 05 // security triplets (MAP-H defined by Meng Xiaozhen)
|
||||
No.59:201 01 05 // interrogate subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.60:202 01 05 // hlr create subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.61:203 01 05 // hlr delete subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.62:204 01 05 // hlr ping auc (MAP-H defined by Meng Xiaozhen reserved)
|
||||
No.63:09 01 20 // send parameter
|
||||
13
wxc2_omc/configuration/nibConf/defaultPara/menu_page
Executable file
13
wxc2_omc/configuration/nibConf/defaultPara/menu_page
Executable file
@@ -0,0 +1,13 @@
|
||||
|
||||
*******************
|
||||
* MENU PAGE *
|
||||
*******************
|
||||
|
||||
a -- IPTR i -- HLR
|
||||
b -- MTP3 j -- SMSC
|
||||
c -- SCCP k -- PPS
|
||||
d -- TCAP l -- SNMP
|
||||
e -- XAPP m --
|
||||
f -- MSC n -- DEBUG
|
||||
g -- VLR o -- AUC
|
||||
h -- p -- EIR
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/mnpf.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/mnpf.conf
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/msc_conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/msc_conf
Executable file
Binary file not shown.
1408
wxc2_omc/configuration/nibConf/defaultPara/mtp3.conf
Executable file
1408
wxc2_omc/configuration/nibConf/defaultPara/mtp3.conf
Executable file
File diff suppressed because it is too large
Load Diff
1408
wxc2_omc/configuration/nibConf/defaultPara/mtp3_ps.conf
Executable file
1408
wxc2_omc/configuration/nibConf/defaultPara/mtp3_ps.conf
Executable file
File diff suppressed because it is too large
Load Diff
BIN
wxc2_omc/configuration/nibConf/defaultPara/ppsConf.txt
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/ppsConf.txt
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/ppsCrdConf.txt
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/ppsCrdConf.txt
Executable file
Binary file not shown.
37
wxc2_omc/configuration/nibConf/defaultPara/profile
Executable file
37
wxc2_omc/configuration/nibConf/defaultPara/profile
Executable file
@@ -0,0 +1,37 @@
|
||||
# /etc/profile
|
||||
|
||||
# System wide environment and startup programs
|
||||
# Functions and aliases go in /etc/bashrc
|
||||
|
||||
PATH=".:$PATH:/sbin:/usr/sbin:/usr/X11R6/bin:/etc/rc.d/init.d:/usr/local/wxc2/bin"
|
||||
PATH=/usr/java/jdk1.3/bin:$PATH
|
||||
|
||||
ulimit -c 80000
|
||||
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
|
||||
umask 002
|
||||
else
|
||||
umask 022
|
||||
fi
|
||||
|
||||
USER=`id -un`
|
||||
LOGNAME=$USER
|
||||
MAIL="/var/spool/mail/$USER"
|
||||
|
||||
HOSTNAME=`/bin/hostname`
|
||||
HISTSIZE=1000
|
||||
|
||||
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
|
||||
INPUTRC=/etc/inputrc
|
||||
fi
|
||||
JAVA_COMPILER=javacomp ; export JAVA_COMPILER
|
||||
LD_LIBRARY_PATH=/usr/local/mysql/lib ; export LD_LIBRARY_PATH
|
||||
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
|
||||
|
||||
for i in /etc/profile.d/*.sh ; do
|
||||
if [ -x $i ]; then
|
||||
. $i
|
||||
fi
|
||||
done
|
||||
|
||||
unset i
|
||||
PATH=/usr/local/wxc2/bin:$PATH
|
||||
28
wxc2_omc/configuration/nibConf/defaultPara/sccp.conf
Executable file
28
wxc2_omc/configuration/nibConf/defaultPara/sccp.conf
Executable file
@@ -0,0 +1,28 @@
|
||||
#SCCP Config file (R8V2_04)
|
||||
|
||||
[Local Node]
|
||||
#ssn NetID msisdn ip0 ip1
|
||||
4 2 86755920006 172.18.128.1 172.18.129.1
|
||||
6 2 86755920002 172.18.98.1 172.18.99.1
|
||||
7 2 86755920001 172.18.98.1 172.18.99.1
|
||||
8 2 86755920000 172.18.98.1 172.18.99.1
|
||||
9 2 86755920005 172.18.98.1 172.18.99.1
|
||||
10 2 86755920004 172.18.98.1 172.18.99.1
|
||||
11 2 86755920006 172.18.98.1 172.18.99.1
|
||||
19 2 86755920007 172.18.98.1 172.18.99.1
|
||||
20 2 86755920008 172.18.98.1 172.18.99.1
|
||||
21 2 86755920009 172.18.128.1 172.18.129.1
|
||||
22 2 86755920013 172.18.100.1 172.18.101.1
|
||||
32 2 86755900012 172.18.98.1 172.18.99.1
|
||||
146 2 86755920011 172.18.98.1 172.18.99.1
|
||||
147 2 86755920010 172.18.98.1 172.18.99.1
|
||||
254 2 - 172.18.98.1 172.18.99.1
|
||||
[GTT_Table]
|
||||
#No NP StartDigits EndDigits NI SPC SSN RI AI S E N Rep
|
||||
0 6 460020000000000 460029999999999 3 000064 6 0 7
|
||||
1 1 86755900020 86755909999 3 000064 6 0 7
|
||||
2 1 86755910101 86755999999 3 000064 6 0 7
|
||||
|
||||
[RL_SSN]
|
||||
#NetID DPC SSN
|
||||
|
||||
57
wxc2_omc/configuration/nibConf/defaultPara/shm.conf
Executable file
57
wxc2_omc/configuration/nibConf/defaultPara/shm.conf
Executable file
@@ -0,0 +1,57 @@
|
||||
#------------------------------Server paramter----------------------------#
|
||||
|
||||
|
||||
#Server Type (0=OMC 1=FUNCTION SERVER)
|
||||
ServerType=1
|
||||
|
||||
|
||||
#Server ID ( 0=master 1=slave)
|
||||
ServerID=0
|
||||
|
||||
#IP Info (OMC0 OMC1 for omc server, SERVER0 and SERVER1 for function server)
|
||||
OMC0=172.18.128.1
|
||||
OMC1=172.18.129.1
|
||||
SERVER0=172.18.98.1
|
||||
SERVER1=172.18.99.1
|
||||
|
||||
#------------------------------Share Memory List(MAX=10)-------------------#
|
||||
|
||||
# ID KEY PERM SIZE USR INTTLP INITRP REALP PERIODP REALIP PERIODICIP
|
||||
* 11 12000000 436 16384 AUC 4957 4957 4972 4972 239.255.4.1 239.255.4.1
|
||||
* 12 12040000 436 16384 EIR 4957 4957 4974 4974 239.255.6.1 239.255.6.1
|
||||
* 13 45000001 436 33985 HLR 4957 4957 4970 4970 239.255.2.1 239.255.2.1
|
||||
* 24 90000000 436 32768 VLR 4957 4957 4973 4973 239.255.5.1 239.255.5.1
|
||||
* 5 05020000 436 22528 PPS 4957 4957 4971 4971 239.255.3.1 239.255.3.1
|
||||
|
||||
#------------------------DataBase info (only used for OMC MAX=10)- ---------#
|
||||
# HOSTNAME PASSWORD USER DBNAME
|
||||
<1> localhost rootaa root HlrDb
|
||||
<2> localhost rootaa root parameter_db
|
||||
<3> localhost rootaa root account_db
|
||||
<4> localhost rootaa root tariff_db
|
||||
<5> localhost rootaa root refresh_card
|
||||
<6> localhost rootaa root AUC_Para
|
||||
<7> localhost rootaa root VlrDb
|
||||
<8> localhost rootaa root EIR_Para
|
||||
|
||||
#-------------------------MIBS Config Files---------------------------------#
|
||||
PATH:./conf/mibs/
|
||||
|
||||
|
||||
#MIB List
|
||||
[1] IWV-SMI.txt
|
||||
[2] WAVEII-SMI.txt
|
||||
[3] WAVEII-DATASYNC-MIB.txt
|
||||
[4] WAVEII-AUC-MIB.txt
|
||||
[5] WAVEII-EIR-MIB.txt
|
||||
[6] WAVEII-HLR-MIB.txt
|
||||
[7] WAVEII-MSC-MIB.txt
|
||||
[8] WAVEII-PPS-MIB.txt
|
||||
|
||||
#ProcedureID(>=0)
|
||||
#ProID=1
|
||||
#Timeout value <256(Minute) (the Max waiting time for the OMC startup)
|
||||
WaitTime=1
|
||||
|
||||
|
||||
|
||||
21
wxc2_omc/configuration/nibConf/defaultPara/smsc_csta.conf
Executable file
21
wxc2_omc/configuration/nibConf/defaultPara/smsc_csta.conf
Executable file
@@ -0,0 +1,21 @@
|
||||
# This file defines the SMSC CSTA row
|
||||
# The max number of row is 20
|
||||
# Attention: When you want to define the Entity name, the name of "MS" "All" and "Other" is reserved
|
||||
|
||||
# define the entity who send short message to SMSC
|
||||
Receive from:
|
||||
MS
|
||||
PPS
|
||||
VMS
|
||||
#VMS+PPS
|
||||
Other
|
||||
#All
|
||||
|
||||
# define the entity who receive short message from SMSC
|
||||
Send to:
|
||||
MS
|
||||
PPS
|
||||
VMS
|
||||
#VMS+PPS
|
||||
Other
|
||||
#All
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/smsc_parambit.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/smsc_parambit.conf
Executable file
Binary file not shown.
5
wxc2_omc/configuration/nibConf/defaultPara/smsc_sys.conf
Executable file
5
wxc2_omc/configuration/nibConf/defaultPara/smsc_sys.conf
Executable file
@@ -0,0 +1,5 @@
|
||||
#SMSC system configure file
|
||||
|
||||
#IP info of SMSC
|
||||
wxc2-0=172.18.98.1;
|
||||
wxc2-1=172.18.99.1;
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/system.ini
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/system.ini
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/vlr.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/vlr.conf
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultPara/vlr_conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/vlr_conf
Executable file
Binary file not shown.
2
wxc2_omc/configuration/nibConf/defaultPara/wxc2_sys.conf
Executable file
2
wxc2_omc/configuration/nibConf/defaultPara/wxc2_sys.conf
Executable file
@@ -0,0 +1,2 @@
|
||||
mss-0=172.18.98.1;
|
||||
mss-1=172.18.99.1;
|
||||
4
wxc2_omc/configuration/nibConf/defaultPara/wxc2exit.txt
Executable file
4
wxc2_omc/configuration/nibConf/defaultPara/wxc2exit.txt
Executable file
@@ -0,0 +1,4 @@
|
||||
WXC2 procedure exit log
|
||||
Time: Wed Oct 6 21:28:00 2004
|
||||
|
||||
Now module: MSC
|
||||
BIN
wxc2_omc/configuration/nibConf/defaultPara/xap_sysparam.conf
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultPara/xap_sysparam.conf
Executable file
Binary file not shown.
BIN
wxc2_omc/configuration/nibConf/defaultSubs/HlrSubsBk.dat
Executable file
BIN
wxc2_omc/configuration/nibConf/defaultSubs/HlrSubsBk.dat
Executable file
Binary file not shown.
412
wxc2_omc/configuration/nibConf/display.php
Executable file
412
wxc2_omc/configuration/nibConf/display.php
Executable file
@@ -0,0 +1,412 @@
|
||||
<?php
|
||||
if($needGetParam){
|
||||
//send get command
|
||||
echo "<br>Loading parameters!<br>";
|
||||
$commStr='';
|
||||
for($i=0;$i<sizeof($getParamArr);$i++){
|
||||
$tmpCommStr=sysCommSend($getParamArr[$i][sysId],$nGetComm,$getParamArr[$i][oid]);
|
||||
if($DEBUG)echo "<br>tmpCommStr=$tmpCommStr";
|
||||
$commStr.=$tmpCommStr;
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
}
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><br><b>Send the command error, Please check the device state!<br>";
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "Error: $tmpRemark.</b>";
|
||||
break;
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
for($j=0;$j<sizeof($getParamArr);$j++){
|
||||
if($getParamArr[$j][sysTypeNo]==$tmpSysTypeNo)
|
||||
echo "Error: $tmpRemark.({$getParamArr[$j][remark]})</b>";
|
||||
}
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
echo "<br><font size=\"2\" color=\"#0000FF\">Process finished</font><br>";
|
||||
break;
|
||||
}
|
||||
|
||||
for($i=0;$i<sizeof($getParamArr);$i++){
|
||||
$levelWhere = getLevelWhere($getParamArr[$i][oid]);
|
||||
$moveSql = "UPDATE ".$getParamArr[$i][paramTable]." SET initValue = readValue WHERE ".$levelWhere;
|
||||
if($DEBUG) echo "<BR>moveSql=$moveSql";
|
||||
mysqli_query($pubConn,$moveSql);
|
||||
echo mysqli_error($pubConn);
|
||||
}
|
||||
}
|
||||
|
||||
//XAPP Parameters
|
||||
$selSql = "SELECT initValue FROM OBJ_225.param_99
|
||||
WHERE level_1='2' AND level_2<'7' AND level_3='0' ORDER BY level_2 ASC";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$mcc=$tmpArr[0];
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$mnc=$tmpArr[0];
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$cc=$tmpArr[0];
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$ndc=$tmpArr[0];
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$internationalPrefix=$tmpArr[0];
|
||||
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tmpArr=explode("E",$selRows[initValue]);
|
||||
$nationalPrefix=$tmpArr[0];
|
||||
|
||||
//MSRN
|
||||
$selSql = "SELECT initValue FROM OBJ_325.param_99
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='13'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$msrnStart=getBitValue($selRows[initValue],"0.0-7.7");
|
||||
$tmpArr=explode("F",$msrnStart);
|
||||
$msrnStart=$tmpArr[0];
|
||||
|
||||
$msrnEnd=getBitValue($selRows[initValue],"8.0-15.7");
|
||||
$tmpArr=explode("F",$msrnEnd);
|
||||
$msrnEnd=$tmpArr[0];
|
||||
|
||||
//SN
|
||||
$selSql = "SELECT initValue FROM OBJ_223.param_99
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$snStart=getBitValue($selRows[initValue],"1.0-10.7");
|
||||
$tmpArr=explode("F",$snStart);
|
||||
$snStart=$tmpArr[0];
|
||||
|
||||
$selSql = "SELECT initValue FROM OBJ_223.param_99
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='2'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$snEnd=getBitValue($selRows[initValue],"12.0-21.7");
|
||||
$tmpArr=explode("F",$snEnd);
|
||||
$snEnd=$tmpArr[0];
|
||||
if(strlen($snEnd)<=0)
|
||||
$snEnd=$msrnEnd;
|
||||
|
||||
$selSql = "SELECT initValue FROM OBJ_223.param_99
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='1'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
|
||||
//check the nib configiration
|
||||
$gtFlag=getBitValue($selRows[initValue],"0.0-0.7");
|
||||
$gtNumber=getBitValue($selRows[initValue],"1.0-1.7");
|
||||
|
||||
if($gtFlag=0||$gtNumber!=1){
|
||||
$snStart='';
|
||||
$snEnd='';
|
||||
}else{
|
||||
$tmpLength=strlen($cc)+strlen($ndc);
|
||||
$snStart=substr($snStart,$tmpLength);
|
||||
$snEnd=substr($snEnd,$tmpLength);
|
||||
}
|
||||
|
||||
//MSIN
|
||||
$selSql = "SELECT initValue FROM OBJ_223.param_99
|
||||
WHERE level_1='2' AND level_2='2' AND instanceNo='0'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$msinStart=getBitValue($selRows[initValue],"2.0-11.7");
|
||||
$tmpArr=explode("F",$msinStart);
|
||||
$msinStart=$tmpArr[0];
|
||||
|
||||
$msinEnd=getBitValue($selRows[initValue],"12.0-21.7");
|
||||
$tmpArr=explode("F",$msinEnd);
|
||||
$msinEnd=$tmpArr[0];
|
||||
|
||||
//check the nib configiration
|
||||
$gtFlag=getBitValue($selRows[initValue],"0.0-0.7");
|
||||
$gtNumber=getBitValue($selRows[initValue],"1.0-1.7");
|
||||
|
||||
if($gtFlag==0||$gtNumber!=6){
|
||||
$msinStart='';
|
||||
$msinEnd='';
|
||||
}else{
|
||||
$tmpLength=strlen($mcc)+strlen($mnc);
|
||||
$msinStart=substr($msinStart,$tmpLength);
|
||||
$msinEnd=substr($msinEnd,$tmpLength);
|
||||
|
||||
}
|
||||
|
||||
|
||||
//PSTN Parameters
|
||||
$selSql = "SELECT initValue FROM OBJ_322.param_99
|
||||
WHERE level_1='2' AND level_2='1' AND level_3='4' AND instanceNo='0'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>selSql=$selSql";
|
||||
$selResult=mysqli_query($pubConn,$selSql);
|
||||
echo mysqli_error($pubConn);
|
||||
$selRows=mysqli_fetch_array($selResult);
|
||||
$tgEnableFlag=getBitValue($selRows[initValue],"4.0-4.0");
|
||||
$tgCategory=getBitValue($selRows[initValue],"4.3-4.5");
|
||||
|
||||
if($tgEnableFlag==1&&$tgCategory==0)
|
||||
{
|
||||
$dpc=getBitValue($selRows[initValue],"0.0-3.7");
|
||||
$dpc=$dpc-0;
|
||||
$niType=getBitValue($selRows[initValue],"5.0-5.7");
|
||||
$niLength=getBitValue($selRows[initValue],"12.0-12.7");
|
||||
$ni=$niLength*2+$niType/2;
|
||||
|
||||
$levelWhere = getLevelWhere($NetOPCArr[$ni][0]);
|
||||
$tmpSql="SELECT initValue FROM OBJ_222.param_99 WHERE $levelWhere";
|
||||
if($DEBUG)
|
||||
echo "<br>tmpSql=$tmpSql";
|
||||
$tmpResult=mysqli_query($pubConn,$tmpSql);
|
||||
$tmpRows=mysqli_fetch_array($tmpResult);
|
||||
$opc= $tmpRows[initValue];
|
||||
$opc=$opc-0;
|
||||
}
|
||||
?>
|
||||
|
||||
<br>
|
||||
<!--upload MSS parameters-->
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" >
|
||||
<?php
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=100% align=center>";
|
||||
echo "<input type=\"button\" value=\"Upload MSS Test Configuration\" name=\"uploadDefault\" onClick=\"confCheck(1)\">";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>"
|
||||
?>
|
||||
<br>
|
||||
|
||||
<!--upload BSS parameters-->
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" >
|
||||
<?php
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=100% colspan=2 align=center>";
|
||||
echo "<font size=3><b>Upload BSS Parameters</b></font>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">BSS IP Address</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"bssIpAddr\" maxlength=\"32\" size=\"32\" class=\"text\"> Example:172.18.128.106</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">BSS Configuration File Directory</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"bssConfFileDirectory\" maxlength=\"32\" size=\"32\" class=\"text\"> Example: /hd0/iw07_00.010/compile/cfg</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td colspan=2>";
|
||||
echo "<input type=\"submit\" name=\"uploadBss\" value=\"Submit\">";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>"
|
||||
?>
|
||||
<br>
|
||||
|
||||
<!--configure the mss parameters to BSS-->
|
||||
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" >
|
||||
<?php
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=100% colspan=2 align=center>";
|
||||
echo "<font size=3><b>Connect UNIB To BSS</b></font>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//mcc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">MCC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"mcc\" maxlength=\"15\" size=\"15\" value= \"$mcc\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
//mnc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">MNC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"mnc\" maxlength=\"15\" size=\"15\" value= \"$mnc\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
//cc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">CC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"cc\" maxlength=\"15\" size=\"15\" value= \"$cc\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
//ndc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">NDC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"ndc\" maxlength=\"15\" size=\"15\" value= \"$ndc\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
//IMSI Range
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">MSIN</td>";
|
||||
echo "<nobr><td width=\"60%\"><input type=\"text\" name=\"msinStart\" maxlength=\"15\" size=\"15\" value= \"$msinStart\" class=\"text\"> - ";
|
||||
echo "<input type=\"text\" name=\"msinEnd\" maxlength=\"15\" size=\"15\" value= \"$msinEnd\" class=\"text\"></td></nobr>";
|
||||
|
||||
|
||||
//sn
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">SN</td>";
|
||||
echo "<nobr><td width=\"60%\"><input type=\"text\" name=\"snStart\" maxlength=\"15\" size=\"15\" value= \"$snStart\" class=\"text\"> - ";
|
||||
echo "<input type=\"text\" name=\"snEnd\" maxlength=\"15\" size=\"15\" value= \"$snEnd\" class=\"text\"></td></nobr>";
|
||||
echo "</tr>";
|
||||
|
||||
//MSRN Range
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">MSRN Range</td>";
|
||||
echo "<nobr><td width=\"60%\"><input type=\"text\" name=\"msrnStart\" maxlength=\"15\" size=\"15\" value= \"$msrnStart\" class=\"text\"> - ";
|
||||
echo "<input type=\"text\" name=\"msrnEnd\" maxlength=\"15\" size=\"15\" value= \"$msrnEnd\" class=\"text\"></td></nobr>";
|
||||
echo "</tr>";
|
||||
|
||||
//international prefix
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">International Prefix</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"internationalPrefix\" maxlength=\"15\" size=\"15\" value= \"$internationalPrefix\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
//national prefix
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">National Prefix</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"nationalPrefix\" maxlength=\"15\" size=\"15\" value= \"$nationalPrefix\" class=\"text\"></td>";
|
||||
echo "</tr>";
|
||||
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td colspan=2>";
|
||||
echo "<input type=\"submit\" name=\"configureMss\" value=\"Submit\" >";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "</table>";
|
||||
?>
|
||||
<br>
|
||||
|
||||
<!--configure the mss parameters to PSTN-->
|
||||
<table border="1" width="100%" cellpadding="2" cellspacing="0" bordercolor="#666666" bordercolordark="#FFFFFF" >
|
||||
<?php
|
||||
echo "<tr bgcolor=\"#E6E6E6\">";
|
||||
echo "<td width=100% colspan=2 align=center>";
|
||||
echo "<font size=3><b>Connect UNIB To PSTN</b></font>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//Network Indicator
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">Network Indicator</td>";
|
||||
echo "<td>";
|
||||
echo "<select name=\"ni\">";
|
||||
for ($i=0;$i<sizeof($NetOPCArr);$i++){
|
||||
echo "<option value=\"$i\" ";
|
||||
if ($i == $ni){
|
||||
echo "selected";
|
||||
}
|
||||
echo ">{$NetOPCArr[$i][1]}</option>";
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//opc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">OPC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"opc\" maxlength=\"15\" size=\"15\" value= \"$opc\" class=\"text\">(Hex)</td>";
|
||||
echo "</tr>";
|
||||
|
||||
//dpc
|
||||
echo "<tr>";
|
||||
echo "<td width=\"40%\">DPC</td>";
|
||||
echo "<td width=\"60%\"><input type=\"text\" name=\"dpc\" maxlength=\"15\" size=\"15\" value= \"$dpc\" class=\"text\">(Hex)</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td colspan=2>";
|
||||
echo "<input type=\"submit\" name=\"configurePstn\" value=\"Submit\" >";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "</table>";
|
||||
?>
|
||||
38
wxc2_omc/configuration/nibConf/mssStart
Executable file
38
wxc2_omc/configuration/nibConf/mssStart
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
tmptty=`tty`
|
||||
tmptty=`basename $tmptty`
|
||||
tmpname=`whoami`
|
||||
ip="$1"
|
||||
inp1="ems
|
||||
"
|
||||
inp2="Ems123!
|
||||
"
|
||||
|
||||
inputfile="inabc"
|
||||
outputfile="out.log"
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
mknod $inputfile p
|
||||
touch $outputfile
|
||||
|
||||
exec 7<>$outputfile
|
||||
exec 8<>$inputfile
|
||||
|
||||
telnet $ip <&8 >&7 &
|
||||
sleep 2; echo $inp1 >>$inputfile
|
||||
sleep 2; echo $inp2 >>$inputfile
|
||||
|
||||
#tail -f $outputfile &
|
||||
|
||||
sleep 3; echo "su -" >>$inputfile
|
||||
sleep 2; echo "rootaa" >>$inputfile
|
||||
sleep 2; echo "/usr/local/wxc2/tools/myipcrm" >>$inputfile
|
||||
sleep 3; echo "wxc2d start" >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
sleep 2; echo "exit" >>$inputfile
|
||||
|
||||
rm -fr $inputfile
|
||||
rm -fr $outputfile
|
||||
|
||||
434
wxc2_omc/configuration/nibConf/nibConf.php
Executable file
434
wxc2_omc/configuration/nibConf/nibConf.php
Executable file
@@ -0,0 +1,434 @@
|
||||
<?php
|
||||
/*********************************************************
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>network in a box
|
||||
<20><><EFBFBD>ù<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: header.inc
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
|
||||
<20><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD>ߣ<EFBFBD>Cui Ticun 2006-05-25
|
||||
|
||||
<EFBFBD><EFBFBD>ע<EFBFBD>ͣ<EFBFBD>
|
||||
NO.1
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
ʱ<EFBFBD>䣺
|
||||
<EFBFBD><EFBFBD>˵<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*********************************************************/
|
||||
require("../../inc/header.inc");
|
||||
$DEBUG = 0;
|
||||
|
||||
$helpId="2.1.5";
|
||||
|
||||
$nGetComm = 0;
|
||||
$nSetComm = 3;
|
||||
|
||||
$nProcFail = 0;//failure
|
||||
$nWaitProc = 1;//wait
|
||||
$nInProc = 2;
|
||||
$nOutProc = 3;
|
||||
|
||||
$nSubSysParam = 0;
|
||||
$nGlobalSubSysParam = 1;
|
||||
$nGlobalSysParam = 2;
|
||||
|
||||
$maxNum=120;
|
||||
|
||||
$ftpInfo=getMSSFtpAccount();
|
||||
|
||||
$pubDb = 'OMC_PUB';
|
||||
$sysInfoTable = 'OMC_PUB.sysInfo';
|
||||
$elementConfTable = 'OMC_PUB.elementExistConf';
|
||||
$sysCommTable = 'OMC_PUB.parameterComm';
|
||||
|
||||
$defaultParaDirectory='./defaultPara';
|
||||
$defaultSubsDirectory='./defaultSubs';
|
||||
|
||||
$bssParaDirectory ='./bssPara';
|
||||
|
||||
$resetCmdArr=array(
|
||||
array('remark' => 'MTP3 parameters','sysTypeNo' => '222', 'sysId' => '222_99_99', 'oid' => '3.7', 'value' => '01'),
|
||||
array('remark' => 'SCCP parameters','sysTypeNo' => '223','sysId' => '223_99_99', 'oid' => '3.2', 'value' => '00'),
|
||||
array('remark' => 'MSC parameters','sysTypeNo' => '322','sysId' => '322_99_99', 'oid' => '3.2', 'value' => '5A'),
|
||||
array('remark' => 'VLR parameters','sysTypeNo' => '325','sysId' => '325_0_0', 'oid' => '3.3', 'value' => '00'),
|
||||
// reload subs
|
||||
array('remark' => 'HLR subscribers','sysTypeNo' => '330','sysId' => '330_99_99', 'oid' => '2.1.19', 'value' => '01')
|
||||
);
|
||||
|
||||
|
||||
$saveCmdArr=array(
|
||||
array('remark' => 'MTP3 parameters','sysTypeNo' => '222', 'sysId' => '222_99_99', 'oid' => '3.7', 'value' => '02'),
|
||||
array('remark' => 'SCCP parameters','sysTypeNo' => '223','sysId' => '223_99_99', 'oid' => '3.2', 'value' => '02'),
|
||||
array('remark' => 'XAPP parameters','sysTypeNo' => '225','sysId' => '225_99_99', 'oid' => '3.2', 'value' => '01'),
|
||||
array('remark' => 'MSC parameters','sysTypeNo' => '322','sysId' => '322_99_99', 'oid' => '3.2', 'value' => 'B5'),
|
||||
array('remark' => 'VLR parameters','sysTypeNo' => '325','sysId' => '325_0_0', 'oid' => '3.3', 'value' => '01'),
|
||||
array('remark' => 'HLR parameters','sysTypeNo' => '330','sysId' => '330_0_0', 'oid' => '2.2.2', 'value' => '01'),
|
||||
array('remark' => 'AUC parameters','sysTypeNo' => '340','sysId' => '340_99_99', 'oid' => '2.2.2', 'value' => '01'),
|
||||
array('remark' => 'SMSC parameters','sysTypeNo' => '350','sysId' => '350_99_99', 'oid' => '3.3', 'value' => '01')
|
||||
);
|
||||
|
||||
$getParamArr=array(
|
||||
array('remark' => 'MTP3 parameters','sysTypeNo' => '222', 'sysId' => '222_99_99','paramTable'=>'OBJ_222.param_99', 'oid' => '2'),
|
||||
array('remark' => 'SCCP parameters','sysTypeNo' => '223','sysId' => '223_99_99', 'paramTable'=>'OBJ_223.param_99','oid' => '2'),
|
||||
array('remark' => 'XAPP parameters','sysTypeNo' => '225','sysId' => '225_99_99', 'paramTable'=>'OBJ_225.param_99','oid' => '2'),
|
||||
array('remark' => 'MSC parameters','sysTypeNo' => '322','sysId' => '322_99_99', 'paramTable'=>'OBJ_322.param_99','oid' => '2.1.4'),
|
||||
array('remark' => 'VLR parameters','sysTypeNo' => '325','sysId' => '325_99_99', 'paramTable'=>'OBJ_325.param_99','oid' => '2.1.13')
|
||||
);
|
||||
|
||||
|
||||
$NetOPCArr=array(
|
||||
//array('oid', 'name'),
|
||||
array('2.3.1', '14bit international network'),
|
||||
array('2.3.3', '14bit national network'),
|
||||
array('2.3.5', '24bit international network'),
|
||||
array('2.3.7', '24bit national network')
|
||||
);
|
||||
?>
|
||||
|
||||
<script LANGUAGE="JavaScript">
|
||||
function confCheck(actionType)
|
||||
{
|
||||
switch(actionType){
|
||||
case 1:
|
||||
if(confirm('Do you want to upload MSS test configuration?')!=true)
|
||||
window.location.href='<?php echo $PHP_SELF;?>';
|
||||
else
|
||||
window.location.href='<?php echo $PHP_SELF;?>'+"?uploadDefault="+1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<form method="POST" action="<?php echo "$PHP_SELF";?>" name="paraConf" enctype="multipart/form-data">
|
||||
<?php
|
||||
echo "<table border=\"0\" width=\"100%\">";
|
||||
echo "<tr>";
|
||||
echo "<td width=\"50%\" align=\"left\">";
|
||||
echo "$strConfiguration > $strNetwork >NIB";
|
||||
echo "</td>";
|
||||
echo "<td width=\"50%\" align=\"right\" title=\"Help\">";
|
||||
showHelp($helpId);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
?>
|
||||
|
||||
<?php
|
||||
if($uploadDefault){
|
||||
//upload the parameters
|
||||
echo "Uploading 8KE1 card parameters!<br>";
|
||||
|
||||
$updateSql="REPLACE param_0 SELECT * FROM nibPara";
|
||||
if($DEBUG)
|
||||
echo "<br>updateSql=$updateSql";
|
||||
mysqli_query($pubConn,$updateSql);
|
||||
|
||||
$commStr=sysCommSend('111_0_99',$nSetComm,'2');
|
||||
if($DEBUG)echo "<br>commStr=$commStr";
|
||||
|
||||
//check the command status
|
||||
if($commStr==""){
|
||||
echo "<br><font color=\"#FF0000\">Send the command error, Please 8KE1 card's state!</font><br>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$cmmIdStrArr=explode("-",$commStr);
|
||||
|
||||
for($i=0;$i<sizeof($cmmIdStrArr)-1;$i++){
|
||||
if($i==0)
|
||||
$tmpWhere="(commId='$cmmIdStrArr[$i]'";
|
||||
else
|
||||
$tmpWhere=$tmpWhere." OR commId='$cmmIdStrArr[$i]'";
|
||||
}
|
||||
$tmpWhere=$tmpWhere.")";
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(1){
|
||||
if($i > $maxNum){
|
||||
$tmpRemark='Timeout';
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<br><font color=\"#FF0000\">Error: $tmpRemark.</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
|
||||
$selComm = "SELECT commState,remark,objId,sysTypeNo FROM $sysCommTable WHERE $tmpWhere AND commState='$nProcFail'";
|
||||
if($DEBUG) echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
$selRow = mysqli_fetch_array($selRes);
|
||||
$tmpRemark=$selRow[remark];
|
||||
$tmpOid=$selRow[objId];
|
||||
$tmpSysTypeNo=$selRow[sysTypeNo];
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
|
||||
echo "<br><font color=\"#FF0000\">Error: $tmpRemark.</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$selComm = "SELECT commState,remark FROM $sysCommTable WHERE $tmpWhere AND (commState='$nWaitProc' OR commState='$nInProc')";
|
||||
|
||||
if($DEBUG)echo "<br>selComm=$selComm";
|
||||
|
||||
$selRes = mysqli_query($pubConn,$selComm);
|
||||
if($DEBUG) $tmpNum=mysqli_num_rows($selRes);
|
||||
if($DEBUG) echo "<br>tmpNum=$tmpNum";
|
||||
|
||||
if(mysqli_num_rows($selRes)>0){
|
||||
sleep(1);
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
$delComm = " DELETE FROM $sysCommTable WHERE $tmpWhere ";
|
||||
mysqli_query($pubConn,$delComm);
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
break;
|
||||
}
|
||||
|
||||
$getSysIdSql = "SELECT * FROM $sysInfoTable
|
||||
WHERE sysTypeNo='320'
|
||||
ORDER BY baseStat DESC,updateTime DESC";
|
||||
|
||||
if($DEBUG) echo "<br>getSysIdSql=$getSysIdSql";
|
||||
$getSysIdResult=mysqli_query($pubConn,$getSysIdSql);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
while($getSysIdRows=mysqli_fetch_array($getSysIdResult)){
|
||||
$dstSeverIp=$getSysIdRows[ip];
|
||||
echo "<br>Stopping MSS,please wait about 3 minutes!<br>";
|
||||
flush();
|
||||
$tmpScript="./beforeFtp".' '.$dstSeverIp;
|
||||
system($tmpScript);
|
||||
|
||||
//clear heartbeat
|
||||
$delSql="DELETE FROM OMC_PUB.sysStat";
|
||||
mysqli_query($pubConn,$delSql);
|
||||
|
||||
for($i=0;$i<30;$i++){
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
sleep(4);
|
||||
}
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
flush();
|
||||
echo "<br>Uploading MSS parameters and subscribers!<br>";
|
||||
flush();
|
||||
|
||||
$ftpCon=@ftp_connect($dstSeverIp);
|
||||
|
||||
if($ftpCon < 0){
|
||||
echo "<br><font color=\"#FF0000\">Connect $dstSeverIp Failed!</font>";
|
||||
}else{
|
||||
if(!@ftp_login($ftpCon,$ftpInfo[UserName],$ftpInfo[Password])){
|
||||
echo "<br><font color=\"#FF0000\">Login $dstSeverIp Failed!</font>";
|
||||
}else{
|
||||
$finishFlag=1;
|
||||
$directory=$defaultParaDirectory;
|
||||
$mydir=@dir($directory);
|
||||
while($file=$mydir->read()){
|
||||
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")){
|
||||
continue;
|
||||
}elseif($file =="." || $file ==".."){
|
||||
continue;
|
||||
}else{
|
||||
$remoteFileName='/usr/local/wxc2/bin/conf/'.$file;
|
||||
$localFile=$directory.'/'.$file;
|
||||
if($DEBUG)
|
||||
echo "<br>dstSeverIp=$dstSeverIp,remoteFileName=$remoteFileName,localFile=$localFile";
|
||||
if(!@ftp_put($ftpCon,$remoteFileName,$localFile,FTP_ASCII)){
|
||||
echo "<br><font color=\"#FF0000\">Put $file Failed,please check the network configuration and network speed</font>";
|
||||
$finishFlag=0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}//end of while
|
||||
$mydir->close();
|
||||
|
||||
//upload the subscribers
|
||||
$directory=$defaultSubsDirectory;
|
||||
$mydir=@dir($directory);
|
||||
while($file=$mydir->read()){
|
||||
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")){
|
||||
continue;
|
||||
}elseif($file =="." || $file ==".."){
|
||||
continue;
|
||||
}else{
|
||||
$remoteFileName='/usr/local/backup/'.$file;
|
||||
$localFile=$directory.'/'.$file;
|
||||
if(!@ftp_put($ftpCon,$remoteFileName,$localFile,FTP_ASCII)){
|
||||
echo "<br><font color=\"#FF0000\">Put $file Failed,please check the network configuration and network speed</font>";
|
||||
$finishFlag=0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}//end of while
|
||||
$mydir->close();
|
||||
ftp_quit($ftpCon);
|
||||
if($finishFlag==1)
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<br>Starting MSS,please wait about 3 minutes!<br>";
|
||||
flush();
|
||||
$tmpScript="./mssStart".' '.$dstSeverIp;
|
||||
system($tmpScript);
|
||||
|
||||
for($i=0;$i<45;$i++){
|
||||
$tmpSql = "SELECT * FROM OMC_PUB.sysStat WHERE sysTypeNo='200' AND sysNo='9'";
|
||||
if($DEBUG) echo "<br>tmpSql=$tmpSql";
|
||||
$tmpResult=mysqli_query($pubConn,$tmpSql);
|
||||
echo mysqli_error($pubConn);
|
||||
if(mysqli_num_rows($tmpResult)>0)
|
||||
break;
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
sleep(4);
|
||||
}
|
||||
if($i==30)
|
||||
echo "<font size=\"2\" color=\"#FF0000\">Starting MSS failed,please check it</font>";
|
||||
else
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
flush();
|
||||
}
|
||||
|
||||
echo "<br><font size=\"2\" color=\"#0000FF\">Process finished</font><br>";
|
||||
}
|
||||
|
||||
if($uploadBss){
|
||||
echo "<br>Uploading BSS parameters!<br>";
|
||||
flush();
|
||||
if($DEBUG)
|
||||
echo "<br>bssIpAddr=$bssIpAddr";
|
||||
|
||||
if(!isset($bssIpAddr)||strlen($bssIpAddr)<=0){
|
||||
echo "<br><font color=\"#FF0000\">BSS's ip is error</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$ftpCon=@ftp_connect($bssIpAddr);
|
||||
if($ftpCon < 0){
|
||||
echo "<br><font color=\"#FF0000\">BSS's ip is error or connect $bssIpAddr Failed!</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}else{
|
||||
if(!@ftp_login($ftpCon,'','')){
|
||||
echo "<br><font color=\"#FF0000\">BSS's ip is error or login $bssIpAddr Failed!</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}else{
|
||||
if(!isset($bssConfFileDirectory)||strlen($bssConfFileDirectory)<=0){
|
||||
echo "<br><font color=\"#FF0000\">BSS's directory is error</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}else{
|
||||
$directory=$bssParaDirectory;
|
||||
$mydir=@dir($directory);
|
||||
while($file=$mydir->read()){
|
||||
if((is_dir("$directory/$file")) AND ($file!=".") AND ($file!="..")){
|
||||
continue;
|
||||
}elseif($file =="." || $file ==".."){
|
||||
continue;
|
||||
}else{
|
||||
$remoteFileName=$bssConfFileDirectory.'/'.$file;
|
||||
$localFile=$directory.'/'.$file;
|
||||
if($DEBUG)
|
||||
echo "<br>bssIpAddr=$bssIpAddr,remoteFileName=$remoteFileName,localFile=$localFile";
|
||||
if(!@ftp_put($ftpCon,$remoteFileName,$localFile,FTP_BINARY)){
|
||||
echo "<br><font color=\"#FF0000\">BSS's directory is error or put $file Failed</font>";
|
||||
require("./display.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
}//end of while
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
flush();
|
||||
|
||||
$mydir->close();
|
||||
ftp_quit($ftpCon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "<br>Rebooting BSS,please wait about 3 minutes!<br>";
|
||||
flush();
|
||||
|
||||
$tmpScript="./bssReboot".' '.$bssIpAddr;
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>tmpScript=$tmpScript";
|
||||
|
||||
system($tmpScript);
|
||||
|
||||
//clear heartbeat
|
||||
$delSql="DELETE FROM OMC_PUB.sysStat";
|
||||
mysqli_query($pubConn,$delSql);
|
||||
|
||||
for($i=0;$i<4;$i++){
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
sleep(4);
|
||||
}
|
||||
|
||||
for($i=0;$i<60;$i++){
|
||||
$getStatSql = "SELECT detailStat FROM OMC_PUB.sysStat
|
||||
WHERE sysTypeNo='111' AND sysNo='0'";
|
||||
|
||||
if($DEBUG)
|
||||
echo "<br>getStatSql=$getStatSql";
|
||||
$getStatResult=mysqli_query($pubConn,$getStatSql);
|
||||
echo mysqli_error($pubConn);
|
||||
|
||||
if($getStatRows=mysqli_fetch_array($getStatResult)){
|
||||
$ALink_stat=getBitValue($getStatRows[detailStat],"25.1-25.1");
|
||||
//echo "<br>ALink_stat=$ALink_stat";
|
||||
if($ALink_stat==1){
|
||||
break;
|
||||
}else{
|
||||
echo "<img border=\"0\" src=\"../../images/arrow.gif\" width=\"10\" height=\"10\">";
|
||||
flush();
|
||||
sleep(4);
|
||||
}
|
||||
}else{
|
||||
echo "<font size=\"2\" color=\"#FF0000\">Cannot receive 8KE1 card heartbeat,please check 8KE1 card</font>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
if($i==60)
|
||||
echo "<font size=\"2\" color=\"#FF0000\">The A link status is error,please check it</font>";
|
||||
else
|
||||
echo "<font size=\"2\" color=\"#0000FF\">Finished</font>";
|
||||
echo "<br><font size=\"2\" color=\"#0000FF\">Process finished</font>";
|
||||
}
|
||||
|
||||
if($configureMss){
|
||||
require("./configureForBss.php");
|
||||
}
|
||||
|
||||
if($configurePstn){
|
||||
require("./configureForPstn.php");
|
||||
}
|
||||
|
||||
require("./display.php");
|
||||
?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
44
wxc2_omc/configuration/nibConf/pm.cmd
Executable file
44
wxc2_omc/configuration/nibConf/pm.cmd
Executable file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (c) 1994, 1995
|
||||
# interWAVE Communications Inc, Redwood City, CA USA. All rights reserved.
|
||||
#
|
||||
# $Header: /sw2/cvs/iw/compile/pm.cmd,v 1.1.2.2 1999/08/17 22:34:23 cwlin Exp $
|
||||
#
|
||||
# DESCRIPTION:
|
||||
#
|
||||
# cwlin - This file is a Post Mortem Advanced command file which is used for
|
||||
# collecting more information besides tt(), ti(), memShow and i()
|
||||
# before sysmon reboots the unit.
|
||||
# Here are some limitation for the syntax:
|
||||
#
|
||||
# 1. For all the comments, there has to be a "#" at the VERY beginning
|
||||
# of every line, which means no blank in front.
|
||||
# # This is a comment
|
||||
#
|
||||
# 2. Only a FUNCTION can be considered as a command.
|
||||
# Flags (such as SS7Down) will get a printout as "This is not a command!"
|
||||
# and will not take effect.
|
||||
#
|
||||
# 3. There are at most 100 commands can be put in.
|
||||
#
|
||||
# 4. Can only support up to TWO arguments in each command, either numeric or textual ones:
|
||||
# wxlog "all","error"
|
||||
# cpShowCCB 25
|
||||
#
|
||||
# 5. Can't support arguments with space within the double quote.
|
||||
# System will ignore everything afterward.
|
||||
# wxlog "all", " error " ---- BAD argument
|
||||
#
|
||||
# 6. Some commands will not response if log_none has not been read in advance.
|
||||
# So better put "log_none" at first to be safe.
|
||||
#
|
||||
# 7. There can be only one command in each line.
|
||||
# Only the FIRST one will be taken if it's written like "ShowLct; xsWhat"
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# Example command
|
||||
log_none
|
||||
44
wxc2_omc/configuration/nibConf/pm_bts.cmd
Executable file
44
wxc2_omc/configuration/nibConf/pm_bts.cmd
Executable file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright (c) 1994, 1995
|
||||
# interWAVE Communications Inc, Redwood City, CA USA. All rights reserved.
|
||||
#
|
||||
# $Header: /sw2/cvs/iw/compile/pm_bts.cmd,v 1.1.2.2 1999/08/17 22:37:31 cwlin Exp $
|
||||
#
|
||||
# DESCRIPTION:
|
||||
#
|
||||
# cwlin - This file is a Post Mortem Advanced command file which is used for
|
||||
# collecting more information besides tt(), ti(), memShow and i()
|
||||
# before sysmon reboots the unit.
|
||||
# Here are some limitation for the syntax:
|
||||
#
|
||||
# 1. For all the comments, there has to be a "#" at the VERY beginning
|
||||
# of every line, which means no blank in front.
|
||||
# # This is a comment
|
||||
#
|
||||
# 2. Only a FUNCTION can be considered as a command.
|
||||
# Flags (such as SS7Down) will get a printout as "This is not a command!"
|
||||
# and will not take effect.
|
||||
#
|
||||
# 3. There are at most 100 commands can be put in.
|
||||
#
|
||||
# 4. Can only support up to TWO arguments in each command, either numeric or textual ones:
|
||||
# wxlog "all","error"
|
||||
# cpShowCCB 25
|
||||
#
|
||||
# 5. Can't support arguments with space within the double quote.
|
||||
# System will ignore everything afterward.
|
||||
# wxlog "all", " error " ---- BAD argument
|
||||
#
|
||||
# 6. Some commands will not response if log_none has not been read in advance.
|
||||
# So better put "log_none" at first to be safe.
|
||||
#
|
||||
# 7. There can be only one command in each line.
|
||||
# Only the FIRST one will be taken if it's written like "ShowLct; xsWhat"
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
# Example command
|
||||
log_none
|
||||
Reference in New Issue
Block a user