Forum Discussion
rmanley_77956
Nimbostratus
Mar 06, 2008Node disable syntax - cont
Here is the iRule in question > How do I "disable" or as it appears in the .conf file "session disable" a member. If the member is marked "down", doesn't the virtual go down as well.?. Or will the virtual continue to route to the pool specified in the rule.?.
Any help is greatly appreciated..
rule >
when CLIENT_ACCEPTED {
if { [active_members CHI_Prod-FEP_CFC_9991_Pool] > 2 and
[active_members ATL_Prod-FEP-23_CFC_9991_Pool] < 1 } {
[pool CHI_Prod-FEP_CFC_9991_Pool] and
[LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.8 9991]
[LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.9 9991]
[LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.22 9991]
} else {
pool ATL_Prod-FEP-23_CFC_9991_Pool
}
}
2 Replies
- The_Bhattman
Nimbostratus
I think the code looks wrong. You have the following statement... { [pool CHI_Prod-FEP_CFC_9991_Pool] and [LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.8 9991] [LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.9 9991] [LB::down pool ATL_Prod-FEP-23_CFC_9991_Pool member 192.168.93.22 9991]...
What is it exactly what you are doing with the AND operator? - Nicolas_Menant
Employee
Hi,
You don't have a command to make a pool member being disable ...You can know the state of a pool member with the command LB::status but that's all
Have you try to specify no default pool to the VS? this way it should be in an unknow state (ok it's not the best but at least it will be available) and you specify the default pool and the backup pool to use in your iRule depending on the availability of the pool members. This way if the default pool is down the VS won't go down
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
