Jump to content

Search the Community

Showing results for tags 'скрипт Mikrotik'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Settings
    • Hardware
    • Cables
    • IPTV, cable TV, Satellite
    • Wi-Fi
    • Software
    • Optical fiber equipment
    • Games
    • PON
  • Organization
    • Network as business
    • Find networks
    • Find ISP
    • Comment providers
    • Datacenters. Hosting. Colocation.
    • Administrators purposes
    • Buy Sell Merge ISPs
    • For people
    • Jobs. Work. Training
  • Stargazer
    • Stargazer development
    • Stargazer questions
    • Stargazer Ubilling
    • Stargazer modules
  • Security
    • Viruses and Antiviruses
    • System integrity
    • Equipment protection
    • DDoS protection
  • Everything
    • Flame about networks
    • About local
    • Trade
    • For newbies
  • Regions
    • Харьков
    • Чернигов
    • Днепропетровск
    • Полтава
    • Крым
    • Запорожье
    • Тернополь
    • Донецк
    • Львов
    • Житомир
    • Сумы
    • Одесса
    • Черновцы
    • Закарпатье
    • Луганск

Calendars

  • Основной календарь

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Сайт


ICQ


Yahoo


Jabber


Skype


Город


Интересы

Found 1 result

  1. Есть скрипт вот такого вида. :local PINGCOUNT 5; :local PINGIP "x.x.x.x"; :log info message="START PING TO $PINGIP, CHECKING INTERNET"; :local PINGRESULT [/ping $PINGIP count=$PINGCOUNT]; :if ($PINGRESULT > 0) do={ :log info message="PING TO $PINGIP OK, INTERNET OK"; } else={ :log info message="INTERNET FAIL!"; /tool sms send usb1 "+38093xxxxxxx" message="Internet Down" /system scheduler disable 0 } :log info message="PING TO $PINGIP, INTERNET CHECK END"; Делает он пинг заданого узла и если пинг прошел то все ок,если нет то отправляет смс на заданый номер. И шлет он смс бесконечно. Добавил строку /system scheduler disable 0 которая после отправки смс отключает расписание для скрипта. (и в теории должен включить обратный скрипт точнее его расписание.) Создаем обратный скрипт котрый при неудачном пинге молчит а при появлении пинга кидает смс типа Internet Up. :local PINGCOUNT 5; :local PINGIP "x.x.x.x"; :log info message="START PING TO $PINGIP, CHECKING INTERNET"; :local PINGRESULT [/ping $PINGIP count=$PINGCOUNT]; :if ($PINGRESULT > 0) do={ :log info message="PING TO $PINGIP OK, INTERNET FAIL"; } else={ :log info message="INTERNET FAIL!"; /tool sms send usb1 "+38093xxxxxxx" message="Internet Up" /system scheduler disable 1 } :log info message="PING TO $PINGIP, INTERNET CHECK END"; Как в этот скрипт запихнуть строку которая будет включать обратный скрипт. Вариант типа } else={ :log info message="INTERNET FAIL!"; /tool sms send usb1 "+38093xxxxxxx" message="Internet Up" /system scheduler disable 1 /system scheduler enable 0 НЕКАТИТ!!! Помогите плиз
×
×
  • Create New...