Forum Discussion
Les_Marstaeller
Nimbostratus
Feb 01, 2006Irules changing BigIP configs?
Is it possible to disable a pool member using an irule (and then subsequently re-enable it)?
The reason I ask is that we have a pool that has 2 x FTP servers in it. We would like to direct all requests to the one server, and then "failover" to the second FTP server if the first one fails. If the first server then comes back up, we do not want that used unless the second server fails. Very similar to the failover function the BigIP's use themselves in HA Mode if an ACTIVE/STANDBY preference isn't set.
Thanks for your help,
Les
Canberra, Australia
- Deb_Allen_18Historic F5 AccountHi Les --
- unRuleY_95363Historic F5 AccountActually, that's not quite true Deb.
when RULE_INIT { set ::active_FTP 10.0.0.1 set ::backup_FTP 10.0.0.2 } when CLIENT_ACCEPTED { pool FTP_pool member $::active_FTP 21 } when LB_FAILED { if { [LB::status pool FTP_pool member $::backup_FTP 21] eq "up" } { set temp $::active_FTP set ::active_FTP $::backup_FTP set ::backup_FTP $temp pool FTP_pool member $::active_FTP 21 } }
- unRuleY_95363Historic F5 AccountOh BTW, that should be:
LB::reselect pool FTP_pool member $::active_FTP 21
- Les_Marstaeller
Nimbostratus
Thanks for the reply everyone. - LB::status was introduced in BIG-IP v9.2.0. You'll have to upgrade if you want to have access to that command.
- unRuleY_95363Historic F5 AccountYou could also just take the if test out. I was just checking if the backup member is up before switching to it. You could just blatantly switch the servers on any LB_FAILED.
- Les_Marstaeller
Nimbostratus
Thanks so much for all of your expert help. This forum continues to impress with the very knowledgable people that are members of it.
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