Page 1 of 1

Netwatch script to change radius server

Posted: Thu Oct 25, 2012 12:19 pm
by cinders
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.

Re: Netwatch script to change radius server

Posted: Fri Oct 26, 2012 4:58 am
by c0d3rSh3ll
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

Re: Netwatch script to change radius server

Posted: Fri Oct 26, 2012 5:43 am
by cinders
That's great. Thank you so much. It is working well!

Re: Netwatch script to change radius server

Posted: Fri Oct 26, 2012 6:37 am
by c0d3rSh3ll
if my answer helped you, please give me karma =)

Re: Netwatch script to change radius server

Posted: Fri Oct 26, 2012 8:31 am
by cinders
Done!