Collection of reusable NetBox Custom Scripts – automation examples for:
- Creating and updating Virtual Machines
- Assigning IPv4 addresses automatically
- Enforcing naming conventions
- Streamlining repetitive workflows in NetBox
- NetBox (v4.3+ recommended)
- Python 3.x environment (ships with NetBox)
- Clone this repository or copy the desired script(s).
- Upload them directly via the NetBox UI:
Extras / (Customization) → Scripts → Upload Script - Alternatively, place them under your NetBox installation:
- Run scripts via the NetBox web interface.
- Toggle Commit off → dry run (no database changes)
- Toggle Commit on → changes are saved
- Hello Script – Minimal example to demonstrate inputs, logging, and commit.
- Reserve IPv4 – Finds the first free IPv4 in a prefix and assigns it.
- Create Site (Auto-Geo) – Creates a Site using OSM geocoding, coordinates, and timezone auto-detection.
Contributions are welcome!
See the Contributing Guidelines before opening issues or pull requests.
If you discover a security issue, please review our Security Policy.
This project is licensed under the MIT License.
You are free to use, modify, and distribute these scripts with attribution.
These scripts are part of the CoreDocs knowledge base project,
which provides open IT guides, tools, and documentation resources.