Вы находитесь на странице: 1из 6

Configuration of application counters for HLR-FE

Preparation

1. To install application counters for HLR-FE in CUDB, the configurations script required by this
procedure are needed to download.

Here is my used script, you can scan or study it, if you cannot understand the procedure

very well, I suggest that you consult the CUDB Performance Guide. USER GUIDE

4/1553-HDA 104 03/4 Uen F, all the steps are included in it clearly.

app_counters.pl

2. Certainly we need download the package of HLR-FE counters files, it should include
the following contents:

Here is my package,

19089-CXC1729340_
3_X_H_UNIX_TAR_COMPRESS.zip

3. I think that we should do a basic health check before making any changes in our node.
Several commands should be needed:
cudbSystemStatus
printActiveAlarms
cudbCheckReplication
cudbCheckConsistency
esapmview | wc l
esapmview (if the value of esapmview | wc l is big, it will be long )
mysql -pRMA3_atm2 -hDS1_0 -P15010
use cudb_application_counters;
show tables;
select * from <table>;

Uninstall

In order to install application counters for HLR-FE in CUDB, generally, we first uninstall the
previous application counters for HLR-FE completely.
1. Check the directory in CUDB SC, if there already exists the directory /cluster/app_counters,
We should make sure if an available script like app_counters.pl is there too. If not, create
the directory /cluster/app_counters, and SFTP the script required by procedure.
mkdir -p /cluster/app_counters
2. Issue the command to uninstall, firstly, in master CUDB node, later in slave CUDB nodes
cd /cluster/app_counters
chmod +x app_counters.pl
./app_counters.pl u
You will see the log as following:
CUDB1 SC_2_1# ./app_counters.pl -u
* Please choose a system application counters installation option
* A. Uninstallation of HLR application counters
* B. Uninstallation of HSS application counters
* C. Uninstallation of All application counters
* D. Exit
* Please enter your choice(a/b/c/d):c
* Proceeding with HLR & HSS application counters uninstallation.

----------------------------------------------------------------------------------------------------------------------------
* Reading System Hosts info... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Reading System config... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Checking Active OAM blade... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Checking Active Alarms... * [none]

----------------------------------------------------------------------------------------------------------------------------
* Checking System Status.. * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Deleting previous counters installation crontab entries.. * [ ok ]
----------------------------------------------------------------------------------------------------------------------------
* Deleting previous counter installation files... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Reloading Jobs..
* Stopping PmAgent in node 10.22.0.1 ... OK
* Waiting for ESA PmAgent to go off line.
* ESA PmAgent has been successfully stopped.
* Starting PmAgent in node 10.22.0.1 ... OK

----------------------------------------------------------------------------------------------------------------------------
* Checking Mastership of PL... * [ ok ]
* This node has the Mastership of the PL!!!
* Proceeding with Master Uninstallation...
* Deleting procedures in DS1_0.. * [ ok ]
* Deleting procedures in DS1_1.. * [ ok ]
* Deleting procedures in PL0.. * [ ok ]
* Dropping database cudb_application_counters in PL0.. * [ ok ]
* Deleting procedures in PL1.. * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
3. Delete indexes for a Master PL:
mysql -h PL0 -pRMA3_atm2 -P 15000 -e "USE cudb_user_data; DROP INDEX
AU1_AKATYPE_INDX01 ON AU1; DROP INDEX CP1_IMSI_INDX01 ON CP1;"
Delete indexes for all master DSs:
mysql -h DS1_0 -pRMA3_atm2 -P 15010 -e "USE cudb_user_data; DROP INDEX
AU1_AKATYPE_INDX01 ON AU1; DROP INDEX CP1_IMSI_INDX01 ON CP1;"
(only needed in the master node)
4. esapmview | wc l
5. ./app_counters.pl p
The log will like below:
----------------------------------------------------------------------------------------------------------------------------
* Reading System Hosts info... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Reading System config... * [ ok ]

----------------------------------------------------------------------------------------------------------------------------
* Printing Tables, Procedures and Indexes info in app_print_2013-08-09_210611.log
..-ERROR 1049 (42000) at line 1: Unknown database 'cudb_application_counters' * [fail]
child exited with value 1

Install

1. SFTP the package of HLR-FE counters files in the directory /cluster/app_counters/too


2. un-compress counter file:
tar -xzvf 19089-CXC1729340_3_X_H_UNIX_TAR_COMPRESS.zip
3. ./app_counters.pl i
* Please choose a system application counters installation option
* A. Installation of HLR application counters
* B. Installation of HSS application counters
* C. Installation of All application counters
* D. Exit
* Please enter your choice(a/b/c/d):a
* Proceeding with HLR application counter installation.

-------------------------------------------------------------------------------------------------------------
---------------
* Copying Files...HLR... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Reading System Hosts info... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Reading System config... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Checking Active OAM blade... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Checking Active Alarms... * [none]

-------------------------------------------------------------------------------------------------------------
---------------
* Checking System Status.. * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Checking Mastership of PL... * [ ok ]
* This node has the Mastership of the PL!!!
* Proceeding with Master Installation...
* Creating procedures in DS1_0... * [ ok ]
* Creating procedures in DS1_1... * [ ok ]
* Creating procedures in PL0... * [ ok ]
* Creating tables in PL0.. * [ ok ]
* Creating procedures in PL1... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Modification of the cron files... * Modification of the cron files...
* Reading Counters config files... * [ ok ]
* Please choose an installation option
* A. Installation of HLR counters (Includes all HLR default and regional counters)
* B. Installation of HLR default counters (Excludes all HLR regional counters)
* C. Installation of HLR default counters and custom selection of HLR regional
counters
* D. Custom installation of HLR default and regional counters
* E. Exit
* Please enter your choice(a/b/c/d/e):b
* Modification of crontab... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Creating Jobs File for the active counters... * [ ok ]

-------------------------------------------------------------------------------------------------------------
---------------
* Reloading Jobs..
* Stopping PmAgent in node 10.22.0.1 ... OK
* Waiting for ESA PmAgent to go off line.
* ESA PmAgent has been successfully stopped.
* Starting PmAgent in node 10.22.0.1 ... OK

-------------------------------------------------------------------------------------------------------------
---------------
4. cudbSystemStatus c
5. the following commamnds only needed to be issued in the master node:
grep "position" /cluster/home/cudb/common/config/cudbSystem.xml
<CudbLocalDs position="1" dsGroupId="1">
<CudbRemoteDs position="1" dsGroupId="1">
6. Setup indexes for a Master PL:
mysql -h PL0 -pRMA3_atm2 -P 15000 -e "USE cudb_user_data;CALL
AUX_ADD_INDEX_IF_NOT_EXISTS('AU1','IMSI_INDEX', 'IMSI'); CALL
AUX_ADD_INDEX_IF_NOT_EXISTS('CP5', 'RID_INDEX', 'RID');"
Setup indexes for all Master DS:
mysql -h DSX_0 -pRMA3_atm2 -P 150X0 -e "USE cudb_user_data; CALL
AUX_ADD_INDEX_IF_NOT_EXISTS('AU1', 'IMSI_INDEX','IMSI'); CALL
AUX_ADD_INDEX_IF_NOT_EXISTS ('CP5', 'RID_INDEX', 'RID');"
(the X should be replaced by the printout of grep "position"
/cluster/home/cudb/common/config/cudbSystem.xml, position)
7. esapmview | wc l
8. ./app_counters.pl p
-----------------------------------------------------------------------------------------------------------------------
-----
* Reading System Hosts info... * [ ok ]

-----------------------------------------------------------------------------------------------------------------------
-----
* Reading System config... * [ ok ]

-----------------------------------------------------------------------------------------------------------------------
-----
* Printing Tables, Procedures and Indexes info in app_print_2013-08-09_213431.log .. *
[ ok ]

-----------------------------------------------------------------------------------------------------------------------
-----