Page 1 of 1
MIkrotik-advertise-Interval - Freeradius
Posted: Fri Aug 28, 2009 5:18 pm
by gravatasufoca
Hi everybody!
That's my first post here at this forum. I'm from Brazil and my English it not the best I wish it was...
My doubt is about the Mikrotik-advertise-Interval attribute that comes from Freeradius.
In the documentation is written that this attribute is a Integer number, but this number is measure in minuts, seconds?
Could anyone explain me how it works?
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Sun Aug 30, 2009 8:55 pm
by clarkstyx
Hi everybody!
That's my first post here at this forum. I'm from Brazil and my English it not the best I wish it was...
My doubt is about the Mikrotik-advertise-Interval attribute that comes from Freeradius.
In the documentation is written that this attribute is a Integer number, but this number is measure in minuts, seconds?
Could anyone explain me how it works?
yeah, it could be in seconds,minutes, hours,week and even months I guess
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Mon Aug 31, 2009 1:41 am
by Chupaka
integer number if weeks or monthes?
seconds, I believe - nothing else ))
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Mon Aug 31, 2009 12:52 pm
by SurferTim
Hi Chupaka
I think the advertise interval time is in minutes. Or is that only in the example in the docs?
ADD: The Mikrotik-advertise-interval is not in my Mikrotik radius dictionary. (FreeRADIUS). Because of the formatting of the Mikrotik-Advertise-Interval. it would seem to me it would need to be a string instead of an integer. But that is just me. Marching to a different drummer...
UPDATE: After testing, the value is in seconds. If you leave the time character (like 's' or 'm') off the input string, it reverts to seconds.
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Wed Sep 02, 2009 2:33 pm
by gravatasufoca
Thank's SurferTim, and the other
So if I put the representing character of seconds, months, weeks... what ever...
example: 60m=1h ; 60s=1m
is that right?
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Wed Sep 02, 2009 2:38 pm
by SurferTim
After testing, the value will be converted to the correct time if the value is entered in seconds with no time character. I tried this:
/ip hotspot user profile
set 0 advertise-interval=600
print
and the advertise-interval showed as '10m'.
Re: MIkrotik-advertise-Interval - Freeradius
Posted: Wed Sep 02, 2009 7:46 pm
by gravatasufoca
Actually I am saving this attribute in mysql and using freeradius to send it to mikrotik.
So I cannot see how it is on mikrotik.
But as you said, it is in seconds
I was wondering about the advertise-timeout. Anybody know how it works when I use freeradius?