Cara Monitoring Perangkat Wireless CCQ Menggunakan RouterOS via Telegram
:local CHID "-38169xxxx";
:local BotID "103298xxxx:AAHKpiAqlEoaA1ntvWXXsN46s0MH9YYOiFk";
:local output
:foreach activeIndex in=[/interface wireless registration-table find] do={
:local Name "Nama Device : ST - PT SSR. %0A";
:local activeMACAddr ("*MAC Address:* ".[/interface wireless registration-table get value-name="mac-address" $activeIndex]."%0A")
:local activeUptime ("*Uptime:* ".[/interface wireless registration-table get value-name="uptime" $activeIndex]."%0A")
:local activeRate ("*TX Rate:* ".[/interface wireless registration-table get value-name="tx-rate" $activeIndex]."%0A")
:local activeRxRate ("*RX Rate:* ".[/interface wireless registration-table get value-name="rx-rate" $activeIndex]."%0A")
:local activeLast ("*IP Address:* ".[/interface wireless registration-table get value-name="last-ip" $activeIndex]."%0A")
:local activeSTN ("*Signal To Noise:* ".[/interface wireless registration-table get value-name="signal-to-noise" $activeIndex]."dB%0A")
:local activeDist ("*Distance:* ".[/interface wireless registration-table get value-name="distance" $activeIndex]."KM%0A")
:local activeCCQRX ("*CCQ RX:* ".[/interface wireless registration-table get value-name="rx-ccq" $activeIndex]."%0A")
:local activeCCQTX ("*CCQ TX:* ".[/interface wireless registration-table get value-name="tx-ccq" $activeIndex]."%0A")
:set output ($output.$Name.$activeCCQRX.$activeCCQTX.$activeMACAddr.$activeLast.$activeUptime.$activeRate.$activeRxRate.$activeSTN.$activeDist."%0A")
}
/tool fetch url="https://api.telegram.org/bot$BotID/sendmessage\?chat_id=$CHID&text=$output";
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom
0 Response to "Cara Monitoring Perangkat Wireless CCQ Menggunakan RouterOS via Telegram"
Post a Comment