Community discussions

MikroTik App
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Netwatch script to change radius server

Thu Oct 25, 2012 12:19 pm

Can anyone help me?

I was wondering if it's possible to run a netwatch script to ping my primary radius server and if it is down, change the IP to my backup radius server.

From my config export...

/radius
add address=172.16.100.1 secret=**** service=hotspot timeout=3s

I would like to change the address to 172.16.101.1

Any help would be appreciated.
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Netwatch script to change radius server

Fri Oct 26, 2012 4:58 am

add a netwach rule wiht this:

if the primary radius server is up
/radius
set 0 address=172.16.100.1

if the primary radius server is down
/radius
set 0 address=172.16.101.1
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Re: Netwatch script to change radius server

Fri Oct 26, 2012 5:43 am

That's great. Thank you so much. It is working well!
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Netwatch script to change radius server

Fri Oct 26, 2012 6:37 am

if my answer helped you, please give me karma =)
 
cinders
newbie
Topic Author
Posts: 46
Joined: Fri Oct 28, 2011 3:09 am

Re: Netwatch script to change radius server

Fri Oct 26, 2012 8:31 am

Done!