Reply
Highlighted
Accepted Solution

Obtain all information present on Infoblox using WAPI

[ Edited ]
sadaf14
Techie
Posts: 5
3365     0

Hi

Apologies if this question has already been covered.I am new to Infoblox and I am trying to get a dump of the data on Infoblox and then extract the DHCP networks along with selected extensible attributes.The documentation is not really helping me get through much as I am really new at this.I am trying to use Python 3 and v2.5 documentation for WAPI.I would really appreciate some help to get started.

Trying to get the dump in either json or csv format.

Thank You.

Re: Obtain all information present on Infoblox using WAPI

Adviser
Posts: 121
3366     0

Hello,

 

If what you need is just all the DHCP Networks information along with EAs, why not export the data directly from the UI? Have you already tried that?

UI Export.png

In the latest NIOS versions, you could also use the CSV Job Manager for Data Export.

CSV Job Manager.png

 

Best Regards,
Bibin Thomas

Re: Obtain all information present on Infoblox using WAPI

sadaf14
Techie
Posts: 5
3366     0

Firstly,thank you for the reply.

 

I have tried out the feature and it works well.But I am trying to experiment and have a task to do the same using API calls.It has to be a  more programmatic approach.

 

If you could help me with that,I would really appreciate it.

Re: Obtain all information present on Infoblox using WAPI

[ Edited ]
Adviser
Posts: 121
3366     0

WAPI:

https://<Grid Master IP>/wapi/v1.6/network?_max_results=10000&_return_fields=comment,disable,members,enable_ddns,network,extattrs

 

Sample Output:

<value type="object">
<network>1.1.1.0/24</network>
<enable_ddns type="boolean">true</enable_ddns>
<disable type="boolean">false</disable>
<members>
<list>
<value type="object">
<ipv4addr>10.192.33.36</ipv4addr>
<name>infoblox.localdomain</name>
<_struct>dhcpmember</_struct>
</value>
<value type="object">
<ipv4addr>10.192.33.68</ipv4addr>
<name>infoblox3.localdomain</name>
<_struct>dhcpmember</_struct>
</value>
</list>
</members>
<extattrs type="object">
<Building type="object">
<value>Phase-3</value>
</Building>
</extattrs>
<_ref>
network/ZG5zLm5ldHdvcmskMS4xLjEuMC8yNC8w:1.1.1.0/24/default
</_ref>
</value>



Best Regards,
Bibin Thomas

Re: Obtain all information present on Infoblox using WAPI

sadaf14
Techie
Posts: 5
3366     0

This is actually yielding quite a lot of information,Thanks.

 

Is there someway I can extract the IPAM Utilization and IPv4 Utilization along with the remaining external attibutes?

Re: Obtain all information present on Infoblox using WAPI

[ Edited ]
Adviser
Posts: 121
3366     0

DHCP Utilization for DHCP networks

 

https://10.192.33.220/wapi/v2.5/network?_max_results=10000&_return_fields=comment,disable,members,enable_ddns,network,extattrs,dhcp_utilization

 

 

DHCP Utilization of 10.192.32.0/24/

 

https://10.192.33.220/wapi/v2.5/network/ZG5zLm5ldHdvcmskMTAuMTkyLjMyLjAvMjQvMA:10.192.32.0/24/default?_max_results=10000&_return_fields=comment,disable,members,enable_ddns,network,extattrs,dhcp_utilization

 

 

IPAM Utilization

 

https://10.192.33.220/wapi/v2.5/ipam:statistics?_max_results=10000&_return_fields=network,utilization

 

 

Sample Output:

<value type="object">
<network>10.192.3.0</network>
<utilization type="int">1000</utilization>
<_ref>
ipam:statistics/ZG5zLm5ldHdvcmskMTAuMTkyLjMuMC8yNC8w:default/10.192.3.0/24
</_ref>
</value>
<value type="object">
<network>1.1.1.0</network>
<utilization type="int">3</utilization>
<_ref>
ipam:statistics/ZG5zLm5ldHdvcmskMS4xLjEuMC8yNC8w:default/1.1.1.0/24
</_ref>
</value>


Notice the values 1000 for 10.192.3.0 and 3 for 1.1.1.0. To get the exact utilization, you would want to simply divide that value by 10. Therefore, in the above, IPAM utilization on network 10.192.3.0 is 100% and 1.1.1.0 is 0.3%.

Best Regards,
Bibin Thomas

 

Re: Obtain all information present on Infoblox using WAPI

[ Edited ]
sadaf14
Techie
Posts: 5
3366     0

Can the ipam statistics be merged with the rest of the external attributes?

Such that all of the data is obtained as a single set of results

Showing results for 
Search instead for 
Do you mean 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin