Jump to content
  • Blog

How to EXPORT addresses from containers


Cowboy Denny

10 views

 Share

So we all know how to export one subnet in Infoblox using the GUI.  Super easy using the export button.  If you want to export all addresses in a container, well thats a different story and not so easy.

My first approach, which was a failure due to the limit of 500 records, was to do a search for anything starting with 10.45. which worked up to 500 records so that’s not going to work since a possibility of 65k records in a class B.

Next step is to download this file which was created by FHecker on Infoblox to a system that has python installed (I use my mac or a linux server).

export-addresses.txt

Change the file from ending in .txt to .py

Make it executable by running sudo chmod 755 export-addresses.py

Now the fun is just running it for any container you want.  So for this example, I need all records for 10.45.0.0/16 so I run:

sudo python export-addresses.py -n 10.45.0.0/16 -o ipam10-46export20210113.csv

You’ll then get prompted

FQDN for GM (or CP member): [enter your gridmaster fqdn] 
Userid for API calls: [enter your admin for Infoblox] 
Password: [enter your infoblox admin password]

It exports everything in the CSV file you provided with the following columns

export-addresses.py.zip

 Share

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...