Netbox: Search IP

Submitted by cliff on Tue, 28/05/2019 - 13:24

I've created a small script that searches netbox for an IP from the command line.

It's one of the first python scripts I wrote, coming from a perl background that's quite a feat :P

You can find it here.

cliff@dhcp-25:~$ ./search_ip.py 62.133.205.13
Searching for 62.133.205.13/32
Prefix              Tenant                        Description                             Role                Site                                    
62.133.205.0/27     Cliff Albert                  NL-OISEC-NET                            Production          Unilogic Networks DC - Bergerweg 120    
VLAN ID             VLAN Group                    Description                             
501                 Unnet-Sittard                 OISec Networking