Skip to content

Project Overview

LoH-lu edited this page Dec 30, 2024 · 4 revisions

This project is composed of multiple files, each designed to perform specific tasks. Below is a breakdown of their functionality:

Configuration

  • var.ini

Contains your NetBox URL and TOKEN for authentication. Contains options for the scripts.

Scripts

  • netbox_connection.py

Manages connectivity with the NetBox API.

  • netbox_export.py

Retrieves all prefixes from NetBox, including their details such as Prefix, Status, Tags, and Tenant.

  • network_scan.py

Executes an Nmap scan on all Active prefixes, excluding those tagged with 'Disable Automatic Scanning'.

  • scan_processor.py

Compares the latest two scans to identify changes:

Updates the status of unreachable IPs to "Deprecated". Saves the comparison results in a separate file.

  • netbox_import.py

Uploads comparison results to NetBox:

Updates the status of existing IPs if necessary. Creates new IP entries in NetBox if they do not already exist.

Clone this wiki locally