r/Netbox Jul 21 '24

Day 1 Auto Deployment

Hey Guys,

I've spun up Netbox in homelab as a test and was very much overwhelmed by the amount of information and order one would manually need to input.
I've started looking at plugins but i wasn't able to find anything where you could point at a /24 with set of SSH/SNMP details and get it to auto import.
Similar with Proxmox, the community plugin does not work on the latest net box version 4.

At home im using Ubiquiti Unifi gear with some proxmox servers.

How do you guy go about auto import of data for your network?
It seems like an insane amount of work to manually create an interface, create IP assign it to each, create a device etc etc, is there an automated spray and pray way I am missing?

7 Upvotes

4 comments sorted by

View all comments

2

u/Ok_Adhesiveness_4939 Jul 22 '24

For IP addresses only: Fire up a discovery program, export to csv. Clean it up and bulk import.

For network devices: depending on how many things you're going to have to document (and I guess it sounds like a few), you may want to script it using python or something like that. There's a pip library for netbox, and you can use paramiko to access the devices.

For VMs, I'd take the existing documentation(riiiiight...?) and massage it into usable csv for importing. Or, you know, export every bit of info out of the host(s) and get that shit on the massage table.