![]() It contains everything except our list of changed IP addresses. Here is how I would structure a bat file to use both OFFĮCHO = > status.logĮCHO The computer %COMPUTERNAME% has had an IP address change > status.logĮCHO This is the new IP list: > status.logīlat.exe -f -to -server -subject "IP Change" -bodyF status.logįirst we build up a file called status.log. Blat is a tool for sending email from the command line. How do we set this up to email when we detect an IP change? When the change happens it will pause for 15 seconds to allow any DHCP addressing to settle down, and then finally return the result to the command line. It will pause until it sees an IP change. It will return a list of your current IP addresses to the command line: ![]() You can get a current list of IP addresses like this: It is possible to get IP address lists from VB Script, but we happen to have a utility we have used internally for quite some time. ![]() Do you know of a script or program that can be used to monitor the IP address and send a email if the IP address changes?” “A few of my clients are using a broadband connection with DHCP addresses for the public interface.
0 Comments
Leave a Reply. |