-
Notifications
You must be signed in to change notification settings - Fork 2
Project Overview
This project is composed of multiple files, each designed to perform specific tasks. Below is a breakdown of their functionality:
- var.ini
Contains your NetBox URL and TOKEN for authentication. Contains options for the 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.