Forum Discussion
Ulf_Zimmermann_
Nimbostratus
Sep 11, 2009Checking for file from iRule?
I am looking at implementing a downtime pool for something like 50-60 virtual servers at a time. My current idea would involve an iRule always applied to these virtual servers which as the first actio...
Ulf_Zimmermann_
Nimbostratus
Sep 14, 2009Using the suggestions posted in reply to my posts, here is what I have come up with so far:
when HTTP_REQUEST {
if { [PROFILE::exists serverssl] == 1 } {
set downtimepool "Downtime-SSL"
set downtimemember "10.21.67.103"
set downtimeport "16443"
log local0. "Virtual server has SSL server profile"
} else {
set downtimepool "Downtime-NonSSL"
set downtimemember "10.21.67.103"
set downtimeport "16080"
log local0. "Virtual server has no SSL server profile"
}
if { ([LB::status pool $downtimepool member $downtimemember $downtimeport] eq "up") and (![IP::addr [IP::client_addr]/16 equals 10.21.0.0]) } {
pool $::downtimepool
log local0. "Sending request to pool $downtimepool"
}
}
Now I am running into a problem with PROFILE::exists serverssl, testing it for one server has serverssl set, the above rule still enters the else {} instead.
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
