Skip to content

Collection of reusable NetBox Custom Scripts – automation examples for creating VMs, assigning IPs, enforcing naming conventions, and streamlining workflows.

License

Notifications You must be signed in to change notification settings

swaQQii/coredocs-netbox-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Website Lint Style Last Commit

Made with Python License: MIT

GitHub issues GitHub pull requests

coredocs-netbox-scripts

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

Table of Contents


Getting Started

Requirements

  • NetBox (v4.3+ recommended)
  • Python 3.x environment (ships with NetBox)

Usage

  1. Clone this repository or copy the desired script(s).
  2. Upload them directly via the NetBox UI:
    Extras / (Customization) → Scripts → Upload Script
  3. Alternatively, place them under your NetBox installation:
  4. Run scripts via the NetBox web interface.
  • Toggle Commit off → dry run (no database changes)
  • Toggle Commit on → changes are saved

Available Scripts

  • 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.

Contributing

Contributions are welcome!
See the Contributing Guidelines before opening issues or pull requests.


Security

If you discover a security issue, please review our Security Policy.


License

This project is licensed under the MIT License.
You are free to use, modify, and distribute these scripts with attribution.


Related

These scripts are part of the CoreDocs knowledge base project,
which provides open IT guides, tools, and documentation resources.

Discord

About

Collection of reusable NetBox Custom Scripts – automation examples for creating VMs, assigning IPs, enforcing naming conventions, and streamlining workflows.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Languages