Forum Discussion
LB::server pool returns empty string
Hi CHofmann,
The [LB::server pool] command should normaly output the currently selected pool, either using the "default pool" or the last selected [pool]. This should work independently of your [ONECONNECT] profile settings.
OneConnect enable Virtual Servers will just behave little differently, since they would automatically revert to the "default pool" on each HTTP_REQUEST. And OneConnect-less Virtual Server would always stick to the last selected virtual server...
To troubleshoot your environment, you may add some additional code to your iRule...
when CLIENT_ACCEPTED {
log -noname local0.debug "1 - LB::server_pool = [LB::server pool]"
set default_pool [LB::server pool]
log -noname local0.debug "1- \$default_pool = $default_pool"
pool YOUR_DEFAULT_POOL_NAME
log -noname local0.debug "2 - LB::server_pool = [LB::server pool]"
set default_pool [LB::server pool]
log -noname local0.debug "2 - \$default_pool = $default_pool"
}
when HTTP_REQUEST {
if { ... } {
pool $default_pool
} else {
pool other_pool
}
}
Cheers, Kai
Recent Discussions
Related Content
* 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