Forum Discussion
lostnytechie_55
Apr 15, 2011Nimbostratus
Node Status change to trigger Script
Hi All, Hope someone can help me with this. I'm currently using GTM Version 10.2.1 and I have a wideIP setup with a pool that has two members. Member 1 is set to Priority 3 and Member 2 is set to Pr...
Joel_Moses
Apr 15, 2011Nimbostratus
I don't think you want to do this with iRules. First, they are transactional and event-based, so using them as a warning trigger is difficult at best. Second, unless you want to do it via event logging or HTTP::retry, there is no real way to jump outside the iRule sandbox to execute something.
There are three ways you can get this done: iControl, on-box shell scripting, or TMSH scripting. With iControl, you would need to run a script from an external box, monitoring your selected pool on a regular basis, and taking action on any changes. The same is true of the other two methods, only they would both execute on-box.
The one I would use is probably TMSH. Here is an example of a monitor script:
http://devcentral.f5.com/wiki/default.aspx/tmsh/WatchPools.html
Hope this gets you started!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects