Giter VIP home page Giter VIP logo

netbox-device-autodiscovery's Introduction

Auto device discovery script for NetBox

Overview

Script for automatically discovering network devices and adding them to NetBox. Supports multiple data sources and various types of devices (router, switch, printer, MFP, Wi-Fi and other).

Dependencies

As root

pip3 install pynetbox toml lxml python-nmap

apt install nmap

Setup

Copy configuration.example.toml to configuration.toml and set the necessary settings.
The program has a modular system. You can enable or disable modules, change the order of their launch. To do this, change the modules list in the configuration.toml (you can comment out a module name to disable it).
Each module has its own configuration, it's stored in a separate TOML table with name of the module. For example, configuration for the module nmap_network_scanner will look like this:

[nmap_network_scanner]
nmap_guess_os = true
nmap_additional_args = "-T4"
snmp_communities = ["public", "jsad084Ji0mapq"]
snmp_retry_count = 2

The following modules are currently implemented:

  • nmap_network_scanner: scans NetBox prefixes using Nmap and tries to recognize found devices using various techniques;
  • avaya_ip_office_phones_enumerator: connects to Avaya IP Office IP-PBX via SNMP protocol and receives list of connected devices/VoIP-phones.

Usage

When using nmap_network_scanner module, run the script as a superuser

usage: python3 run.py [-h] [-c] [-v]

optional arguments:
  -h, --help     show this help message and exit
  -c, --cleanup  Remove all auto discovered objects which support tagging from NetBox and exit. This is helpful if you want to start fresh or stop using this script.
  -v, --verbose  Increase verbosity level This overrides the log level in the settings file. Intended for debugging purposes only

Author

Victor Golovanenko (drygdryg)

Acknowledgements

Thanks to Raymond Beaudoin for the ideas and mechanisms implemented in vcenter-netbox-sync

netbox-device-autodiscovery's People

Contributors

drygdryg avatar liamaedwards 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.