User Guide For KPI Reporter
User Guide For KPI Reporter
Document-ID:
2/61 Specification User guide for KPI Reporter
Table of Contents
1. Introduction ............................................................................................... 4
1.1. Purpose of this document ....................................................................................................... 4
1.2. Documentation History ............................................................................................................ 4
1.3. References ............................................................................................................................. 4
2. Installation ................................................................................................. 5
2.1. Requirements ......................................................................................................................... 5
2.2. Install Microsoft .NET Framework 3.5 SP1 .............................................................................. 5
2.3. Install PostgreSQL .................................................................................................................. 6
2.4. Configure Microsoft Excel ....................................................................................................... 8
2.5. Configure Microsoft Excel 2007 .............................................................................................. 9
2.6. Install KPI Reporter ............................................................................................................... 10
2.7. SQL Settings......................................................................................................................... 12
2.7.1. PostgreSQL settings ........................................................................................................ 12
2.7.2. PostgreSQL autovacuum ................................................................................................. 13
2.7.3. MSSQL settings (If possible use PostgreSQL instead)..................................................... 15
6. NE Control .............................................................................................. 25
6.1. NE Settings ........................................................................................................................... 25
6.2. Measurement table handling ................................................................................................. 25
6.3. Templates used information .................................................................................................. 26
6.4. Database Update .................................................................................................................. 26
6.4.1. Select files ....................................................................................................................... 27
6.4.2. Select Directory................................................................................................................ 27
6.4.3. Database update process ................................................................................................ 28
3/61 Specification User guide for KPI Reporter
8. Reporting ................................................................................................ 31
8.1. Toolbar ................................................................................................................................. 31
8.2. Reporting settings ................................................................................................................. 31
8.2.1. General Settings .............................................................................................................. 31
8.2.2. KPI Report ....................................................................................................................... 32
8.2.3. Single Measurement parameters ..................................................................................... 34
8.2.4. Worst items Report .......................................................................................................... 35
8.2.5. Complete HTML Report ................................................................................................... 36
8.2.6. Automated Report ............................................................................................................ 37
1. Introduction
1.1. Purpose of this document
This document contains user guide for KPI Reporter tool. Guide is based on 2G
KPI Report Training&User Guide 2.0 created by Janne Väättäri.
7.2.2012 Janne Kolehmainen v270 (r2209) Group kpi attempt list selection
information added. New Svg
image added.
1.3. References
5/61 Specification User guide for KPI Reporter
2. Installation
2.1. Requirements
Following requirements must be filled to use this tool successfully.
1 Download .NET Framework 3.5 SP1 from Microsoft web page. (Download
isn’t possible with Internet Explorer with NSN package. Use Firefox or
Netscape instead)
2 Start installer.
4 Click Next
!!! Excel 2007 is officially supported from version 2009-10/134 onwards !!!
!!! If you have earlier version of the tool installed, uninstall it first from Control Panel
-> Add/Remove programs. If this is not done, there might be problems. !!!
3 Click Next.
5 Click Next.
6 Click Close.
11/61 Specification User guide for KPI Reporter
Send e-mail to
Nsn, Bts I&V Ta Support (NSN - Global)
(bts_i&[email protected])
You will get license file within few days to you
e-mail.
VACUUM FULL
If your database has been in use for long time and you have used database
cleanup feature it is advisable to run vacuum FULL before setting up the
autovacuum. (see VACUUM for space recovery).
!!! VACUUM FULL is only needed when you have a table that is mostly dead rows -
ie, the vast majority of its contents have been deleted. Even then, there's no point
using VACUUM FULL unless you urgently need that disk space back for other
things or you expect that the table will never again grow to its past size. Do not use
it for table optimization or periodic maintenance, as it's counterproductive. !!!
This can be done also with pgadmin tool (see below for instruction to create server
with the tool). Select correct database from Databases treenode then select Tools
– Maintenance – VACUUM check FULL (only check this if you need to free the
used space for OS) and then click OK
Click OK
14/61 Specification User guide for KPI Reporter
...
Local MSDE2000A
Server: (local)
Username: sa
Password: defined in installation
Purpose
After OMS (NEMU) has postprocessed the measurement data, it writes the data
into a gzip-compressed XML file in directory /var/opt/OMSftproot/xmlfiles
(e:\nemu\inetpub\ftproot\xmlfiles). After writing the file, OMS (Nemu) sends a
notification to NetAct. NetAct downloads the file using FTP and acknowledges the
transfer to OMS (Nemu). When OMS (Nemu) receives the acknowledgement, it
deletes the XML file from the disk. Usually the file is deleted within a few minutes
after its creation.
You can change the OMS (Nemu) configuration so that copies of measurement
files are stored into the /var/opt/OMSftproot/xmlfilesBU
(e:\nemu\inetpub\ftproot\xmlfilesBU) directory, from where they are automatically
deleted 7 days after creation. You can use the stored measurement file copies for
manual download of measurement data if some data has been lost in NetAct
processing.
17/61 Specification User guide for KPI Reporter
Expected outcome
The file duplication is active. Copies of measurement files are written into the
/var/opt/OMSftproot/xmlfilesBUdirectory.
Steps
Expected outcome
After the process restart, the file duplication is active. Copies of measurement
files are written into the e:\nemu\inetpub\ftproot\xmlfilesBU directory.
18/61 Specification User guide for KPI Reporter
4. Main menu
Main menu can be used to access different settings and functionality.
New: Clear all network elements and start setting new ones.
Open: Open existing KPI Reporter Settings (*.krs) file (Also old xml files can be
opened).
Save: Save settings to current file. If settings are not saved before then file is
asked before saving.
Save As: Ask for file where to save the settings
Settings: Edit SQL Settings (see chapter 2.7).
Exit: Exit program
4.2. NE menu
Add: Add new network element. Program will open network element settings
window (see chapter 5).
Delete: Remove network element from the list. (see chapter 5.7)
Start Monitoring: Start monitoring to all defined network elements. (see
chapter 6.4)
Stop Monitoring: Stop monitoring to all defined network elements. Asks "Do
you want to wait until current table is synchronized? If you select
yes then currently updated table will be synchronized first and after that process
is stopped. If you select no then process is stopped immediately.
Add Network Reporter: Open network level reporter where you are able to
create reports over multiple network elements of same type. All network
elements must be in same database with different element id. (see chapter 9)
Start tracelog: Start kpireporter internal message tracing. (see chapter Error!
Reference source not found.)
Extented Trace: Enables extended trace information to be shown to external
traceviewer tool (see chapter Error! Reference source not found.)
About: Show about dialog or update license.
19/61 Specification User guide for KPI Reporter
NE Number: define number for Network element. !!! If you are using multiple
network elements in one database (KPI Database name) make sure that you have
individual number for every NE !!!
NE Name: This is extra information that can be used to identify network element
Network Element: Select wanted network element type. List shows only NE’s that
are enabled in license file.
Connection Type:
o FTP Transfer: Data is read directly from NE
o Select Files: Select measurement files by hand (only 500 files once possible)
o Select Directory: Go through all files in specified directory.
o Poll Directory: Poll specified directory to check for new files. Files are deleted
after read.
o SCP Transfer: Data is read directly from NE using SSH and SFTP connection
KPI Database name: Select database to be used with tool. You can create new
one be clicking Add (see chapter 5.1.1). If saving sql settings are set you can also
delete databases. This will delete db permanently and is not recoverably. !!! If
Reading DB List… is showing, wait until box is back to white !!!
Only transfer recent data: If you are transferring data directly from network
element then you can only transfer data for last few days. !!! If you are transferring
data from files which are older than 7 days, uncheck this option. !!!
Days read before current date: Determines how many days before current date
data is transferred to database. !!! Available only when Only transfer recent data is
checked. !!!
Fill in missing data: If checked then latest added measurement data is not
checked from database. All the available measurement data is gone through. Rows
that are added already are skipped. !!! Data addition will take longer time. !!!
Match NE Id to measurement file: If checked then network element id is read
from measurement file. Data is only imported if neid’s match. (not used with bsc)
Update Temp Table: If automatic reporting is used, tick this. Otherwise it is best
not to include this. It will create temporary table for every measurement and keep
last 27 hours of data there.
20/61 Specification User guide for KPI Reporter
Available Tables: Contains tables that are defined in network element settings.
(see chapter Error! Reference source not found.) Tables that are moved to
Added tables column is not shown here.
->: You can move one or more selected tables to added tables column.
<-: You can delete one or more selected tables in Added tables column. After
deletion deleted tables will be moved to available tables column.
Added Tables: Contains tables that are created to database.
5.2. Connection
These settings are enabled only if FTP or SCP Transfer is selected.
5.3. Polling
Available when FTP Transfer or Poll directory selected.
Delay between Pollings (minutes): How many minutes to wait after last polling
before checking measurements again.
Polling Directory: (Only when poll directory selected) Select polled directory.
Delete files after copy: (Only when poll directory selected) Delete files from
directory after files are copied to local disk.
5.4. DB Cleanup
DB Cleanup can be used to automatically delete measurement data from database
to save space (There are limitations with DB size with free MSSQL Server
versions)
5.5. Aggregation
Aggregation is used to compress data to save space. Aggregation combines values
in measurements in time level. Ex. if database contains data with interval 15
minutes and data is aggregated to day level, 4 old data is combined to 1 value and
then 4 old data is deleted. Day aggregation is done first and after that hour level
aggregation.
Enable aggregation to hour level: if this is selected then all data that is older than
set day count is aggregated to hour level.
Days after hour level aggregation is used: set how many days to keep intact
before data is aggregated to hour level. Ex. value is set to 2; last data in database
is dated to 1.1.2008. All data dated older than 31.12.2007 is aggregated. Minimum
value is 1, so last addition day is never aggregated.
Enable aggregation to day level: if this is selected then all data that is older than
set day count is aggregated to day level.
Days after day level aggregation is used: set how many days to keep intact
before data is aggregated to day level. Ex. value is set to 2; last data in database is
dated to 1.1.2008. All data dated older than 31.12.2007 is aggregated. Minimum
value is 1, so last addition day is never aggregated.
5.6. Dat-file
These settings can be used to handle gz and dat file handling.
Move KPI data only for selected BTS: If this is set then only data for those BTS’s
that are in BTS list (see chapter xxx) is moved to database.
Save dat files to hard disk: if this is set then dat/gz files are saved to hard disk
after data is saved to database. Filenames are changed to contain data starttime.
Directory: Directory where dat/gz files are saved.
Use CopyIn feature: If this is checked then copyin command is used instead of
insert. This is quicker method to put lot’s of data to database
!!! This is still under testing and if you have any problem with adding data don’t use
this !!!
24/61 Specification User guide for KPI Reporter
6. NE Control
Network Element control can be used to modify NE settings, manage tables and to
start database update.
6.1. NE Settings
You can see defined settings in the read only text box. You can also edit current ne
settings by clicking Edit Settings button. See chapter 0 for NE settings.
List Type:
o Measurements: shows only measurement names.
o Measurements with dates: Shows data start and end date in
measurements (this can take some time to complete or if there is too
many rows in the database it may fail)
o Measurements with intervals: Shows intervals in measurements (this
can take some time to complete or if there is too many rows in the
database it may fail)
o Measurements with row counts: Shows row counts in measurements.
Manage Tables: Open manage database dialog (see chapter 5.1.2).
Compact DB: Executes script to make database size smaller (Database size
doesn’t get smaller automatically even if rows are deleted). !!! Make sure there
isn’t any other connection reading/writing to that database while using this
command !!!
Database size: Shows used database size as well as free space in database
file.
26/61 Specification User guide for KPI Reporter
Start Database Update: Starts database update process (see chapter 6.4.3). If
read directory/select files is selected as connection type directory/files are
asked after you have clicked the button (see chapter 6.4.1 and 6.4.2).
Stop Database Update: Stops database update process. Asks "Do you want
to wait until current table is synchronized? If you select yes then
currently updated table will be synchronized first and after that process is
stopped. If you select no then process is stopped immediately.
Auto Scroll: If selected then newest status message will be shown in the
bottom of the status box.
Clear List: All the messages in the status message box is deleted.
Message buffer length: Determines how many messages are shown in status
box. Default is 100.
RNC SW Version: Shows current RNC SW version number.
27/61 Specification User guide for KPI Reporter
Select desired files using shift + mouse click to select all files between first and last
selected file and ctrl + mouse click to select multiple individual files. When all
needed files are selected press Open.
You can see in status window how many rows have been added to specific
database table and also other information as well. When process is finished
Database update stopped message is shown (if select files/directory is selected). If
FTP/SCP Connection or polling is selected then after update process is finished,
system will wait delay between polling time and then start process again. You have
to push stop database update button to stop the process.
29/61 Specification User guide for KPI Reporter
7. BTS Control
BTS Control can be used to retrieve BTS information from BSC dat files, ZEEI and
ZEQO listings, RNC/LTE/I-HSPA measurement files or database (from specific
measurement).
7.1. General
Start BTS List Reading: Start BTS list updating process. If BSC and select
files are selected then you have to first select files you want to use to update
the settings. If network element is RNC then after BTS numbers and names has
been updated it continues to get BTS ip addresses. This process can be
stopped.
NOTE! WBTS list reading uses MML connection to RNC and in there it
connects OMU’s terminal interface. After that it will try to connect each WBTS
using FTP connection and retrieve SW information.
If you don’t want to use this feature click Don’t Update WBTS List in
RNCSettings
If you are using RNC network element and other than FTP transfer then BTS
information is taken from database.
Stop BTS List Reading: If this button is pressed, BTS update process is
stopped.
Read from database: It is also possible to read bts information from database.
When Start BTS list Reading button is pressed tool will connect the current
database and read bts’s from specific measurement
o RNC: cellresource
o LTE: lte_s1ap
o I-HSPA: cell_resource_IH
o BSC: not supported at the moment
!! Measurements have to be selected and data imported this feature to work !!
30/61 Specification User guide for KPI Reporter
With BSC you can import also other information about the network using ZEEI
and ZEQO listings as a help. Update procedure is started in the same way as
normally, but instead of using dat files, ZEEI.txt and ZEQO.txt files used
instead and then tool parses radio network parameters from them. This
information can be used when selecting reported BTS’s.
Click Update BTS List and then change file type to ZEEI/ZEQO listing and
select correct files.
31/61 Specification User guide for KPI Reporter
8. Reporting
Reporting is used to output the data saved in database.
8.1. Toolbar
Start: Starts report creation process.
Stop: Stops automated report generation. Not working in other report types
than Automated Report.
New: Create new settings. All settings are changed to default.
Save: Saves current settings with the name that is Report Name field. If no
name is set the name is asked.
Save As: Saves settings as a new one. New name is asked in separate
dialog.
Report Name: Shows current settings name. Different report settings can be
selected from this combobox.
Reporting Time Periods: Define what periods you want to report. Select data
and time from timebox and click + button.
o Get Dates: You can select desired measurement from the list on the left
from this button and click this button. You will get date from the first and
last value from the selected measurement.
o Daily Period: You can select daily periods that are reporter (ex. Busy
hours)
Highlight Times: You can highlight specified periods in charts with red to show
ex. trial start and stop times. Remember to click the + button.
Selection parameters
o Include All: Include all items in the database.
o Include: Report is created using only items selected in item List.
o Exclude: Report is create using only items that are NOT selected in
item List.
o Clear selections: All checked bts’s are unchecked.
o Selection types
Select BTS: Select which BTS’s to be used in reporting
o Bsc selection types
Select BCF: Select which BCF’s to be used in reporting
Select SEG: Select which Segments to be used in reporting
Select Feature: Select which features are used in reporting
Extra Parameters:
o Include Configuration: WBTS configuration can be included to
powerpoint report (RNC only)
o Put BTSs to individual excel files: If multiple BTS’s are selected and
reporting level is BTS then it is possible to create individual excel files to
every BTS.
o Report using original timezone: Make report using timezone in
original measurement file.
Datatable have to be created with version 09.10.140 or newer !
Supported only with RNC, I-HSPA and LTE.
o Don’t create graphs: If checked then graphs are not created in excel
reports.
34/61 Specification User guide for KPI Reporter
Period: Reporting period; 15min, 1h, 1day. If data only contains data with 1h
interval and period is selected to 15min there are empty spaces in charts.
Create Excel 2007 report: If checked then report is created in xlsx format.
Level:
o NE: Report is done in network element level. You can affect which
BTS’s are used with this with BTS List. Only selected BTS’s is used in
this report.
o BTS: Create report with one or more BTS’s. Select BTS’s from BTS list.
If Put BTSs to individual excel files is selected one Excel is created to
every BTS.
o Cell/TRX: Create report showing also the cell/trx level.
!!! If measurement doesn’t have cell/trx level then values are shown to
cell/trx object 0. This can cause problems with kpi’s that combine data
from two measurement where both doesn’t contain cell/trx level
information !!!
Reporting Time Periods: Define what periods you want to report. Select data
and time from timebox and click + button.
o Get Dates: You can select desired measurement from the list on the left
from this button and click this button. You will get date from the first and
last value from the selected measurement.
o Daily Period: You can select daily periods that are reporter (ex. Busy
hours)
Highlight Times: You can highlight specified periods in charts with red to show
ex. trial start and stop times. Remember to click the + button.
Selection parameters
o Include All: Include all items in the database.
o Include: Report is created using only items selected in item List.
o Exclude: Report is create using only items that are NOT selected in
item List.
o Clear selections: All checked bts’s are unchecked.
o Selection types
Select BTS: Select which BTS’s to be used in reporting
o Bsc selection types
Select BCF: Select which BCF’s to be used in reporting
Select SEG: Select which Segments to be used in reporting
Select Feature: Select which features are used in reporting
KPI List: Select kpi(s) that you are interested in. Each measurement is put to
own Excel file.
35/61 Specification User guide for KPI Reporter
Level:
o BTS: Create report with one or more BTS’s. Select BTS’s from BTS list.
BTS will be shown in the report in own column
o Cell: If selected then worst cell is found out instead of worst BTS.
Period: Reporting period; 15min, 1h, 1day. If data only contains data with 1h
interval and period is selected to 15min there are empty spaces in charts.
Reporting Time Periods: Define what periods you want to report. Select data
and time from timebox and click + button.
o Get Dates: You can select desired measurement from the list on the left
from this button and click this button. You will get date from the first and
last value from the selected measurement.
o Daily Period: You can select daily periods that are reporter (ex. Busy
hours)
Highlight Times: You can highlight specified periods in charts with red to show
ex. trial start and stop times. Remember to click the + button.
Selection parameters
o Include All: Include all items in the database.
o Include: Report is created using only items selected in item List.
o Exclude: Report is create using only items that are NOT selected in
item List.
o Clear selections: All checked bts’s are unchecked.
o Selection types
Select BTS: Select which BTS’s to be used in reporting
o Bsc selection types
Select BCF: Select which BCF’s to be used in reporting
Select SEG: Select which Segments to be used in reporting
Select Feature: Select which features are used in reporting
Number of worst items: How many worst BTS’s/Cell’s/TRX’s are selected to
reporting.
Attempt Limit: If KPI has attempt counter attached to it then attempt limit can
be set. !!! If attempt limit is set in template then this value is not used !!!
Get Worst Periods: Normally you get worst BTS/Cell over whole period. If this
is selected then worst periods to BTS/Cells are found out.
Max number periods / item: How many periods for one bts/cell/trx is shown in
list. !!! If ex. 5 is set and Number of worst items is 5 then it is possible that all
items shown in list is from one item. !!!
36/61 Specification User guide for KPI Reporter
Period: Reporting period; 15min, 1h, 1day. If data only contains data with 1h
interval and period is selected to 15min there are empty spaces in charts.
Reporting Time Periods: Define what periods you want to report. Select data
and time from timebox and click + button.
o Get Dates: You can select desired measurement from the list on the left
from this button and click this button. You will get date from the first and
last value from the selected measurement.
o Daily Period: You can select daily periods that are reporter (ex. Busy
hours)
Highlight Times: You can highlight specified periods in charts with red to show
ex. trial start and stop times. Remember to click the + button.
Selection parameters
o Include All: Include all items in the database.
o Include: Report is created using only items selected in item List.
o Exclude: Report is create using only items that are NOT selected in
item List.
o Clear selections: All checked bts’s are unchecked.
o Selection types
Select BTS: Select which BTS’s to be used in reporting
o Bsc selection types
Select BCF: Select which BCF’s to be used in reporting
Select SEG: Select which Segments to be used in reporting
Select Feature: Select which features are used in reporting
37/61 Specification User guide for KPI Reporter
Selection parameters
o Include All: Include all items in the database.
o Include: Report is created using only items selected in item List.
o Exclude: Report is create using only items that are NOT selected in
item List.
o Clear selections: All checked bts’s are unchecked.
o Selection types
Select BTS: Select which BTS’s to be used in reporting
o Bsc selection types
Select BCF: Select which BCF’s to be used in reporting
Select SEG: Select which Segments to be used in reporting
Select Feature: Select which features are used in reporting
Compare report
o Can be used to compare to different BTS groups in same time span.
Compare report can be selected when automated report generation is
selected. Three separate group compare can be created.
Create Group Compare: Enable group compare to selected
compare number.
Set Compare Start Time: Start the time when to start group
compare.
Group1 Name: Define name for the first group.
Group1: Select BTS’s that are used with first group.
Group2 Name: Define name for the second group.
Group2: Select BTS’s that are used with second group.
38/61 Specification User guide for KPI Reporter
9. Network reporter
Network reported is used to create reports over multiple network elements of same
type. Used network elements must be configured to same settings file.
For other tab pages and settings you can check appropriate chapters from this
document. Only difference is that bts list is retrieved from all network elements
selected and reporting is done over all selected elements.
39/61 Specification User guide for KPI Reporter
10.2.1. Toolbar
New: Create new template. After clicking this button filename is asked.
Add counter: Select counter from counter list exported from Rise
Temporary tables can be used to filter out some values when creating kpi’s.
o
MeasurementName: Name to be used in formula (ex.
Sum(CellResource.c3)
o Formula: Shows formula that is currently generated from the fields.
o Select: SQL query select part
o From: SQL query from part
o Where: SQL query where part.
Edit User TempTables: Edit list of user defined temptables.
45/61 Specification User guide for KPI Reporter
Template settings
ReportType:
o SuccessRatio: Best value is 100%, worst value is 0%. If minimum
value is > 95% then minimum value is set to 95%
SVG Code text box: Svg code text box contains svg xml code that is used
to create svg images. Definition for the svg can be found from
http://www.w3.org/TR/SVG/. Good program for creating svg images is
InkSpace (http://inkscape.org/).
KPI / counter-data is put to images by replacing tags %<kpiname>% ex.
%072084% with periods real kpi data. KPI/counter has to be defined in
KPIList in the group that is using SVGImage reporting type.
!!! SVG image can only been seen in Template editor tab at the
moment !!!
48/61 Specification User guide for KPI Reporter
Group KPI
Single KPI
Settings available in single KPI Charts list. Only addition to attempt and Group
KPI is shown.
Attempt counter:
o KPI: Select attempt counter from KPI list. Will add name and formula
to advanced attempt counter settings.
o Counter: Select attempt counter from counter list. Will add name
and formula to advanced attempt counter settings.
o Disabled: There is no attempt counter in use
Network element level: All selected bts’s are used (in this example
numbers 5, 6 and 7).
BTS level: Graphs for all selected bts’s are shown in individual tabs.
Cell/TRX level: Graphs in cell level for all selected bts’s are shown in
individual tabs. !!! Cell/trx level reporting depends on measurement that
is used with the kpi. If measurement doesn’t contain cell/trx object then
number 0 is shown. !!!
51/61 Specification User guide for KPI Reporter
Zooming
It is possible to zoom in and out in image. Just press left mouse button down and
then highlight the are you are interested in.
You can zoom out using zoom out buttons (1 and 2). You can also scroll the
graph with current zooming level using scrollbars (3)
Tooltip
It is possible to check point values simply hovering over the point in graph.
Context menu
11. Troubleshooting
Below are listed actions to be done in case of problems.
Measurement 1000
realintervalstarttime winterval dwobj1 dwobj2 c0 c1
2011-12-16 18:00 15 1 1 72 3
2011-12-16 18:00 15 2 1 71 2
2011-12-16 19:00 15 1 1 78 5
Function: sum
Explanation: sum over grouping period
Example: sum(M1000C0) = 72 + 71 + 78 = 221
Function: avg
Explanation: average over period
Example: avg(M1000C0) = (72 + 71 + 78)/3 = 73.66
Function: max
Explanation: maximum value
Example: max(M1000C0) = 78
55/61 Specification User guide for KPI Reporter
Function: min
Explanation: minimum value
Example: min(M1000C0) = 71
Function: count
Explanation: amount of rows (see also chapter 12.6)
Example: count(realintervalstarttime) = 3
Function: *
Explanation: multiplication
Example: sum(M1000C0)*3 = 221 * 3 = 462
Function: /
Explanation: division
Example: sum(M1000C0)/3 = 221 / 3 = 73.66
sum(M1000C0)/sum(M1000C1) = 221 / 10 = 22.1
Note: aggregation functions cannot be used over division
(ex. sum(M1000C0/M1000C1) doesn’t work)
Function: log
Explanation: base 10 logarithm
Example: log(sum(M1000C0)) = ~2,344
Function: power(10.0, b)
Explanation: 10.0 raised to the power of b
Example: power(10.0, log(sum(M1000C0))) = 211
It is possible to use case structure to show kpi only in specific situation. Following
syntaxes can be used.
Syntax: CASE WHEN xxx > m THEN yyyy ELSE zzzz END
Example: sum(CASE WHEN M1000C0 > 1 THEN M1000C1 ELSE 0 END)
Syntax: CASE WHEN xxx > m THEN (yyyy)/(wwww) ELSE zzzz END
Example: sum
(
CASE WHEN M1000C0 > 1
THEN (M1000C1)/(M1000C0)
ELSE 0 END
)
Note: Paranthesis are needed in then - clause if division is used
56/61 Specification User guide for KPI Reporter
At the moment there is limited support for Oracle style decode structures.
KPIReporter supports following syntaxes:
12.6. Distinct
Distinct keyword can be used to count unique row count example how many
unique measurement periods there are.
12.7. Examples
12.7.1. RNC/I-HSPA/LTE
LTE_5001a/Cell Availability excluding BLU
100*sum(M8020C3)/sum(M8020C6-M8020C4)
Average CS Erlang
sum(M1001c199+ M1001c368* 64 / 12.2 + M1001c370* 14.4 / 12.2
+ M1001c372* 57.6 / 12.2)/(sum(winterval))* 100 * 60
12.7.2. BSC
ulq_2a/Bad UL cumulative quality % in class 5,6,7
100 *(sum(014007+ 014008+ 014009))/((sum(014002+ 014003+
014004+ 014005+ 014006+ 014007+ 014008+ 014009)))
12.8. FAQ
Nameformat:
------------------------------------------------------------
count(*)
where (a.ave_tch_busy_full + a.ave_tch_busy_half) >= 0.2 and
(a.ave_gprs_channels_sum > 0) and
(b.packet_ch_req = 0 and c.tch_call_req > 10)
IDFormat:
------------------------------------------------------------
count(*)
where (002046_1 + 002048_1) >= 0.2 and
(002061 > 0) and
(072082 = 0 and 057028 > 10)
o This can be handled with case clause which gives 1 when condition
is met and zero when not. Then these values are summed together.
sum (
case when
((002046 / (002047) + 002048 / (002049)) >=0.2) and
(002061 > 0) and (072082 = 0) and (057028 > 10)
then 1 else 0 end
)
In example above there is 002046 / (002047). Why there are those brackets
beside 002047.
o Denominator needs to be explicitly defined so that tool can add zero
checking for denominator. !!! Formula will work unless division with zero
situation occurs. !!!
59/61 Specification User guide for KPI Reporter
sum(
decode(coding_scheme,1,(xx)*22,0)+ ;MCS-1
decode(coding_scheme,2,(xx)*28,0)+ ;MCS-2
decode(coding_scheme,3,(xx)*37,0)+ ;MCS-3
decode(coding_scheme,4,(xx)*44,0)+ ;MCS-4
decode(coding_scheme,5,(xx)*56,0)+ ;MCS-5
decode(coding_scheme,6,(xx)*74,0)+ ;MCS-6
decode(coding_scheme,7,(xx/2)*112,0)+ ;MCS-7
decode(coding_scheme,8,(xx/2)*136,0)+ ;MCS-8
decode(coding_scheme,9,(xx/2)*148,0) ;MCS-9
) / 1024
where xx = (UL_RLC_BLOCKS_IN_ACK_MODE +
UL_RLC_BLOCKS_IN_UNACK_MODE)
When temporary tables are added we can create the kpi. See formula
example below.
sum
(
(mcs_1.c2 + mcs_1.c3)*22 + (mcs_2.c2 + mcs_2.c3)*28 +
(mcs_3.c2 + mcs_3.c3)*37 + (mcs_4.c2 + mcs_4.c3)*44 +
(mcs_5.c2 + mcs_5.c3)*56 + (mcs_6.c2 + mcs_6.c3)*74 +
(mcs_7.c2 + mcs_7.c3)*56 + (mcs_8.c2 + mcs_8.c3)*68 +
(mcs_9.c2 + mcs_9.c3)*74
)/ 1024
!!! You don’t have to care about decode part cause KPIReporter is handling
that one automatically.!!!
60/61 Specification User guide for KPI Reporter
<ReportingGroups>
<ReportingGroup>Acceptance KPI</ReportingGroup>
<ReportingGroup>Troubleshooting KPI</ReportingGroup>
</ReportingGroups>
<AttemptList>
<!--M8000C0/Initial Context Setup requests-->
<KPI>
<Name>M8000C0/Initial Context Setup requests</Name>
<Formula>sum(M8000C0)</Formula>
<Hyperlink>http://esodts052.emea.nsn-net.net:8080/ContentViewer/RISEViewer?_shortcut=3252</Hyperlink>
<Unit>pcs</Unit>
<!--Reporting groups where specific KPI is used.-->
<ReportingGroups>
<ReportingGroup>Acceptance KPI</ReportingGroup>
<ReportingGroup>Troubleshooting KPI</ReportingGroup>
</ReportingGroups>
<!--Settings for worst items reporting. If this tag is empty (or not existing) then settings from UI is used -->
<WorstItemsReporting>
<!--Amount of tries/Result. ex. > 100 = > 100, < 50 = < 50 -->
<Limit>>100</Limit>
<!--MeasurementPeriod/ReportingPeriod-->
<LimitType>MeasurementPeriod</LimitType>
</WorstItemsReporting>
</KPI>
</AttemptList>
<KPIList>
<!--LTE_5093a/radio network layer failure (RNL) cause-->
<KPI>
<ReportType>FailureRatio</ReportType>
<Name>LTE_5093a/radio network layer failure (RNL) cause</Name>
<Formula>100*sum(M8000C2) / sum(M8000C0)</Formula>
<Hyperlink>http://esodts052.emea.nsn-net.net:8080/ContentViewer/RISEViewer?_shortcut=3255</Hyperlink>
<Unit>%</Unit>
</KPI>
<!--LTE_5094a/radio transport layer failure (TRPORT) cause-->
<KPI>
<ReportType>FailureRatio</ReportType>
<Name>LTE_5094a/radio transport layer failure (TRPORT) cause</Name>
<Formula>100*sum(M8000C3) / sum(M8000C0)</Formula>
<Hyperlink>http://esodts052.emea.nsn-net.net:8080/ContentViewer/RISEViewer?_shortcut=3256</Hyperlink>
<Unit>%</Unit>
</KPI>
<!--LTE_5095a/resource failure (RESOUR) cause-->
<KPI>
<ReportType>FailureRatio</ReportType>
<Name>LTE_5095a/resource failure (RESOUR) cause</Name>
<Formula>100*sum(M8000C4) / sum(M8000C0)</Formula>
<Hyperlink>http://esodts052.emea.nsn-net.net:8080/ContentViewer/RISEViewer?_shortcut=3254</Hyperlink>
<Unit>%</Unit>
</KPI>
<!--LTE_5096a/other failure (OTH) cause-->
<KPI>
<ReportType>FailureRatio</ReportType>
<Name>LTE_5096a/other failure (OTH) cause</Name>
<Formula>100*sum(M8000C5) / sum(M8000C0)</Formula>
<Hyperlink>http://esodts052.emea.nsn-net.net:8080/ContentViewer/RISEViewer?_shortcut=3257</Hyperlink>
<Unit>%</Unit>
</KPI>
</KPIList>
</Group>
</GroupList>
<TemporaryTableList>
<TemporaryTable>
<MeasurementName>cellresource</MeasurementName>
<Formula>Select * from cellresource where dwObj2 <> '300000000'</Formula>
</TemporaryTable>
</TemporaryTable>
</TemporaryTableList>
</KPITemplate>