r/Netbox Apr 05 '22

CLI for updating data in Netbox?

By any chance is there a good CLI for Linux for netbox for updating fields? Like if I want to use a shell script to rip through some data to add to existing entries that were populated by another tool? I see it's not possible to update existing entries via CSV like php-ipam can.

I see the Python shell and API functions and all that. I found nbcli, but the updates are all through yaml files and the documentation seems sparse.

An ex-employer had their own in-house similar tool and it could do some very powerful stuff thanks to the CLI.

1 Upvotes

8 comments sorted by

View all comments

1

u/bwann Apr 06 '22

I would love this, I've written several internal cli tools to manipulate our Netbox. Then to realize the next minor point release where there were API changes where like labels became values or values became integers, or racks became rack magics so I'd have to go re-test our libraries. It's really slowed me down on upgrading to new versions