Forum Discussion
Telnet_178675
Nimbostratus
Dec 20, 2014Irule to disable ASM
i have 2 servers
i want to keep forwarding traffic to server1 & in this case ASM should be disabled
once server1 is down , i want to forward to server2 & enabel ASM checking
if server1 is online a...
Telnet_178675
Nimbostratus
Dec 20, 2014i have 2 servers i want to keep forwarding traffic to server1 & in this case ASM should be disabled
once server1 is down , i want to forward to server2 & enabel ASM checking
if server1 is online again , i should forward to it & disable ASM as it was initially
Created VS , Created two pools , each with one pool member under it Below Irule is now working ,
once ASM is enabled ON VS it is always enabled & never goes disabled again when serevr1 comes back online
when HTTP_REQUEST {
Check Pool-1 status , if Up forward to it & make sure ASM is disabled Otherwsie Forward to Pool-2 & enable ASMif { [active_members Pool-1] >= 1 } {
pool Pool-1
ASM::disable
} elseif {[active_members Pool-2] >= 1 } {
pool Pool-2
ASM::enable policy-name
}
}
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