Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

Automation Scripts

Reply

Ansible lookup query to search available network container and network for a host IP

New Member
Posts: 1
672     0

Trying to find a way to get the similar search result available from infoblox GUI using Ansible lookup query to search available network container and network for a host IP.

 

Ansible lookup for the host IP if its part of any of the network container and network prefixes available.

network_container_query: "{{ query('nios', 'networkcontainer', filter={'ipv4address':10.82.110.1}, return_fields=['network'], provider=nios) }

Expectation is this would return networkcontainers defined

10.0.0.0/8 10.82.0.0/16

 

Similar search for network

network_query: "{{ query('nios', 'network', filter={'ipv4address':10.82.110.1}, return_fields=['network'], provider=nios) }

Expectation is this would return networks defined

10.82.110.0/24 10.82.110.128/25

Currently it returns an error: float object has no element 110. Any help will be MUCH appreciated

 

Thanks in advance

Paul

Showing results for 
Search instead for 
Did you mean: 

Recommended for You