send mail on changes of configuration

Hi, How can I configure my router in such a way that, - if there is any changes in the router configuration - then it should send mail to particular person.

Thanks in Advance

Prakash

any change??
More info required.

any changes in router means, if anybody changes the routing, or firewall configurations, of adding interfaces or anything like such, the MKT should send email to a perticular person

maybe create a config_backup then create config1_backup and compare it ?

how can I do this through script?

maybe you can somehow get number of lines from the history command? mrz should help, i’m no good at scripting:

[normis@demo2.mt.lv] > system history print 
Flags: U - undoable, R - redoable, F - floating-undo 
  ACTION                                   BY                 POLICY                
U address list entry added                 normis             write                 
U address list entry removed               normis             write                 
U address list entry added                 normis             write                 
[normis@demo2.mt.lv] >

thanks, I can see the history, but can not see the time and date of the action.
any help

ok, you can customize your logging settings, put the logs to some remote syslog server, which could filter out the important ones, and sms about them. there are many customizable syslog servers out there.