Netwatch script to change radius server

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.

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

That’s great. Thank you so much. It is working well!

if my answer helped you, please give me karma =)

Done!