Code Monkey home page Code Monkey logo

swos-parser's Introduction

SwOS-Parser

Parser for parsing Mikrotik SwitchOS files to JSON

Usage

  1. Clone this repository
  2. Get a copy of your Mikrotik SwitchOS configuration. This can be done using the following methods.
    1. Go to the webinterface on the switch.
    2. Go to the System tab.
    3. Click on Save Backup.
    4. Save the file on your system.
  • On the commandline enter the following command to download the backup file: wget --user admin --password <your_password> http://<your_sw_ip>/backup.swb.

  • Using Ansible you could do the following:

- name: "Get backup"
  ansible.builtin.get_url:
    url: http://<your_sw_ip>/backup.swb
    url_username: admin
    url_password: <your_password>
    validate_certs: False
    dest: <your_backup_destination>
  1. Run the command using: python3 parse.py backup.swb
  2. This will generate a file called backup.swb.json where your backup in JSON will be stored.
  3. Have fun doing the other stuff you can do with JSON.

If you see anything that can be improved or if something is not working, please open a issue.

swos-parser's People

Contributors

mrdiba avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

spike77453

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.