Community discussions

MikroTik App
 
gravatasufoca
just joined
Topic Author
Posts: 3
Joined: Sat Jul 11, 2009 2:35 am

MIkrotik-advertise-Interval - Freeradius

Fri Aug 28, 2009 5:18 pm

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?
 
clarkstyx
Frequent Visitor
Frequent Visitor
Posts: 69
Joined: Sun Jun 28, 2009 7:26 pm

Re: MIkrotik-advertise-Interval - Freeradius

Sun Aug 30, 2009 8:55 pm

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
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: MIkrotik-advertise-Interval - Freeradius

Mon Aug 31, 2009 1:41 am

integer number if weeks or monthes? :lol:

seconds, I believe - nothing else ))
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: MIkrotik-advertise-Interval - Freeradius

Mon Aug 31, 2009 12:52 pm

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.
 
gravatasufoca
just joined
Topic Author
Posts: 3
Joined: Sat Jul 11, 2009 2:35 am

Re: MIkrotik-advertise-Interval - Freeradius

Wed Sep 02, 2009 2:33 pm

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?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: MIkrotik-advertise-Interval - Freeradius

Wed Sep 02, 2009 2:38 pm

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'.
 
gravatasufoca
just joined
Topic Author
Posts: 3
Joined: Sat Jul 11, 2009 2:35 am

Re: MIkrotik-advertise-Interval - Freeradius

Wed Sep 02, 2009 7:46 pm

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 :D

I was wondering about the advertise-timeout. Anybody know how it works when I use freeradius?

Who is online

Users browsing this forum: antosusan, cstrong and 60 guests