script is not running

Hi guys
A friend of mine got a script to disable the pppoe-clint automatically when the ethernet is disable or unplug or when the status of the pppoe-clint is not running
and then the pppoe-clint will automatically enable after random time ..
The script that he got I think it is locked on a mac address or serial number of the routerboard , when i use it on my routerboard does’t work , and also i reset his routerboard and apply the script it is working , but on any other routerboard is not working ..
I tried to make some changes but it is still does’t work ..
The serial number of My friend Routerboard is ( 4687048FAFAA ) and the mac address is ( 04:18:D6:E6:CF:19 ) and My serial Number Is ( 574A04C51CAD ) ..
and this is the script

/ppp profile
add change-tcp-mss=yes name=Alaa on-down=":local rr (\"q\",\"w\",\"e\",\"1\",\
    \"2\",\"r\",\"t\",\"y\",\"u\",\"i\",\"s\",\"y\",\"s\",\"2\",\"l\",\"m\",\"\
    D\",\"f\",\"5\",\"r\",\"o\",\"2\",\"t\",\"b\",\"5\",\"b\",\"7\",\"7\",\"j\
    \",\"d\",\"c\",\"v\",\"b\",\"g\",\"5\",\"t\",\"2\",\"3\",\"l\",\"v\",\"5\"\
    ,\"l\",\"8\",\"e\",\"t\",\"m\",\"b\",\"X\",\"f\",\"n\",\"5\",\"m\",\"d\",\
    \"2\",\"c\",\"m\",\"0\",\"r\",\"h\",\"2\",\"4\",\"r\",\"n\",\"a\",\"2\",\"\
    z\",\"e\",\"5\",\"p\",\"n\",\"2\",\"M\",\"h\",\"h\",\"r\",\"p\",\"d\",\"S\
    \",\"w\",\"a\",\"s\",\"d\",\"F\",\"b\",\"5\",\"n\",\"x\",\"u\",\"q\",\"9\"\
    ,\"G\",\"b\",\"a\",\"w\",\"q\",\"a\",\"s\",\"e\",\"t\",\"m\",\"S\",\"4\",\
    \"0\",\"a\",\"j\",\"y\",\"4\",\"c\",\"q\",\"g\",\"5\",\"t\",\"9\",\"b\",\"\
    l\",\"g\",\"f\",\"5\",\"0\",\"n\",\"3\",\"5\",\"r\",\"p\",\"d\",\"1\",\"f\
    \",\"4\",\"g\",\"t\",\"y\",\"u\",\"i\",\"j\",\"g\",\"a\",\"s\",\"e\",\"t\"\
    ,\"m\",\"b\",\"l\",\"z\",\"x\",\"f\",\"h\",\"t\",\"5\",\"q\",\"h\",\"u\",\
    \"i\",\"D\",\"3\",\"a\",\"o\",\"s\",\"v\",\"h\",\"3\",\"h\",\"D\",\"a\",\"\
    c\",\"5\",\"i\",\"t\",\"g\",\"b\",\"d\",\"v\",\"4\",\"s\",\"x\",\"b\",\"S\
    \",\"I\",\"n\",\"a\",\"n\",\"1\",\"9\",\"1\",\"9\",\"9\",\"2\",\"S\",\"b\"\
    ,\"a\",\"s\",\"i\",\"l\",\"j\",\"5\",\"b\",\"g\",\"a\",\"2\",\"5\",\"g\",\
    \"b\",\"3\",\"h\",\"v\",\"z\",\"f\",\"v\",\"B\",\"n\",\"n\",\"v\",\"a\",\"\
    W\",\"y\",\"u\",\"i\",\"i\",\"a\",\"x\",\"c\",\"b\",\"U\",\"i\",\"o\",\"2\
    \",\"h\",\"8\",\"v\",\"b\",\"a\",\"7\",\"n\",\"6\",\"h\",\"4\",\"b\",\"U\"\
    ,\"j\",\"a\",\"c\",\"h\",\"5\",\"X\",\"c\",\"b\",\"H\",\"q\",\"u\",\"i\",\
    \"5\",\"j\",\"k\",\"a\",\"w\",\"t\",\"2\",\"5\",\"G\",\"h\",\"4\",\"f\",\"\
    3\",\"g\",\"v\",\"a\",\"t\",\"u\",\"7\",\"i\",\"e\",\"r\",\"y\",\"u\",\"u\
    \",\"h\",\"b\",\"n\",\"s\",\"c\",\"h\",\"t\",\"y\",\"6\",\"7\",\"r\",\"y\"\
    ,\"u\",\"4\",\"f\",\"2\",\"t\",\"u\",\"A\",\"x\",\"g\",\"h\",\"q\",\"y\",\
    \"4\",\"0\",\"E\",\"6\",\"D\",\"j\",\"l\",\"4\",\"a\",\"0\",\"5\",\"3\",\"\
    8\",\"y\",\"a\",\"2\",\"0\",\"F\");\r\
    \n:local cr4 ([:pick \$rr 299 300].[:pick \$rr 305 306].[:pick \$rr 310 31\
    1].[:pick \$rr 315 316]);\r\
    \n:local ch [/interface pppoe-client get value-name=keepalive-timeout \$in\
    terface];\r\
    \n:if (\$ch=60) do={\r\
    \n:local int ( \"0x\". [:pick \$interface ([find \$interface \"*\"]+1) [:l\
    en \$interface]])\r\
    \n:local sec [:pick [/system clock get time] 6 8];\r\
    \n:local sec2 [pick [in ge v=mac n=0] 9 14];\r\
    \n:local rr2 (\"3\",\"4\",\"5\",\"1\",\"2\",\"3\",\"2\",\"1\",\"2\",\"3\",\
    \"4\",\"5\",\"3\",\"2\",\"1\",\"2\",\"2\",\"3\",\"5\",\"4\",\"5\",\"3\",\"\
    2\",\"2\",\"1\",\"3\",\"2\",\"1\",\"2\",\"4\",\"3\",\"1\",\"3\",\"2\",\"1\
    \",\"2\",\"2\",\"3\",\"5\",\"3\",\"2\",\"3\",\"4\",\"5\",\"2\",\"1\",\"2\"\
    ,\"1\",\"2\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"1\",\"3\",\
    \"2\",\"5\",\"3\",\"2\",\"1\",\"2\",\"1\",\"2\",\"5\",\"2\",\"2\",\"2\",\"\
    2\",\"3\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"1\",\"3\",\"2\",\"1\
    \",\"2\",\"2\",\"4\",\"3\",\"1\",\"2\",\"3\",\"4\",\"2\",\"2\",\"2\",\"2\"\
    ,\"2\",\"4\",\"5\",\"2\",\"2\",\"4\",\"2\",\"4\",\"5\",\"3\",\"4\",\"1\",\
    \"3\",\"4\",\"5\",\"5\",\"2\",\"1\",\"1\",\"2\",\"2\",\"5\",\"2\",\"5\",\"\
    2\",\"5\",\"1\",\"3\",\"4\",\"1\",\"5\",\"3\",\"4\",\"5\",\"2\",\"1\",\"2\
    \",\"1\",\"2\",\"4\",\"5\",\"4\",\"4\",\"2\",\"1\",\"5\",\"1\",\"1\",\"2\"\
    ,\"2\",\"2\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"3\",\"3\",\"5\",\"5\",\
    \"3\",\"2\",\"2\",\"2\",\"2\",\"2\",\"1\",\"3\",\"4\",\"5\",\"3\",\"2\",\"\
    1\",\"1\",\"4\",\"3\",\"4\",\"5\",\"3\",\"3\",\"2\",\"1\",\"2\",\"1\",\"2\
    \",\"1\",\"2\",\"2\",\"2\",\"2\",\"1\",\"2\",\"3\",\"4\",\"5\",\"3\",\"2\"\
    ,\"1\",\"2\",\"3\",\"5\",\"5\",\"3\",\"2\",\"3\",\"2\",\"2\",\"2\",\"5\",\
    \"3\",\"2\",\"1\",\"1\",\"2\",\"3\",\"5\",\"3\",\"3\",\"2\",\"2\",\"1\",\"\
    1\",\"2\",\"2\",\"3\",\"2\",\"4\",\"2\",\"4\",\"1\",\"5\",\"3\",\"2\",\"2\
    \",\"1\",\"3\",\"1\",\"4\",\"3\",\"2\",\"4\",\"2\",\"2\",\"2\",\"5\",\"2\"\
    ,\"4\",\"5\",\"3\",\"3\",\"3\",\"2\",\"5\",\"2\",\"1\",\"2\",\"3\",\"4\",\
    \"2\",\"5\",\"2\",\"1\",\"4\",\"3\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"\
    2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\
    \",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\"\
    ,\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\
    \"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"\
    2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\
    \",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\"\
    ,\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\
    \"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"\
    2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\
    \",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\"\
    ,\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\
    \"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"\
    3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\
    \",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\"\
    ,\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\
    \"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"\
    5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\
    \",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\"\
    ,\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\
    \"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"\
    4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\
    \",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\"\
    ,\"2\",\"2\",\"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\
    \"3\",\"4\",\"3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"\
    3\",\"4\",\"5\",\"3\",\"2\",\"2\",\"2\",\"2\",\"3\",\"4\",\"5\",\"3\",\"1\
    \",\"3\",\"3\",\"2\",\"1\",\"2\",\"3\",\"4\",\"5\",\"3\",\"2\",\"5\",\"3\"\
    ,\"2\",\"4\",\"2\",\"2\",\"2\",\"3\",\"4\",\"4\",\"5\",\"3\",\"1\",\"4\",\
    \"4\",\"5\",\"2\",\"3\",\"2\",\"1\",\"4\",\"3\",\"2\",\"2\",\"5\",\"3\",\"\
    2\",\"2\",\"4\",\"2\",\"4\",\"3\");\r\
    \n:local g [pick [/sys ro g s] 4 8];\r\
    \n:local rr3 (\"1\",\"1\",\"2\",\"0\",\"2\",\"1\",\"2\",\"0\",\"0\",\"1\",\
    \"1\",\"2\",\"1\",\"2\",\"0\",\"2\",\"2\",\"1\",\"2\",\"1\",\"2\",\"1\",\"\
    0\",\"0\",\"0\",\"1\",\"2\",\"0\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"0\
    \",\"0\",\"2\",\"1\",\"2\",\"1\",\"2\",\"1\",\"1\",\"2\",\"2\",\"0\",\"0\"\
    ,\"0\",\"2\",\"1\",\"1\",\"2\",\"1\",\"2\",\"0\",\"0\",\"0\",\"0\",\"1\",\
    \"2\",\"2\",\"1\",\"2\",\"0\",\"2\",\"0\",\"0\",\"2\",\"0\",\"2\",\"2\",\"\
    2\",\"1\",\"1\",\"0\",\"0\",\"0\",\"2\",\"1\",\"1\",\"0\",\"1\",\"2\",\"0\
    \",\"0\",\"0\",\"1\",\"1\",\"0\",\"2\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\"\
    ,\"0\",\"1\",\"2\",\"2\",\"2\",\"1\",\"0\",\"1\",\"2\",\"1\",\"1\",\"0\",\
    \"1\",\"1\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"0\",\"2\",\"0\",\"2\",\"\
    2\",\"2\",\"0\",\"1\",\"1\",\"0\",\"2\",\"1\",\"1\",\"2\",\"2\",\"0\",\"0\
    \",\"0\",\"2\",\"1\",\"2\",\"1\",\"1\",\"2\",\"0\",\"2\",\"0\",\"0\",\"0\"\
    ,\"0\",\"0\",\"1\",\"2\",\"1\",\"2\",\"2\",\"2\",\"1\",\"1\",\"2\",\"2\",\
    \"1\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"2\",\"1\",\"2\",\"\
    0\",\"0\",\"1\",\"1\",\"1\",\"2\",\"1\",\"1\",\"2\",\"0\",\"0\",\"0\",\"0\
    \",\"0\",\"0\",\"0\",\"2\",\"0\",\"0\",\"2\",\"1\",\"1\",\"2\",\"1\",\"2\"\
    ,\"0\",\"2\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\
    \"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"\
    2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\
    \",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\"\
    ,\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\
    \"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"\
    0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\
    \",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\"\
    ,\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\
    \"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"\
    1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\
    \",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\"\
    ,\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\
    \"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"\
    0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\
    \",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\"\
    ,\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\
    \"0\",\"1\",\"2\",\"2\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"2\",\"1\",\"\
    2\",\"0\",\"0\",\"2\",\"1\",\"2\",\"1\",\"1\",\"2\",\"2\",\"0\",\"0\",\"0\
    \",\"2\",\"1\",\"2\",\"1\",\"2\",\"1\",\"0\",\"2\",\"1\",\"2\",\"2\",\"0\"\
    ,\"1\",\"0\",\"1\",\"1\",\"2\",\"1\",\"0\",\"0\",\"0\",\"2\",\"2\",\"1\",\
    \"2\",\"1\",\"1\",\"1\",\"0\",\"2\",\"0\",\"0\",\"2\",\"1\",\"1\",\"2\",\"\
    2\",\"2\",\"0\",\"1\",\"1\",\"1\",\"1\",\"2\",\"1\",\"2\",\"2\",\"2\",\"2\
    \",\"1\",\"1\",\"2\",\"1\",\"0\",\"1\",\"1\",\"2\",\"0\",\"2\",\"1\",\"1\"\
    ,\"2\",\"1\",\"2\",\"2\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\
    \",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\"\
    ,\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\
    \"0\",\"1\",\"0\",\"2\",\"0\",\"1\",\"1\",\"0\",\"1\",\"0\",\"2\",\"0\",\"\
    1\",\"1\",\"1\",\"2\",\"1\",\"0\",\"1\",\"1\",\"2\",\"0\",\"1\",\"0\",\"0\
    \",\"1\",\"1\",\"2\",\"2\",\"2\",\"1\",\"0\",\"0\",\"1\",\"2\",\"1\",\"1\"\
    );\r\
    \n:if (\$int > [:len \$rr3]) do={ :set int (\$int-[len \$rr3]) }\r\
    \n:w c=(\$cr4 =\$g) d={\r\
    \n:set g \"2\";\r\
    \n:local stime ( \"00:0\". [ :pick \$rr3 (\$int+\$sec) ] .\":\" .[ :pick \
    \$rr2 (\$int+\$sec) ] . [ :pick \$rr2 (\$sec) ] );\r\
    \n/interface pppoe-client disable \"\$interface\" ;\r\
    \n/system scheduler add name=\$interface start-date=\"Jun/09/1992\" start-\
    time=00:00:00 interval=\$stime on-event=\"/interface pppoe-client enable \
    \$interface \\n/system scheduler remove [find name=\$interface]\" ;\r\
    \n}}\r\
    \n\r\
    \n" on-up="/system scheduler remove [find name=\$interface];" rate-limit=\
    2M/2M

any one can find the Solution of this problem please
help

What board is used ?

ccr-1016

Is the CCR PPPoE server or client ?

client .. It is a bridge load balance

The script does indeed verify serial number of the board, but why not just remove that logic?

On-down without serial check:

:local ch [/interface pppoe-client get value-name=keepalive-timeout $interface];
:if ($ch=60) do={
:local int ( "0x". [:pick $interface ([find $interface "*"]+1) [:len $interface]])
:local sec [:pick [/system clock get time] 6 8];
:local rr2 ("3","4","5","1","2","3","2","1","2","3","4","5","3","2","1","2","2","3","5","4","5","3","2","2","1","3","2","1","2","4","3","1","3","2","1","2","2","3","5","3","2","3","4","5","2","1","2","1","2","3","4","5","3","2","2","2","2","1","3","2","5","3","2","1","2","1","2","5","2","2","2","2","3","3","2","2","2","2","3","4","1","3","2","1","2","2","4","3","1","2","3","4","2","2","2","2","2","4","5","2","2","4","2","4","5","3","4","1","3","4","5","5","2","1","1","2","2","5","2","5","2","5","1","3","4","1","5","3","4","5","2","1","2","1","2","4","5","4","4","2","1","5","1","1","2","2","2","4","5","3","2","2","2","3","3","5","5","3","2","2","2","2","2","1","3","4","5","3","2","1","1","4","3","4","5","3","3","2","1","2","1","2","1","2","2","2","2","1","2","3","4","5","3","2","1","2","3","5","5","3","2","3","2","2","2","5","3","2","1","1","2","3","5","3","3","2","2","1","1","2","2","3","2","4","2","4","1","5","3","2","2","1","3","1","4","3","2","4","2","2","2","5","2","4","5","3","3","3","2","5","2","1","2","3","4","2","5","2","1","4","3","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","3","4","5","3","2","2","2","2","3","4","5","3","1","3","3","2","1","2","3","4","5","3","2","5","3","2","4","2","2","2","3","4","4","5","3","1","4","4","5","2","3","2","1","4","3","2","2","5","3","2","2","4","2","4","3");
:local rr3 ("1","1","2","0","2","1","2","0","0","1","1","2","1","2","0","2","2","1","2","1","2","1","0","0","0","1","2","0","0","1","1","0","1","0","0","0","2","1","2","1","2","1","1","2","2","0","0","0","2","1","1","2","1","2","0","0","0","0","1","2","2","1","2","0","2","0","0","2","0","2","2","2","1","1","0","0","0","2","1","1","0","1","2","0","0","0","1","1","0","2","1","1","0","0","0","0","0","1","2","2","2","1","0","1","2","1","1","0","1","1","2","2","0","0","0","0","0","2","0","2","2","2","0","1","1","0","2","1","1","2","2","0","0","0","2","1","2","1","1","2","0","2","0","0","0","0","0","1","2","1","2","2","2","1","1","2","2","1","2","2","0","0","0","0","1","1","2","1","2","0","0","1","1","1","2","1","1","2","0","0","0","0","0","0","0","2","0","0","2","1","1","2","1","2","0","2","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","1","2","2","1","2","1","0","0","0","2","1","2","0","0","2","1","2","1","1","2","2","0","0","0","2","1","2","1","2","1","0","2","1","2","2","0","1","0","1","1","2","1","0","0","0","2","2","1","2","1","1","1","0","2","0","0","2","1","1","2","2","2","0","1","1","1","1","2","1","2","2","2","2","1","1","2","1","0","1","1","2","0","2","1","1","2","1","2","2","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","0","1","0","2","0","1","1","1","2","1","0","1","1","2","0","1","0","0","1","1","2","2","2","1","0","0","1","2","1","1");
:if ($int > [:len $rr3]) do={ :set int ($int-[len $rr3]) }
:local stime ( "00:0". [ :pick $rr3 ($int+$sec) ] .":" .[ :pick $rr2 ($int+$sec) ] . [ :pick $rr2 ($sec) ] );
/interface pppoe-client disable "$interface" ;
/system scheduler add name=$interface start-date="Jun/09/1992" start-time=00:00:00 interval=$stime on-event="/interface pppoe-client enable $interface \n/system scheduler remove [find name=$interface]" ;
}

still not working brother

A bit more details? any output / errors / … ?

No , there is no output errors

Add some additional log entries in the script, so you’ll know where you get to.

somethig like:
:log info “After …”;

BTW, the script starts with:


:local ch [/interface pppoe-client get value-name=keepalive-timeout $interface];
:if ($ch=60) do={

Is your keepalive-timeout set to 60 seconds? If not set it, or modify the script.

keepalive-timeout is 60 , No changes brother ..
If i would like to edit on the script witch softwere can i use ?

Any editor will do. It’s just text.

Some text editors, even have RouterOS syntax highlighting, there is a thread about that.