Code Monkey home page Code Monkey logo

netbox-tik's Introduction

#Disclaimer This tool was made specifically for the use of my company and I will not take responsibility for anything that this tool may break or improperly configure for personal or professional reasons. Use this tool at your own risk.

See License

Netbox-Tik

This tool will create a .rsc file for all of your MikroTik devices that are in Netbox as well as a log file that shows the result for each attempt of pulling the backups.

Prerequisites

Python 3.7 or greater

Python Modules: paramiko, os, requests, json, datetime, socket, pandas

The machine that you run this on needs to be able to reach your network and your netbox instance.

The devices in Netbox need to have an "Active" status, a "Role", a "Name", a "Manufacturer" of "mikrotik", and a "Primairy IP Address" set for each device. If you know what you are doing, you can tweak the "Manufacturer" on line# 36 so that you dont have to change all of your device information.

Setup

Line 10 --> Enter the directory that you want the files to be created in.

Line 13 --> Enter your netbox API token, make sure to include "Token" at the beginning of it.

Line 14 --> Enter your netbox URL, the only thing that should change here is "YOURNETBOXURL.COM".

Line 17 --> Enter the username for your MikroTik devices.

Line 18 --> Enter the password for your MikroTik devices.

Line 67 --> Change "30" to the number of days worth of backups that you want to keep.

Customization

I can customize this for you to use within your organization or I can create another custom tool for you.

If interested, reach out, you can find me on the WISP Talk Facebook group. - Chris Josey

netbox-tik's People

Contributors

jckhamm3r avatar

Watchers

 avatar

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.