Forum Discussion
Vasile_Balan_95
Nimbostratus
Oct 11, 2006node selection string from v 4.x to v 9.x
Hi,
I need help with converting the node selection string
node(findstr(http_uri, "?ip=", 4, '/') + ":80")
from the persistence tab on v 4.x to v 9.x. i know there is no selection in v 9.x, so i guees an iRule should be written. i have a problem with the last statement that would use the node provided in ?ip=.
Thanks,
Vasile
- Deb_Allen_18Historic F5 AccountHi Vasile -
when HTTP_REQUEST { set myNode [findstr [string tolower [HTTP::uri]] "?ip=" 4 "/"] if { ($myNodeIP ne "") and ([LB::status pool POOL member $myNodeIP 80] ne "down") } { pool POOL $myNodeIP 80 } }
when HTTP_REQUEST { set myNode [findstr [string tolower [HTTP::uri]] "?ip=" 4 "/"] if { $myNodeIP ne "" } { pool POOL $myNodeIP 80 } } when LB_FAILED { LB::reselect }
- Vasile_Balan_95
Nimbostratus
Hi deb, - hoolio
Cirrostratus
when HTTP_REQUEST { log local0. "starting..." set myNodeIP [findstr [string tolower [HTTP::uri]] "?ip=" 4 "/"] if { $myNodeIP ne "" } { log local0. "myNodeIP: $myNodeIP" pool http_pool $myNodeIP 80 } else { log local0. "myNodeIP was empty: (myNodeIP: $myNodeIP)" } } when LB_FAILED { log local0. "LB failed!" LB::reselect }
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