Reboot Boards due to low Memory with notification

From MikroTik Wiki
Revision as of 20:18, 30 December 2008 by Rclark (talk | contribs)
Jump to: navigation, search

set this in scheduler to get lost memory back and to get a reboot when it needs to do this

global datum [/system clock get date];
global time [/system clock get time];

/system resource

if ([get free-memory]< 25000) do=[

/tool e-mail send server=*.*.*.* to="" subject=[/system identity get name]

from="" body=(" on $datum at $time the memory on this repeater got to ", [/system resource

get free-memory]) /system reboot; ]};

on the if statement you will need to set the 25000 depending on board type IE 532a = 25000 153 = 12000 and so on I put this in scheduler to run at 3am once a day