21 September 2015

Setting Notifikasi Suara/Lagu/Ringtone Dengan MikroTik



Mungkin agan sudah pernah menggunakan notifikasi via sms atau email jika terjadi salah satu kondisi jaringan internal Anda, misalnya koneksi internet terputus, jaringan backbone anda terputus, atau salah satu jaringan komputer server terputus.

Dengan MikroTik Routerboard anda bisa setting notifikasi dengan Suara, Lagu atau Ringtone melalui speaker kecil routerboard, dalam contoh ini misalnya jika koneksi internet Anda terputus. Dan pastinya mikrotik routerboard Anda tidak terlalu jauh dari posisi standby Anda (bisa terdengar oleh Anda).

Cara Setting Notifikasi Suara/Lagu/Ringtone Jika Koneksi Internet Terputus


Dalam contoh cara setting notifikasi suara/lagu/ringtone di MikroTik ini saya menggunakan RB450G, dan versi ROS 6.32.1.

Pertama, Anda buat script ringtone/suara/lagu yang Anda inginkan. Contoh ini saya gunakan suara sirene jika koneksi internet terputus.

Script Sound MikroTik "SIRENE"

:for i from=1 to=10 step=1 do={
:beep frequency=550 length=494ms;
:delay 494ms;
:beep frequency=400 length=494ms;
:delay 494ms;
}

  • Di Winbox buka System > Scripts > klik tanda "+" untuk menambahkan, 
  • Pada kolom "Name" isi (contoh) "Notif Sirene"
  • Copy Paste script diatas pada kolom "Source"
  • Klik "Apply" dan Klik "Run Script" jika anda ingin mencoba hasil notifikasi ringtone/suara/lagu 
Setting Notifikasi Suara/Lagu/Ringtone Dengan MikroTik


Kedua, anda setting netwatch yang berfungsi mengenal kondisi dengan "ping host" jika IP address tujuan "down/up" akan menjalankan scripts notif sound yang baru anda buat.


  • Di Winbox buka menu "Tools" > "Netwatch" >  klik tanda "+" untuk menambahkan
  • Pada kolom "Host" isi contohnya DNS Google "8.8.8.8"
  • Kemudian beralih ke tab "Down"
  • Masukan nama script yang sebelumnya anda buat di Sripts di kolom "Name" contoh "Notif Sirene"
  • Jika Anda ingin menambahkan notifikasi ringtone mikrotik saat koneksi internet Anda sudah normal kembali isi script ringtone dalam tab "Up"

Dengan netwatch diatas mikrotik akan mencoba "ping" DNS google jika RTO/terputus maka mikrotik akan menjalankan script ringtone yang anda sudah setting. Dan speaker kecil routerboard Anda akan berbunyi.

Kumpulan Script Ringtone MikroTik


Sirene
:for i from=1 to=10 step=1 do={
:beep frequency=550 length=494ms;
:delay 494ms;
:beep frequency=400 length=494ms;
:delay 494ms;
}

Alarm
:for t1 from=1 to=10 step=1 do={
   :for t2 from=300 to=1800 step=40 do={
     :beep frequency=$t2 length=11ms;
     :delay 11ms;
   }
 }

Alarm 2
:for t1 from=1 to=8 step=1 do={
     :for t2 from=600 to=750 step=8 do={
     :beep frequency=$t2 length=11ms;
     :delay 11ms;
   }
 }

Script Ringtone Lagu MikroTik @credit agan yosanpro FMI


Intro Kotak - Bendera
:beep length=400ms frequency=1046.5022612024
:delay 400ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=659.2551138257
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=600ms frequency=1046.5022612024
:delay 600ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=659.2551138257
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=400ms frequency=880
:delay 400ms
:beep length=400ms frequency=1046.5022612024
:delay 400ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=659.2551138257
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=600ms frequency=1046.5022612024
:delay 600ms
:beep length=200ms frequency=880
:delay 200ms
:beep length=200ms frequency=783.9908719635
:delay 200ms
:beep length=200ms frequency=659.2551138257
:delay 200ms
:beep length=200ms frequency=246.9416506281
:delay 400ms
:beep length=200ms frequency=261.6255653006
:delay 400ms

Jablay
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=300ms frequency=1174.6590716696
:delay 350ms
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=650ms frequency=987.7666025122
:delay 700ms
:beep length=300ms frequency=987.7666025122
:delay 350ms
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=300ms frequency=1174.6590716696
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=175ms frequency=1046.5022612024
:delay 175ms
:beep length=175ms frequency=1174.6590716696
:delay 175ms
:beep length=175ms frequency=987.7666025122
:delay 175ms
:beep length=175ms frequency=1046.5022612024
:delay 175ms
:beep length=650ms frequency=880
:delay 1050ms
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=300ms frequency=1174.6590716696
:delay 350ms
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=650ms frequency=987.7666025122
:delay 700ms
:beep length=300ms frequency=987.7666025122
:delay 350ms
:beep length=300ms frequency=1046.5022612024
:delay 350ms
:beep length=300ms frequency=1174.6590716696
:delay 350ms
:beep length=300ms frequency=1318.5102276515
:delay 350ms
:beep length=175ms frequency=1046.5022612024
:delay 175ms
:beep length=175ms frequency=1174.6590716696
:delay 175ms
:beep length=175ms frequency=987.7666025122
:delay 175ms
:beep length=175ms frequency=1046.5022612024
:delay 175ms
:beep length=650ms frequency=880

Balonku Ada Lima
:beep length=200ms frequency=1318.5102276515
:delay 200ms
:beep length=200ms frequency=1396.9129257320
:delay 200ms
:beep length=400ms frequency=1567.9817439270
:delay 400ms
:beep length=400ms frequency=2093.0045224048
:delay 400ms
:beep length=400ms frequency=1567.9817439270
:delay 400ms
:beep length=400ms frequency=1318.5102276515
:delay 400ms
:beep length=800ms frequency=1567.9817439270
:delay 1200ms
:beep length=200ms frequency=1174.6590716696
:delay 200ms
:beep length=200ms frequency=1318.5102276515
:delay 200ms
:beep length=400ms frequency=1396.9129257320
:delay 400ms
:beep length=400ms frequency=1174.6590716696
:delay 400ms
:beep length=400ms frequency=1567.9817439270
:delay 400ms
:beep length=400ms frequency=1396.9129257320
:delay 400ms
:beep length=800ms frequency=1318.5102276515
:delay 1200ms
:beep length=190ms frequency=1046.5022612024
:delay 200ms
:beep length=200ms frequency=1046.5022612024
:delay 200ms
:beep length=390ms frequency=1760
:delay 400ms
:beep length=400ms frequency=1760
:delay 400ms
:beep length=400ms frequency=1975.5332050245
:delay 400ms
:beep length=400ms frequency=2093.0045224048
:delay 400ms
:beep length=800ms frequency=1567.9817439270
:delay 1200ms
:beep length=200ms frequency=1318.5102276515
:delay 200ms
:beep length=200ms frequency=1396.9129257320
:delay 200ms
:beep length=400ms frequency=1567.9817439270
:delay 400ms
:beep length=400ms frequency=1396.9129257320
:delay 400ms
:beep length=400ms frequency=1318.5102276515
:delay 400ms
:beep length=400ms frequency=1174.6590716696
:delay 400ms
:beep length=800ms frequency=1046.5022612024

MikroTik Ringtone Theme


Super Mario
:beep frequency=660 length=100ms;
:delay 150ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=510 length=100ms;
:delay 100ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=770 length=100ms;
:delay 550ms;
:beep frequency=380 length=100ms;
:delay 575ms;

:beep frequency=510 length=100ms;
:delay 450ms;
:beep frequency=380 length=100ms;
:delay 400ms;
:beep frequency=320 length=100ms;
:delay 500ms;
:beep frequency=440 length=100ms;
:delay 300ms;
:beep frequency=480 length=80ms;
:delay 330ms;
:beep frequency=450 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 200ms;
:beep frequency=660 length=80ms;
:delay 200ms;
:beep frequency=760 length=50ms;
:delay 150ms;
:beep frequency=860 length=100ms;
:delay 300ms;
:beep frequency=700 length=80ms;
:delay 150ms;
:beep frequency=760 length=50ms;
:delay 350ms;
:beep frequency=660 length=80ms;
:delay 300ms;
:beep frequency=520 length=80ms;
:delay 150ms;
:beep frequency=580 length=80ms;
:delay 150ms;
:beep frequency=480 length=80ms;
:delay 500ms;

:beep frequency=510 length=100ms;
:delay 450ms;
:beep frequency=380 length=100ms;
:delay 400ms;
:beep frequency=320 length=100ms;
:delay 500ms;
:beep frequency=440 length=100ms;
:delay 300ms;
:beep frequency=480 length=80ms;
:delay 330ms;
:beep frequency=450 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 200ms;
:beep frequency=660 length=80ms;
:delay 200ms;
:beep frequency=760 length=50ms;
:delay 150ms;
:beep frequency=860 length=100ms;
:delay 300ms;
:beep frequency=700 length=80ms;
:delay 150ms;
:beep frequency=760 length=50ms;
:delay 350ms;
:beep frequency=660 length=80ms;
:delay 300ms;
:beep frequency=520 length=80ms;
:delay 150ms;
:beep frequency=580 length=80ms;
:delay 150ms;
:beep frequency=480 length=80ms;
:delay 500ms;

:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=150ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 150ms;

:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=430 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 100ms;
:beep frequency=570 length=100ms;
:delay 220ms;

:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=200ms;
:delay 300ms;

:beep frequency=1020 length=80ms;
:delay 300ms;
:beep frequency=1020 length=80ms;
:delay 150ms;
:beep frequency=1020 length=80ms;
:delay 300ms;

:beep frequency=380 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=150ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 150ms;

:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=430 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 100ms;
:beep frequency=570 length=100ms;
:delay 420ms;

:beep frequency=585 length=100ms;
:delay 450ms;

:beep frequency=550 length=100ms;
:delay 420ms;

:beep frequency=500 length=100ms;
:delay 360ms;

:beep frequency=380 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=150ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 150ms;

:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=430 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 100ms;
:beep frequency=570 length=100ms;
:delay 220ms;

:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=200ms;
:delay 300ms;

:beep frequency=1020 length=80ms;
:delay 300ms;
:beep frequency=1020 length=80ms;
:delay 150ms;
:beep frequency=1020 length=80ms;
:delay 300ms;

:beep frequency=380 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=760 length=100ms;
:delay 100ms;
:beep frequency=720 length=100ms;
:delay 150ms;
:beep frequency=680 length=100ms;
:delay 150ms;
:beep frequency=620 length=150ms;
:delay 300ms;

:beep frequency=650 length=150ms;
:delay 300ms;
:beep frequency=380 length=100ms;
:delay 150ms;
:beep frequency=430 length=100ms;
:delay 150ms;

:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=430 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 100ms;
:beep frequency=570 length=100ms;
:delay 420ms;

:beep frequency=585 length=100ms;
:delay 450ms;

:beep frequency=550 length=100ms;
:delay 420ms;

:beep frequency=500 length=100ms;
:delay 360ms;

:beep frequency=380 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 300ms;
:beep frequency=500 length=100ms;
:delay 150ms;
:beep frequency=500 length=100ms;
:delay 300ms;

:beep frequency=500 length=60ms;
:delay 150ms;
:beep frequency=500 length=80ms;
:delay 300ms;
:beep frequency=500 length=60ms;
:delay 350ms;
:beep frequency=500 length=80ms;
:delay 150ms;
:beep frequency=580 length=80ms;
:delay 350ms;
:beep frequency=660 length=80ms;
:delay 150ms;
:beep frequency=500 length=80ms;
:delay 300ms;
:beep frequency=430 length=80ms;
:delay 150ms;
:beep frequency=380 length=80ms;
:delay 600ms;

:beep frequency=500 length=60ms;
:delay 150ms;
:beep frequency=500 length=80ms;
:delay 300ms;
:beep frequency=500 length=60ms;
:delay 350ms;
:beep frequency=500 length=80ms;
:delay 150ms;
:beep frequency=580 length=80ms;
:delay 150ms;
:beep frequency=660 length=80ms;
:delay 550ms;

:beep frequency=870 length=80ms;
:delay 325ms;
:beep frequency=760 length=80ms;
:delay 600ms;

:beep frequency=500 length=60ms;
:delay 150ms;
:beep frequency=500 length=80ms;
:delay 300ms;
:beep frequency=500 length=60ms;
:delay 350ms;
:beep frequency=500 length=80ms;
:delay 150ms;
:beep frequency=580 length=80ms;
:delay 350ms;
:beep frequency=660 length=80ms;
:delay 150ms;
:beep frequency=500 length=80ms;
:delay 300ms;
:beep frequency=430 length=80ms;
:delay 150ms;
:beep frequency=380 length=80ms;
:delay 600ms;

:beep frequency=660 length=100ms;
:delay 150ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=510 length=100ms;
:delay 100ms;
:beep frequency=660 length=100ms;
:delay 300ms;
:beep frequency=770 length=100ms;
:delay 550ms;
:beep frequency=380 length=100ms;
:delay 575ms;

Demikian dah cara Setting Notifikasi Suara/Lagu/Ringtone Dengan MikroTik