I'm working on a decom script and looking to simply search for an IP based on hostname field, and to be able to set that IPAddress status to Available.
Because "Hostname" could mean any 'label' field, you're probably better off searching all of them.
SELECT IPAddress , Status , Alias , DnsBackward , DhcpClientName , SysName , ResponseTimeFROM IPAM.IPNodeWHERE DnsBackward LIKE 'HOSTNAME%' OR SysName = 'HOSTNAME' OR DhcpClientName LIKE 'HOSTNAME%' OR Alias LIKE 'HOSTNAME%'
Then you can just send the IP and the new status ('Available') to the ChangeIpStatus verb.
ChangeIpStatus
Thanks so much! I got it working