Skip to content

Some python scripts to export data from a Linux host and be able to import it in netbox

License

Notifications You must be signed in to change notification settings

remyd1/linux-local-netbox-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux Local Netbox exporter

Netbox may be quite annoying if you have many devices to add. There is an ansible moule to do it, but that is not really easy either (see this thread for more informations).

Nevertheless, that is doable; see an example here.

In this repository, you will find a basic python script to export list of interfaces from a linux host device into a compatible CSV file for netbox.

Installation

Just clone this repository. You will need a python3 interpreter.

As there is only one single useful file for now, you can also just download it:

cd /tmp && wget https://raw.githubusercontent.com/remyd1/linux-local-netbox-export/main/interfaces.py
# or, with curl
curl -sO https://raw.githubusercontent.com/remyd1/linux-local-netbox-export/main/interfaces.py

Usage

python3 interfaces.py
cat interfaces.csv

Or, for a virtual machine :

python3 interfaces.py --virtual
cat interfaces.csv

Now, you can import the CSV file into netbox device interfaces.

About

Some python scripts to export data from a Linux host and be able to import it in netbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages