<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Mikrotik.moscow [тема: Скрипт с Netwatch]</title>
		<link>http://mikrotik.moscow</link>
		<description>Новое в теме Скрипт с Netwatch форума RouterOS на сайте Mikrotik.moscow [mikrotik.moscow]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Mon, 17 Aug 2026 06:23:42 -0400</pubDate>
		<item>
			<title>Скрипт с Netwatch</title>
			<description><![CDATA[<b><a href="http://mikrotik.moscow/forum/forum57/60300-skript-s-netwatch/message229713">Скрипт с Netwatch</a></b> <i>RouterOS</i> в форуме <a href="http://mikrotik.moscow/forum/forum57/">RouterOS</a>. <br />
			Привет! Хочу написать скрипт, использующий Netwatch, чтобы он считал 4 раза "down" в Netwatch и после этого запускал другой скрипт. Вот что я пока сделал:<br />/tool netwatch<br />add comment=0 disabled=yes down-script="/tool netwatch disable numbers=0;tool \<br /> &nbsp; &nbsp;netwatch enable numbers=1;\r\<br /> &nbsp; &nbsp;\nblink duration=2" host=10.0.0.195 interval=15s timeout=4s500ms<br />add comment=1 disabled=yes down-script="/tool netwatch disable numbers=1;tool \<br /> &nbsp; &nbsp;netwatch enable numbers=2;\r\<br /> &nbsp; &nbsp;\nblink duration=2" host=10.0.0.195 interval=15s timeout=4s500ms<br />add comment=2 disabled=yes down-script="/tool netwatch disable numbers=2;tool \<br /> &nbsp; &nbsp;netwatch enable numbers=3;\r\<br /> &nbsp; &nbsp;\nblink duration=2" host=10.0.0.195 interval=15s timeout=4s500ms<br />add comment=3 disabled=yes down-script="/system script run WhatIsOn;" host=\<br /> &nbsp; &nbsp;10.0.0.195 interval=15s timeout=4s500ms /tool netwatch disable numbers=3;<br />:if ([:tobool [/interface get ppp-out1 running]]=true) do={/interface ppp-client disable ppp-out1 ;delay 3;:log warning message="SIM2 now working";/interface ppp-client enable ppp-out2;/blink duration=2;} else={/interface ppp-client disable ppp-out2;delay 3;:log warning message="SIM1 now working";/interface ppp-client enable ppp-out1;/blink duration=2;}<br />delay 120;<br />tool netwatch enable numbers=0; Можно ли это сделать лучше? И как сделать так, чтобы он начал работать только через 10 минут после перезагрузки/включения питания? Спасибо! <br />
			<i>15.12.2013 08:45:00, David1234.</i>]]></description>
			<link>http://mikrotik.moscow/forum/forum57/60300-skript-s-netwatch/message229713</link>
			<guid>http://mikrotik.moscow/forum/forum57/60300-skript-s-netwatch/message229713</guid>
			<pubDate>Sun, 15 Dec 2013 08:45:00 -0500</pubDate>
			<category>RouterOS</category>
		</item>
	</channel>
</rss>
