Updates and Firmware Upgrades

First of all setup eamil alerts to be sent regarding the new available updates:

/tool e-mail set address=mail.harryvasanth.com [email protected]
/system script add dont-require-permissions=no name=UpdateAlert owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/system package update\r\
   \ncheck-for-updates once\r\
   \n:delay 3s;\r\
   \n:if ( [get status] = \"New version is available\") do={ \r\
   \n:local newVer [get latest-version]\r\
   \n/tool e-mail send to=\"[email protected]\" subject=\"New RouterOS firmware available for router \$[/system identity get name]\" body=\"Upgrading RouterOS on router \$[/system identity get name] from \$[/system package update get installed-version] to \$[/system package update get latest-version] (channel:\$[/system package update get channel])\"\r\
   \n  \r\

Reference: Link

Now lets setup automated update:

 /system scheduler add name=UpgradeFirmware on-event="if ([/system routerboard get current-firmware] != [/system routerboard get upgrade-firmware]) do={\r\
   \n/system routerboard upgrade\r\
   \n:delay 1\r\
   \n/system reboot\r\
   \n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-time=startup

Reference: Link

Additionally, enable SNMP to be monitored by network monitoring software:

/snmp set enabled=yes