This repository contains a Python script that converts MikroTik WBX files into CSV format. This tool is useful for network administrators and other users of MikroTik products who need to analyze or process configuration data exported from WinBox.
MikroTik is a Latvian company that produces networking equipment and software for data network management purposes. MikroTik's RouterOS software, which powers their routers and wireless ISP systems, is renowned for its rich feature set which spans across numerous network protocols and features.
A WBX file is a binary file format used by MikroTik's WinBox application. WinBox is a GUI application for managing MikroTik RouterOS, and it allows administrators to save various configurations and settings of a MikroTik router into a single WBX file. These files are useful for backing up router configurations and moving settings from one router to another.
To export a WBX file from WinBox:
- Open WinBox and connect to your MikroTik device.
- Go to the "Tools" menu.
- Select "Export" to export the configuration or parts of it.
- Choose the sections you want to export and specify the format as WBX.
- Save the file to your local machine.
This Python script converts a WBX file into a readable CSV format, making it easier to view and analyze the data using spreadsheet software or other tools.
Ensure you have Python installed on your system. You can download Python from python.org.
Clone this repository to your local machine using Git:
git clone https://github.com/mciantar/wbx-to-csv/mikrotik-wbx-to-csv.git
cd mikrotik-wbx-to-csv
Run the script with the following command-line arguments:
-i
or--input
: Specifies the input WBX file.-o
or--output
: Specifies the output CSV file.-d
or--debug
: Enables debug output (optional).
Example command:
python wbx_to_csv_converter.py -i input.wbx -o output.csv
To enable debugging output, add the `-d` flag:
python wbx_to_csv_converter.py -i input.wbx -o output.csv -d
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.