Re: WMI detect IP address conflict

Tech-Archive recommends: Fix windows errors by optimizing your registry




If this is happening once a day, you should really sack who ever is in
charge of assigning the IP addresses.

This is occuring because we are merging with another company that has the
same private IP address space as us and they use alot of static IP
addresses. It hasnt been very much fun that is for sure.


"Gerry Hickman" <gerry666uk@xxxxxxxxxxxxxxxx> wrote in message
news:u%23mGZs7rIHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Ideally, I wanted to write a script that ran once a day (or on demand) to
walk all of the servers in our enterpise. While the script walked all
servers it would log an error for any server that experienced an IP
address conflict during the day.

If this is happening once a day, you should really sack who ever is in
charge of assigning the IP addresses.

I really havent found a good way to do this - other then using
FindWindow() for the IP adddress conflict window name (which is kind of a
hack)...

You could use WMI to query Event logs for this error. You can set the
query to only look at the last five days (or so), otherwise the query
might take some time to run (like 20 seconds or more).

--
Gerry Hickman (London UK)


.



Relevant Pages