jonathan_106468
Feb 16, 2010Nimbostratus
External Commands thru iRules
Good Morning,
I have a small question on the usage of iRules in GTM.
What we want to achieve is that if an Active Pool Member in GTM is unavailable and GTM tries to switch to the secondary pool, I would like to execute some unix commands on a remote server (being monitored by LTM) and then enable all traffic to be directed to the new pool member.
i.e
Steps
1. GTM sending traffic to 1 pool member (Active Site)
2. GTM detects that Pool member is unavailable
3. GTM starting to try the Standby Pool Member but before it sends traffic it does the following
a. Login to the remote Application server (being monitored by LTM)
b. Run a Unix command on the remote Application server
4. GTM starts sending traffic to the new Pool Member (previously Standby) when the Unix command results in a Success.
According to my research, I was hoping to achieve this by using iRules (using LB_FAILED API)
when LB_FAILED
{
execute Unix command on Remote Server
pool New-Pool (Previously Standby)
}
Do you think this will work?
Which API enables executing remote commands?
Thanks for your help.
Jon