Rebuilding a Lost UniFi Controller With NetBox
My UniFi controller was gone. How I pulled the config back out of the devices, rebuilt it through the API and made NetBox the source of truth for the whole lab.
My UniFi controller was gone. How I pulled the config back out of the devices, rebuilt it through the API and made NetBox the source of truth for the whole lab.
Let helpdesk staff reset AD passwords without admin rights: a delegated svc_passwordreset account, a Password Resetters group, LDAPS and a small Flask app.
Python script that bulk-creates Private Pre-Shared Keys (PPSK) on a UniFi controller through its API, generating random keys from a CSV list.
Python script that turns a Wi-Fi SSID and password into a scannable QR code PNG with the qrcode library. Source and a compiled executable are on GitHub.
Python script that generates QR codes from a single URL or a CSV of URLs and saves them as timestamped images. Source and a compiled executable on GitHub.
Turn a Python script into a standalone Windows executable with PyInstaller, using --onefile and --noconsole for a single file without a console window.
Python script using the ipaddress module that reads subnets from a CSV and writes the first and last usable IP of each. Written for 100 subnets at once.
Python script that creates multiple VLANs on a UniFi site through the controller API from a list of VLAN IDs and names.
Python script that calls the UniFi controller API to create a new site with two SSIDs and a VLAN per SSID. Fill in your controller URL and credentials.