Forum Discussion

Nicholas_33535's avatar
Nicholas_33535
Icon for Nimbostratus rankNimbostratus
Sep 28, 2009

F5 Scripting

Hi All,

 

I hope this is the right place to post this. I was wondering whether there was any documentation in regards to the F5 scripting language?

 

 

Basically, I want to have a script running as a cron on the F5 GTM box to monitor the availability of a Pool Member (or Server), and if the Pool Member (or Server) is down, I want to disable all of the other Servers/Pool Members for that site. So in simple words - if a server fails at 1 site, I want everything to failover to the other site and not fail back without manual intervention (i.e. someone going in and enabling the servers on the F5).

 

 

The other thing I wanted to achieve was that when a server/pool member was down, I wanted to initial an SSH session from the F5 to a device. This is supposed to triggure the backend failover of services to our second site.

 

 

Has anyone done anything like this before?

 

 

Thanks,

 

goulin
  • Another way to look at the requirement... is there a way to change the order of Pool Members for a Pool via a script? That way, when a server goes down, I don't need to disable all servers, I can just change the Pool Members order and prefer the DR site
  • I believe you may be able to accomplish this using the 'distributed application' configuration in GTM (provided you're at the right code level - I believe >9.4.0). You can set a server dependency on a group of wideIPs and fail them all over if that server is down. You can also specify 'manual resume' on your pool settings, which will meet your other requirement. Some of the GTM experts out there may have other ideas as well.

     

     

    Hopefully this helps.

     

     

    -Matt
  • Hi Matt,

     

     

    Thanks for your help... yep, I've got the dependencies all setup correctly, and after reading about the 'Manual Resume' functionality, it looks like that will meet my requirements.

     

     

    Cheers,

     

    goulin