<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Ошибка скрипта]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Ошибка скрипта форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Mon, 03 Aug 2026 09:47:57 -0400</pubDate>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406937">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Слишком жестко, что-то может заблокировать соединение и перезагрузить устройство без причины… <br />
			<i>06.10.2021 16:42:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406937</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406937</guid>
			<pubDate>Wed, 06 Oct 2021 16:42:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406936">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Просто несколько предложений. Мы отказались от использования центральных DNS-адресов вроде 8.8.8.8 для всех наших LTE-соединений клиентов, потому что иногда сталкивались с глобальными ошибками маршрутизации, хотя местная линия при этом работала. Теперь мы используем только адреса внутри сетей самих провайдеров, чтобы проверять возможные ошибки связи. Также перед перезапуском LTE-линии мы делаем паузу в одну минуту, так как заметили, что многие ошибки связи восстанавливаются автоматически за это время. Обычно мы не перезагружаем устройство — просто выключаем и включаем интерфейс, и это работает так же эффективно. Кроме того, мы отправляем сообщения об ошибках, связанных с неполадками связи, по SMS. В сочетании с внешним мониторингом LTE-устройства это позволяет нам сопоставлять периоды простоя и выяснять, исходит ли проблема от оператора или же из локальной установки. В крайнем случае, когда IP-соединения отсутствуют, можно проверить статус или перезагрузить устройство, отправив соответствующую команду через входящее SMS. Это очень выручает и экономит множество часов ненужных поездок, ведь многие LTE-линии установлены в отдалённых филиалах — далеко в глубинке или на удалённых островах. <br />
			<i>06.10.2021 20:32:00, Larsa.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406936</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406936</guid>
			<pubDate>Wed, 06 Oct 2021 20:32:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406935">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Неважно, вроде вроде всё работает… :global ltestatus &nbsp;<br />:if ([:typeof $ltestatus] = "nothing") do={:set ltestatus "offline"}  <br />/interface lte &nbsp;<br />:if ([:len [find]] &gt; 0) do={  <br /> &nbsp; &nbsp;:if (([:ping 8.8.8.8 count=5] = 0) && ([ping 1.1.1.1 count=5] = 0)) do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:log warning "*** LTE-соединение потеряно, перезагружаем модем... ***" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/system routerboard usb power-reset duration=10 &nbsp;<br /> &nbsp; &nbsp;} else={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($ltestatus = "offline") do={:log info "*** LTE в сети ***"} &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set ltestatus "online" &nbsp;<br /> &nbsp; &nbsp;} &nbsp;<br />} else={ &nbsp;<br /> &nbsp; :log error "*** Нет LTE-интерфейсов... ***" &nbsp;<br /> &nbsp; /system reboot &nbsp;<br />} <br />
			<i>06.10.2021 17:50:00, CZFan.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406935</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406935</guid>
			<pubDate>Wed, 06 Oct 2021 17:50:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406934">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Согласен, но это то, что он попросил. Я бы хотел использовать этот скрипт, не мог бы ты изменить его так, чтобы он мониторил 2 устройства во внутренней сети, то есть пинговать одновременно 8.8.8.8 и 1.1.1.1, и если оба не отвечают, то предпринимать действия? <br />
			<i>06.10.2021 16:49:00, CZFan.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406934</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406934</guid>
			<pubDate>Wed, 06 Oct 2021 16:49:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406933">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			@pigsfoot, мне кажется, тебе нужно примерно такое: [:ping 8.8.8.8 count=3] = 0 Это отправит 3 ping-запроса, если все три не пройдут — тогда делай то, что нужно. Если нет, придется подробнее объяснить, что именно ты хочешь. <br />
			<i>06.10.2021 16:36:00, CZFan.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406933</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406933</guid>
			<pubDate>Wed, 06 Oct 2021 16:36:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406932">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			А, теперь всё яснее. Спасибо за всю твою помощь в этом. <br />
			<i>06.10.2021 16:34:00, Pigsfoot.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406932</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406932</guid>
			<pubDate>Wed, 06 Oct 2021 16:34:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406931">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			По крайней мере 3 провалились? 10 - 3 = 7 (по крайней мере 7 хороших) &lt; 8 (хуже, чем 8, потому что 8 — хорошие, всего 2 проваленных). <br />
			<i>06.10.2021 16:23:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406931</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406931</guid>
			<pubDate>Wed, 06 Oct 2021 16:23:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406930">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Еще раз большое спасибо, @rextended. Предполагаю, что команда «&lt; 8» — это счетчик? @CZFan, спасибо за помощь, все критические логи сохраняются на диск, так что перезагрузка роутера — лучший вариант для меня. <br />
			<i>06.10.2021 16:18:00, Pigsfoot.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406930</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406930</guid>
			<pubDate>Wed, 06 Oct 2021 16:18:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406929">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Да... :global ltestatus &nbsp;<br />:if ([:typeof $ltestatus] = "nothing") do={:set ltestatus "offline"}  <br />/interface lte &nbsp;<br />:if ([:len [find]] &gt; 0) do={  <br /> &nbsp; &nbsp;:if ([:ping 8.8.8.8 count=10] &lt; 8) do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp;:log error "*** LTE РАБОТАЕТ НЕПРАВИЛЬНО - ПЕРЕЗАГРУЗКА ***" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;/system reboot &nbsp;<br /> &nbsp; &nbsp;} else={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($ltestatus = "offline") do={:log info "*** LTE В СЕТИ ***"} &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set ltestatus "online" &nbsp;<br /> &nbsp; &nbsp;} &nbsp;<br />} else={ &nbsp;<br /> &nbsp; :log error "*** LTE ПРОПАЛО ***" &nbsp;<br /> &nbsp; /system reboot &nbsp;<br />} <br />
			<i>06.10.2021 15:46:00, rextended.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406929</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406929</guid>
			<pubDate>Wed, 06 Oct 2021 15:46:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406928">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Я бы предпочёл перезагрузить «модем», а не роутер, так лог сохранятся и всё такое. Вот исправленный скрипт от @rextended:<br /><br />:global ltestatus &nbsp;<br />:if ([:typeof $ltestatus] = "nothing") do={:set ltestatus "offline"}  <br />/interface lte &nbsp;<br />:if ([:len [find]] &gt; 0) do={  <br /> &nbsp; &nbsp;:if ([:ping 8.8.8.8 count=10] = 0) do={  <br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($ltestatus = "online") do={:log warning "*** LTE НЕ РАБОТАЕТ ***"} &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set ltestatus "offline" &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; # disable [find]  <br /> &nbsp; &nbsp; &nbsp; &nbsp; # :delay 5s &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; # enable [find]  <br /> &nbsp; &nbsp; &nbsp; &nbsp; /system routerboard usb power-reset duration=10 &nbsp;<br /> &nbsp; &nbsp;} else={ &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:if ($ltestatus = "offline") do={:log info "*** LTE В СЕТИ ***"} &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp;:set ltestatus "online" &nbsp;<br /> &nbsp; &nbsp;} &nbsp;<br />} else={ &nbsp;<br /> &nbsp; :log error "*** LTE ПРОПАЛ ***" &nbsp;<br /> &nbsp; /system reboot &nbsp;<br />} <br />
			<i>06.10.2021 15:17:00, CZFan.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406928</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406928</guid>
			<pubDate>Wed, 06 Oct 2021 15:17:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406927">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			@rextended Извиняюсь, что воскресаю эту тему, но хотел задать вопрос, если можно. Есть ли способ изменить этот скрипт так, чтобы при трёх неудачных попытках пинга он перезагружал роутер, а не отключал/включал LTE-интерфейс? Я несколько раз сталкивался с этой проблемой и думаю, что LTE-интерфейс зависает из-за множества ошибок «not registered», но не уверен, означает ли это, что LTE-интерфейс отсутствует, ведь скрипт это проверяет. Приведённый пример случился после автоматической перезагрузки роутера, которая происходит каждый день в 23:00. Спасибо! <br />
			<i>06.10.2021 15:04:00, Pigsfoot.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406927</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406927</guid>
			<pubDate>Wed, 06 Oct 2021 15:04:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
		<item>
			<title>Ошибка скрипта</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406926">Ошибка скрипта</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет! У нас есть простой скрипт, который проверяет подключение к интернету через интерфейс LTE, но, похоже, при работе интерфейса LTE возникает ошибка. Не уверен, может, просто неправильно указал имя интерфейса. Не мог бы кто-нибудь взглянуть и дать обратную связь, пожалуйста? &nbsp;<br /><br />Скрипт: &nbsp;<br />if ([/ping 8.8.8.8 count=10] = 0) do={  <br />:log error "** LTE DOWN **"; &nbsp;<br />/interface disable lte &nbsp;<br />/delay 5s &nbsp;<br />/interface enable lte &nbsp;<br />} else={ &nbsp;<br />:log info "** LTE ONLINE **"; &nbsp;<br />} &nbsp;<br /><br />Список интерфейсов &nbsp;<br />Flags: D - динамический, X - отключён, R - работает, S - ведомый &nbsp;<br /><br /> # &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TYPE &nbsp; &nbsp; &nbsp; ACTUAL-MTU L2MTU &nbsp;MAX-L2MTU &nbsp;<br /> 0 &nbsp;R &nbsp;ether1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ether &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1500 &nbsp;1596 &nbsp; &nbsp; &nbsp; 2026 &nbsp;<br /> 1 &nbsp; &nbsp; ether2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ether &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1500 &nbsp;1596 &nbsp; &nbsp; &nbsp; 2026 &nbsp;<br /> 2 &nbsp; &nbsp; ether3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ether &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1500 &nbsp;1596 &nbsp; &nbsp; &nbsp; 2026 &nbsp;<br /> 3 &nbsp;R &nbsp;lte1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lte &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1480 &nbsp;<br /><br />Большое спасибо! <br />
			<i>16.09.2021 08:07:00, Pigsfoot.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406926</link>
			<guid>http://mikrotik.moscow/forum/forum57/86450-oshibka-skripta/message406926</guid>
			<pubDate>Thu, 16 Sep 2021 08:07:00 -0400</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
