Forum Discussion
William_Benett1
Nimbostratus
Jul 11, 2007Node status problems
I have an iRule that uses LB::status to check the state of a node. Based on that, I then load balance to it or not. I'm running 9.3.0 and I've run into an issue where the node shows up green for TMM...
Deb_Allen_18
Jul 11, 2007Historic F5 Account
Let me do a little digging around & see what I can find out.
In the meantime, a couple of observations:
jfroggatt:
For this test:
if {[LB::status pool $LBpool member $LBmember $LBport] eq "up"} {
you might consider using 'ne "down"' instead of 'eq "up"' if you ever want to be able to drain off connections or test the rest of the rule logic without a monitor applied. That way the status of DISABLED and UNCHECKED would pass the test.wbenetti:
As documented in the wiki page (Click here), the LB::status command didn't work as expected in 9.2.3 with this syntax:
if {[LB::status node $::BSIFNODE1 up] == 0} {
and we had to instead use the syntax as in the example above:if {[LB::status...] ne "up"} {
Let me know if you've verified that the correct boolean is returned in all cases in 9.3.0, and I'll do some further testing & update the wiki if appropriate.Also, I seem to recall difficulty in getting the "node" command to function properly without a port parameter, so you might want to try adding it to see if you get a more consistent result that way.
HTH, and I'll be circling back on this one later this week.
/deb
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