Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted
Accepted Solution

Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Techie
Posts: 5
4511     0

Hello, I'm not sure if this is possible, I've searched quite a bit for a solution and so far I got nothing. I've enabled fingerprinting and we would like to export a list of all active IPs along with their fingerprints.

Thank you

Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Adviser
Posts: 101
4512     0

Do you mean leases?

 

Try

 

curl -k -u admin:infoblox -X GET https://192.168.0.12/wapi/v2.7/lease?fingerprint~=Apple
Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Techie
Posts: 5
4512     0

Hello, no only leased IPs, all IPs, including statically assigned ones (I should've mentioned we have Network Insight running). So in this case, even if there is no active DHCP lease, those devices are still being fingerprinted. 

Thank you

Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Community Manager
Community Manager
Posts: 187
4512     0

Fingerprints are specifically for DHCP.  You might want to also see discovery information, such as port-scan results, which are in the Discovered_Data section.  For example, to look in a specific network for fingerprint and discovery data, use a request like this:

 

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.4/ipv4address' -d 'network=192.168.1.0/24' -d '_return_fields%2b=discovered_data,fingerprint'

 

 

Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Adviser
Posts: 101
4512     0

As it seems, only DHCP objects contain the 'fingerprint' value:

 

At least, if I return all USED IPs from a subnet, only the DHCP contain the attribute.

 

curl -k -u admin:infoblox -H 'Content-Type: application/json' -X GET https://192.168.0.12/wapi/v2.7/ipv4address?network_view=default\&network=192.168.0.0/24\&_return_fields=fingerprint,names,ip_address,status\&status=USED

 

curl -k -u admin:infoblox -H 'Content-Type: application/json' -X GET https://192.168.0.12/wapi/v2.7/ipv4address?network_view=default\&network=192.168.0.0/24\&_returnfields=fingerprint,names,ip_address,status\&fingerprint~=.\&status=USED
Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

Techie
Posts: 5
4512     0

What am I missing here? (highest version of wapi availalbe in our firmware is 2.6.1)

 

curl -k -u admin:blank -H 'Content-Type:application/json' -X GET https://address/wapi/v2.6.1/ipv4address?network_view=default\&network=10.141.113.0/24\&_returnfields=fingerprint,names,ip_address,status\&fingerprint~=.\&status=USED
{ "Error": "AdmConProtoError: When searching by network_view one of \"ip_address\", \"network\" must also be searched on",
"code": "Client.Ibap.Proto",
"text": "When searching by network_view one of \"ip_address\", \"network\" must also be searched on"
}'network' is not recognized as an internal or external command,
operable program or batch file.
'_returnfields' is not recognized as an internal or external command,
operable program or batch file.
'fingerprint~' is not recognized as an internal or external command,
operable program or batch file.
'status' is not recognized as an internal or external command,
operable program or batch file.

 

As far as getting results goes, only DHCP devices will get fingerprinted unless you're running Network Insight, so i'm hoping I'll be able to get them all :-)

thank you for your help with this so far.

Highlighted

Re: Is there a way to get a list of all active IP addresses along with their fingerprint via (W)API?

[ Edited ]
Adviser
Posts: 101
4512     0

strange, worked for me, once I added _ to _return_fields. Do you actually have a Network View?

 

You also could try to leave it out, this works for me, after I deletd my second Network View:

 

curl -k -u admin:infoblox -H 'Content-Type:application/json' -X GET https://192.168.0.12/wapi/v2.6.1/ipv4address?_return_fields=fingerprint,names,ip_address,status\&fingerprint~=.\&status=USED\&network=192.168.0.0/24

 

Btw, I also have Network Insight enabled. But still the fingerprint attribute seems only a DHCP one.

Showing results for 
Search instead for 
Do you mean 

Recommended for You