I'd like to check if an IP is in use using the 'swissnapin', and I can't find a command to do it. Could someone please point me in the right direction?
Invoke-SwisVerb $swis IPAM.SubnetManagement GetIPStatus @('192.168.1.1')
and then have it return 'available', 'used', 'reserved'.
The above does not work. It's an example of what I'd like to do.
IP status is available through a query like this:
SELECT Status FROM IPAM.IPNode WHERE IPAddress='10.199.4.3'
This will return a number. Here's what the numbers mean: