Forum Discussion

Techgeeeg_28888's avatar
Techgeeeg_28888
Icon for Nimbostratus rankNimbostratus
Oct 21, 2014

iRule for executing a remote process on monitor failure

Hi Everyone,

 

I have a small requirement and I need some expert input to see how to do it. I have a monitor monitoring a set of servers what I need is if all the servers in this pool goes down F5 should telnet a remote machine and execute a command on it. Can anyone guide what is the best way to do it is it possible through irule or else or not possible at all?

 

Regards,

 

3 Replies

  • Hi Techgeeeg,

     

    Using iRules, it's not possible, regardless of F5 version. However, it's doable:

     

    1) Write a TCL script (unlike iRules, you have access to external bash utilities, incl. Telnet via TCL scripts). For reference, search for TMSH scripting sections in F5 wiki.

     

    2) Configure iCall (v11.4 or later required) to execute the TCL script which triggers on "pool down" event.

     

  • Hi Hanees,

     

    Thanks for the input if you have any useful link do reply as well.

     

    Regards,

     

  • an expect script with telnet and ical to run the script when the pool goes down.

     

    Easy as a pie.