Mikrotik:padanan syntax tail -f

Tahukah anda, pada saat bekerja di modus konsole/terminal telnet, anda dapat memonitor log secara realtime.

Perintah ini dikenal dilinux dengan syntax tail -f

Untuk di mikrotik dapat dicoba

[Admin@mikrotik]  > log print follow

Untuk menghentikan dengan perintal crtl c

Semoga bermanfaat.

Posted from WordPress for Android

Mikrotik:Script does not work

Masih belum nemu sebab musabab.
Rencananya buat ubah rule queue dynamic di hotspot

/queue simple print
/queue simple set 0 queue=pcq-up/pcq-down

Dari terminal bisa, tapi dipasang di system scheduler tetap nda running :(

Any clue ?

Mikrotik: interface wan down (again ???) arghh

Seperti janji saya (buat yang merasa di janjikan), saya bahas misteri dibalik disable-nya interface wan.

Intro terlebih dahulu.

Ditempat saya ada pc mikrotik (named kebab, nyam nyam) yang dipergunakan untuk keperluan router internal.
Ether dengan ip public di rename menjadi WAN, sedangkan ether dengan ip private di rename LAN.
Di pc ini disetup hotspot untuk login-berautentifikasi.

Yang menjadi kendala interface wan, bolak balik mati, dalam 1 hari (kalau apes) bisa berkali-kali.

Read more »

Mikrotik: membuat hotspot baypass traffic IIX

Karena pertanyaan dari mas andy (andy_m3m@yahoo.co.id) di topik hotspot sebelumnya.

Saya buatkan post sendiri untuk masalah ini.

Di tempat saya, saya sudah mengaplikasikan ini sekitar 2~3 bulan yang lalu.
Pada saat itu memang kebutuhan saya untuk melimit internasional agar terbagi rata, tetapi untuk ke IIX tidak di limit. Rupa-nya tidak hanya saya yang berniat dengan konfigurasi seperti ini.
Read more »

Mikrotik: belajar Wlan dan Vlan

Untuk membuat vlan dan wlan di mikrotik, sebaiknya paham dulu konsep vlan.
Biar cepet nyambung. Dan tidak bingung berkepanjangan :D

Sampai saat ini saya baru bisa mengaplikasian vlan pada wlan mikrotik dengan 2 cara :

vlan access pada AP
vlan access pada Client.

Konfigurasi vlan pada AP pada intinya mengatur agar wlan (dan wds) yang mengarah ke klient menjadi anggota vlan tersebut.
Read more »

Mikrotik: DHCP Pool usage

Diambil dari http://forum.mikrotik.com/viewtopic.php?f=9&t=19389

tested on 3.7

# WarnAt needs to be at what percentage you want to be warned you are running out of IP addresses.
:local WarnAt 10
#Name of DHCP Pool you want to monitor
:local DHCPPoolName dhcp_pool1
#Your Email to notify you when running out of available ip's
:local Email my@email.com
#Your mail server ip address
:local EmailServer 0.0.0.0

#Declare Variable
:local Total

:foreach i in=[/ip pool get $DHCPPoolName ranges] do={
#Get the DHCP pool range and put into a string.
:local range [:tostr $i]
#Get the Start address of the range
:local Start [:pick $range 0 [:find $range "-"]]
#Get the End address of the range
:local Stop [:pick $range ([:find $range "-"] + 1) 31]
#Calculate how many IP's are in the Pool by subtracting the end address and the start address and add one.
:local ip ($Stop - $Start +1 )
#Save the size of the pool to Total
:set Total ($ip + $Total)
}

#Get the name of the Server that is using the Pool
:local Server [/ip dhcp-server get [/ip dhcp-server find address-pool="$DHCPPoolName"] name]
#Get the number of IP address's used in the pool
:local Used [/ip dhcp-server lease print count-only where server=[/ip dhcp-server get [/ip dhcp-server find address-pool=$DHCPPoolName] name]]
#Subtract used from total to get available
:local Available ($Total - $Used)
#Calculate percentage IP's available
:local Perc (($Available * 100) / $Total)
#Setup e-mail
:local Subject ([/system identity get name] . " DHCP pool is at $Perc")
:local Body ("Out of $Total addresses you have $Available available")

#Send out Email when available ip's percentage is below or equal to warnat
:if ($Perc <= $WarnAt) do={
/tool e-mail send to=$Email subject=$Subject body=$Body server=$EmailServer
}
:log info $Body