User Tools

Site Tools


routeros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
routeros [2024/05/13 08:10] protocolrouteros [2026/06/11 11:01] (current) – [something about wifi reg tables] protocol
Line 1: Line 1:
-=== OSPF watchdog ===+===== Known your IP ===== 
 +<code> 
 +/tool fetch https://wtfismyip.com/text output=user 
 +</code> 
 + 
 + 
 +===== Balance ===== 
 + 
 +[[balance]] 
 + 
 + 
 +===== OSPF watchdog when default route vanishes, set your variables! =====
  
 <code> <code>
Line 10: Line 21:
  /tool fetch url="https://api.telegram.org/bot$BOT_ID/sendMessage?chat_id=$CHAT_ID&text=$HOSTNAME NO OSPF, OSPF RESTARTING" keep-result=no  /tool fetch url="https://api.telegram.org/bot$BOT_ID/sendMessage?chat_id=$CHAT_ID&text=$HOSTNAME NO OSPF, OSPF RESTARTING" keep-result=no
 }</code> }</code>
 +
 +===== something about wifi reg tables =====
 +<code>
 +
 +
 +:foreach ITEM in=[/interface wireless registration-table print] do={
 +  :local COMMENT [/interface wireless registration-table get $ITEM comment];
 +  :put "$COMMENT";
 +}
 +
 +:foreach a in=[/interface wireless registration-table] do={
 +  :put [interface wireless registration-table get $a comment]
 +}
 +
 +
 +:foreach i in [/interface wireless registration-table find] do={
 +  :find [/interface wireless registration-table get $i comment]
 +:put "$i"
 +  }
 +}
 +
 +{
 + :local registration [/interface wireless registration-table print where interface=wlan2 count-only];
 +  :if ($registration > 0) do={
 +/tool fetch url="https://api.telegram.org/xx/sendMessage?chat_id=866143904&text=wlan2 up" keep-result=no
 + }
 +}
 +
 +</code>
routeros.1715598625.txt.gz · Last modified: by protocol