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 [2025/03/02 14:39] protocolrouteros [2026/06/11 11:01] (current) – [something about wifi reg tables] protocol
Line 22: Line 22:
 }</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.1740937148.txt.gz · Last modified: by protocol