Vous êtes sur la page 1sur 7

telecomHall.

com | Hunter Blog | Tips Blog | Course Blog | Groups

Sign UpLog In


Ericsson 2G CNAIv2 OSS Parameters Dump Parser


Hunter

May 2017
1 / 42
May 2017
Back
Apr 23

Emmanuel
17
May '17
Dear members.

Following my earlier post about the Hunter Free Tools Initiative, we are starting with the Ericsson
2G parser. The name of parsers is Boda.

Boda parsers are written in Java and distributed as “.jar” files. The easiest way to run a jar file in
Windows,is to use the command prompt. (To run the command prompt, look for “cmd.exe”). The
parsers can be used on other platforms that have java installed besides Windows. This write up
focuses on Windows as it is the currently supported platform for the Hunter tools.

Note: This specific post is for Ericsson 2G issues only. If you have questions regarding other
Vendor/RAT, either find another topic or create a new topic - if not already created.

Below are the necessary procdures to obtain an Ericsson CNAI dump and parse it. Enjoy!

============================================================================
======

Step by step procedure to download and configure Hunter Boda Ericsson 2G (CNAIv2 TXT)
parser

1. Click the link below and download boda parser to an appropriate folder in your computer.
Tip: follow Hunter suggested structure, so it will be easier to organize future parser versions,
and also other parsers for other RATs. Download link: boda-ericssoncnaiparser.zip 46 (6.3
KB)
2. The Hunter Structure starts with a “Hunter” base folder. Then, a subfolder for “Boda”. In the
Boda folder, create a folder for this parser (“Ericsson 2G”). And finally, the module folders:
“Scripts”, “Output” and “Data”.
3. So, for now, following the Hunter Folder Structure, download BODA Parser “boda-
ericssoncnaiparser.jar” to “C:\Hunter\Boda\Ericsson_2G\Scripts”

Step by step procedure to download Ericsson 2G Configuration Parameters File (CNAIv2


TXT) from OSS

Now, let’s obtain the raw dump CM file.

1. Log in into Ericsson OSS via Citrix.


2. Launch Terminal: Launch -> Applications -> Utilities -> Terminal
3. Run CNAI version 2 command: > cnai export valid -i > YourFileName.txt (Change
YourFileName properly). (This command will export All Ericsson 2G parameters to a file. To
see where this file is stored, you can run ‘pwd’ command and check current directory.)
4. Using any FTP Client program (such as Filezilla), download the file from OSS to your
computer.
5. Following the Hunter Folder Structure, download the file to
“C:\Hunter\Boda\Ericsson_2G\Data<aammdd>”. You can modify “” to anything you want -
just make sure that it can be easy for you to find it later.

Step by step procedure to parse (process/extract) Ericsson 2G Configuration Parameters

With the raw dump file downloaded, let’s extract the Parameters.

1. First, check if the downloaded files are compressed (ZIP, RAR, 7-z, GZ, etc…). If
so, uncompress it using any Compress/Uncompress utility such as Winzip, Winrar or 7-zip.
2. We need to run a command. It is best practice to create a auxiliary text file, to store/modify
the command.
Under the Scripts folder, create a file called “ericsson_2g_cnaiv2_usage.txt” to contain the
command.
Adjust the command based on usage:

3. Run it, and wait to finish.

IMPORTANT: Please make sure you run the command on ONE LINE ONLY (not on separate
lines).
4. Done

All your parameters are extracted into CSV files - that can be opened using any text editor such as
Microsoft Excel or Access.

Example

java -jar C:\HUNTER\Boda\Ericsson_2G\Scripts\boda-ericssoncnaiparser.jar


C:\HUNTER\Boda\Ericsson_2G\Data\example_data_subfolder\example_cm_file.txt
C:\HUNTER\Boda\Ericsson_2G\OThis text will be
hiddenutput\example_output_subfolder\

Where

 “C:\HUNTER\Boda\Ericsson_2G\Data\example_data_subfolder” is the folder where you have your


dump file;
 “example_cm_file.txt” is your dump file;
 “C:\HUNTER\Boda\Ericsson_2G\Output\example_output_subfolder” is the folder where all CSV files
will be created.
For a more detailed example, please check this topic: General instructions for using the CM parsers
to process any network dump

============================================================================
======

That’s it!

Hope you all find this useful.

Help us by inviting friends to the community, giving suggestions/feedback and of course submitting
any issues you may find.

Let’s build a totally new Telecom/IT Global Community.

BR,
Emmanuel.

Solved by Guillermo_Gustavo_Go in post #27


Perfect! sorry i didn’t know about the existence of this command and suspect spaces will not work.
many thanks for your quick response. BR
3

 Free Parser for 3GPP TS 132 615 Bulk CM XML files1


 created

May '17

last reply

Apr 23

 41
replies

 4.5k
views

 13
users

 11
likes

 7
links

 16

LISTED MAY 22, '17

CSilva
May '17
Hi @Emmanuel

First of all thank you for excellent work.


When I run the command give me the following message.
Please, can you help?
Thanks,
CS

Emmanuel
May '17
Hi @CSilva,
You need to have Java installed on your system. You can download it
from https://java.com/en/download/ 9 .

I missed this out in the instructions; sorry about that.

Let me know if you succeed running the parser after you have installed Java.

BR,
Emmanuel

CSilva
May '17
Hi @Emmanuel,

Thanks for your help.


Now the messange is:

BR,
CS

Emmanuel
May '17
Hi @CSilva,

The commands should all be on the same line like shown below.
java -jar boda-ericssoncnaiparser.jar cnai_dump_file.txt output_directory
From the screenshot you have attached I see you ran the cnai dump file and and output directory as
separate commands. You should run it all on one line like shown below.

java -jar C:\Hunter\Boda\Ericsson_2G\Scripts\boda-ericssoncnaiparser.jar


C:\Hunter\Boda\Ericsson_2G\Data\Dumps\2G_parameters.txt
C:\Hunter\Boda\Ericsson_2G\Output\Ericsson\

I have added a boda-ericssoncnaiparser.bat file that simplifies running the parser. It also checks if
java is installed before starting the parser.If Java is not installed, it points you to the download page.

boda_ericssoncnaiparser_images.PNG1636x329 23 KB

To run the parser, follow the earlier instructions. Make sure to include the .bat file in the location
where you copied the parser.
boda-ericssoncnaiparser.bat cnai_dump_file.txt output_directory

Example:

C:\HUNTER\Boda\Ericsson_2G\Scripts\boda-ericssoncnaiparser.bat
C:\HUNTER\Boda\Ericsson_2G\Data\example_data_subfolder\example_cm_file.txt
C:\HUNTER\Boda\Ericsson_2G\OThis text will be hiddenutput\example_output_subfolder\

boda-ericssoncnaiparser.zip 23 (6.0 KB)

Let me know if you succeed in running it.

BR,
Emmanuel

1
16 DAYS LATER
1 MONTH LATER
2 MONTHS LATER
28 DAYS LATER
2 MONTHS LATER
1 MONTH LATER
3 MONTHS LATER