Script for checking IP address change!?

I am using mikrotik 2.9 routerOS, is it possible to make a script which will check if IP address, of my pppoe interface, has been changed?

The script have to compare last known IP address with current IP on that specific interface, and the if the IP has been changed since last time, then it has to run some command (example: change some firewall rule or something else).

Thanks in advance.

Check example in the manual:
http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Check_if_IP_on_interface_have_changed

I have tried that example, but it didn’t work for me, when I click Run nothing happens :frowning:

I found another solution, but I need you help to create a script.

I want to create a script which will check if there is a new specific log entry created (“System info: dns changed”) and then if there is that specific line, script has to do something (some other command).

Thanks in advance

http://wiki.mikrotik.com/wiki/Log_Parser_-_Event_Trigger_Script

This script will work with all v3.x and v4.x

Mine is 2.9, how can I change the script so it runs on my microtik? :frowning:

Upgrade. 2.9x is no longer supported. With a legal key, upgrades are free.