Skip to content

Parses Huawei GExport configuration management XML dumps to csv

License

Notifications You must be signed in to change notification settings

bodastage/boda-huaweicmobjectparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

boda-huaweicmobjectparser

Parses Huawei GExport configuration data file XML to csv. It parsers 2G,3G,and 4G configuration management XML files.

Below is the expected format of the input file:

<?xml version="1.0" encoding="utf-8"?>
<bulkCmConfigDataFile>
    <fileHeader/>
    <configData>
        <class name="BSC6900GSM">
            <object technique="TECHNOLOGY" vendor="Huawei" version="VERSION">
                <class name="MONAME_BSC6900GSM">
                    <object>
                        <parameter name="PARAMETER1" value="VALUE1"/>
                        <parameter name="PARAMETER2" value="VALUE2"/>
                        <parameter name="PARAMETERN" value="VALUEN"/>
                    </object>
                    <object>
			<!-- ... -->
                    </object>
		</class>
		<!-- ... -->
	    </object>
	</class>
    </configData>
</bulkCmConfigDataFile>

Usage

usage: java -jar boda-huaweicmobjectparser.jar
Parses Huawei GExport configuration data file XML to csv

 -c,--parameter-config <PARAMETER_CONFIG>   parameter configuration file
 -h,--help                                  show help
 -i,--input-file <INPUT_FILE>               input file or directory name
 -m,--meta-fields                           add meta fields to extracted
                                            parameters.
                                            FILENAME,DATETIME,TECHNOLOGY,V
                                            ENDOR,VERSION,NETYPE
 -o,--output-directory <OUTPUT_DIRECTORY>   output directory name
 -p,--extract-parameters                    extract only the managed
                                            objects and parameters
 -v,--version                               display version

Examples:
java -jar boda-huaweicmobjectparser.jar -i Gexport_Dump.xml -o out_folder
java -jar boda-huaweicmobjectparser.jar -i input_folder -o out_folder
java -jar boda-huaweicmobjectparser.jar -i input_folder -p
java -jar boda-huaweicmobjectparser.jar -i input_folder -p -m

Copyright (c) 2018 Bodastage Solutions(http://www.bodastage.com)

Requirements

To run the jar file, you need Java version 1.8 and above.

Getting help

To report issues with the application or request new features use the issue tracker. For help and customizations send an email to [email protected].

Credits

Bodastage Solutions - [email protected]

Contact

For any other concerns apart from issues and feature requests, send an email to [email protected].

Licence

This project is licensed under the Apache 2.0 licence. See LICENCE file for details.