QUOTE(weikee @ Feb 11 2012, 10:29 PM)
How many equipments you have that need QoS?
Currently where I'm experimenting, which is in the house, there are 2 iPhones, 2 iPads, 3 computers, 2 AppleTVs and 1 Wii. I think that's all the stuff that gets on the net. The bandwidth hogs would be the 2 of the 3 computers and the 2 AppleTVs when they are in use.
I've been playing around with setting up the email and scripting. Just want to share this little script which I modified based on an example from the Mikrotik wiki.
All it does is email me the IP address if it's changed (along with uptime, cpu load & free mem).
It assumes the interface for UniFi is named "unifi" and that email has been setup.
I have it schedule to run at 1 min intervals.
After this I plan to integrate one of the sample dyndns.com scripts into this so that it updates my dyndns as well.
This RB750GL is so much fun. Sure beats playing with the kids. :-)
CODE
:global ddnsip
:global ddnslastip
:global strdate [/system clock get date]
:global strtime [/system clock get time]
:global strsystemname [/system identity get name]
:global strsystemuptime [/system resource get uptime]
:global strsystemfreemem [/system resource get free-memory]
:global strsystemcpuload [/system resource get cpu-load]
:if ([ :typeof $ddnslastip ] = nil ) do={ :global ddnslastip "0" }
:global ddnssystem ("Version-" . [/system package get system version] )
:global ddnsip [ /ip address get [/ip address find interface=unifi ] address ]
:if ([ :typeof $ddnsip ] = nil ) do={
:log info ("DDNS: No ip address present on Unifi interface, please check.")
} else={
:if ($ddnsip != $ddnslastip) do={
/tool e-mail send to=user@example.com subject="UniFi IP $strdate $strtime $strsystemname" body="$strsystemname $strdate $strtime \rUniFi IP: $ddnsip \rUptime: $strsystemuptime \rFree memory: $strsystemfreemem kb \rCPU Load: $strsystemcpuload %" tls=yes
:log info "DDNS: Sending UPDATE!"
:global ddnslastip "$ddnsip"
} else={
# :log info "DDNS: No update required."
}
}
This post has been edited by soonwai: Feb 12 2012, 01:06 AM