I’ve installed yet another Hotspot, but clients are limited by Transfer limit(limit-bytes-total).
They want to be able to see how much MB they have left but I only see :
bytes-in - number of bytes received from the user (“15423”)
bytes-in-nice - user-friendly form of number of bytes received from the user (“15423”)
bytes-out - number of bytes sent to the user (“11352”)
bytes-out-nice - user-friendly form of number of bytes sent to the user (“11352”)
packets-in - number of packets received from the user (“251”)
packets-out - number of packets sent to the user (“211”)
*** remain-bytes-in - remaining bytes until limit-bytes-in will be reached (“337465” or “—” if there is no limit)
remain-bytes-out - remaining bytes until limit-bytes-out will be reached (“124455” or “—” if there is no limit)**
Is there any way to show total bytes used or total bytes left (user-friendly way) so they at least can get an idea on how much used (total, not just for this session) and/or how much is left. remain-bytes-total-nice is the variable I’m looking for…
Ekkas
PS: It sucks that transfer-limit must be entered as bytes (in usermanager web page), I tried 200mb, 200MB 200Mb but only 200000000 works…
Any possibility that it can be changed/added Mikrotik guys?
session-time-left - session time left for the user (“5h” or “” if none)
session-time-left-secs - session time left for the user, in seconds (“3475” or “0” if there is such timeout)
session-time-left - session time left for the user (“5h” or “” if none)
session-time-left-secs - session time left for the user, in seconds (“3475” or “0” if there is such timeout)
[/quote]
Thanks !
I been add this line and now show time left :
This problem seems to have been left hanging with no solution. MikroTik Support Guys, this needs a response as it appears to be a bug.
I have the same issue in that the documented $(remain-bytes-in) and $(remain-bytes-out) do not get substituted correctly when using total bytes limiting rather than separate values for in and out bytes. This has been tried on v4.10, v4.13, v4.16 and v4.17 and doesn’t work in any of them.
Either needs variables to work correctly as documented or new variables provided which work when using total bytes limiting.
P.S. $(limit-bytes-in) and $(limit-bytes-out) don’t work either.
I second that. If it must be for ROS5 as that’s the new official version, so be it, but we’ll love to have this option regardless.
All our hotspots are on total bytes limit and a pain is the … to constantly lookup usage for control-freak clients.
Now with Routeros 6.30.2 I tested the variables $(remain-bytes-total) and $(remain-bytes-total-nice) and they work.
So i think it’s time to update http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot with those new and useful variables, in order to prevent time losses looking for other way to obtain those informations for users in status page.
Thanks Mikrotik support
If it’s not working for you try this. I’m running MikroTik RouterOS ver. 6.9.
I struggled with
NaN (Not A Number) when trying the following Variables:
remain-bytes-in
remain-bytes-out
limit-bytes-in
limit-bytes-out
I kept getting nothing or NaN or not defined or showed nothing out at all.
For days this was KILLING ME… then I found out this. So I have to share. It needs posted all over. So many of us that have or are struggled with this can be over. Works great once you do what’s shown below, for the above variables shown to work.
Using your WAN IP address:
http:///userman
Login:
Password:
Click Routers
Click on your router name
Click on down arrow of Radius incomming
Uncheck the CoA support: X Use CoA
It’s a BOX that needs unchecked
Click Save
Click Logout
Reboot your router. The change of CoA will not take place or work unless you reboot.
It’s my understanding that, with CoA checked, the User Manager sends out, nothing or zeros, for the above variables until you uncheck CoA. and reboot the router.
Good Luck so glad I’m passed this one, on to the next. What a great product…