Forum Discussion
Vitor_Hugo_Domi
Jan 15, 2016Nimbostratus
Doubt about irule - [HTTP::uri]
Hi all,
I need to help me for verification my irule if it is correct?
when I receive anyway URI I need to verify the pool_YYYY the stats, if went ok, he goes to pool_XXXX.
Else he changes the UR...
Kai_Wilke
Jan 15, 2016MVP
HI Vitor,
corrected some portions...
when HTTP_REQUEST {
if { [active_members pool_YYYY] > 0 } then {
pool pool_XXXX
} else {
HTTP::uri "/test[HTTP::uri]"
pool pool_ZZZZZZZ
}
}
Note1: The
option of -list
command is not required to count the numbers of active pool members. The -list option would deliver a string containing the IPs and Ports of every available pool members, which produces unnecessary overhead.[active_members -list pool_YYYY]
Note2: If you want to ad a trailing string to the
you could easily substitute the new string, based on the new trailing string and the old value (aka. [HTTP::uri]
)."/test[HTTP::uri]"
Cheers, Kai
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