12-02-2013 01:47 PM
I'm looking to search/dump host info on our large/convoluted network.
I have $session->search(object => "Infoblox:NS::Host") working fine, but that doesn't get the DHCP hosts.
I extended my code to have another section doing: $session->search(object => "Infoblox:HCP::HostAddr"), but that fails with 1001:General failure getting object type 'Infoblox:HCP::HostAddr'. Am I missing something simple, or being dense? I've tried both "search" and "get".
Infoblox version 6.8.2-214008.
12-02-2013 02:14 PM
There is no DHCP::HostAddr that you need to search for. DNS::Host will return ALL hosts in the system since they are the same construct.
You could optionally search for DHCP::FixedAddr to find Fixed Addresses AND Hosts that have reserved DHCP addresses.
12-03-2013 07:23 AM
Respectfully, I've tried to query DNS::Host -- and it returns hosts with static entries. For example, one of our subnets is defined for DHCP workstations-- If I search DNS::Host, I get the 3 (static) router entries and one host using FixedAddr. I do NOT get the 200+ workstations on that net.
The 6.8 API docs have two examples under DHCP / HostAddr section of the manual that perform DHCP::HostAddr searches. I was hoping that would give me the non-static hosts.