Forum Discussion
Pool Member status page iRule Version 11
I'm trying to get the pool member status page iRule to work using tmsh commands. Everything seems to be working fine but the status for all the members is showing INVALID.
I'm using the Joel Moses Version of the iRule without the rss portion https://devcentral.f5.com/wiki/irules.Pool__Member__Status__Page_on_a__Virtual__Server_v10.ashx
Here is the bash script I'm using. If I change the script to use b commands like in the above link everything works.
!/bin/bash
tmsh modify sys db bigpipe.displayservicenames value false
rm -f /var/class/pool_member_status_list.class
for POOLNAME in `tmsh list ltm pool | grep -i "ltm pool" | sort | awk '{print $3}'`; do
for POOLMEMBER in `tmsh list ltm pool $POOLNAME | grep : | sort | awk '{print $1}'`; do
echo \"$POOLNAME/$POOLMEMBER\", >> /var/class/pool_member_status_list.class
done
done
if [ "`cat /var/prompt/ps1`" == "Active" ]; then
tmsh load sys config
fi
exit 0
13 Replies
- Jim_Moore
Nimbostratus
Running into another issue. In version 11 there is a name field for nodes. If the name field is populated it is displayed as the pool member. The bash script will put name:port in the class file. The iRule will then run LB::status pool $poolname member $addr $port.
For any pool member that is listed by name it will return INVALID. If I manually change the class file to the IP it returns the correct state?
Has anyone found a workaround for this other than putting the IP in the name field?
- gpoverland
Nimbostratus
Hello Everyone,
I have a quick question. I got the status page up and working.. made some slight mods for my own requirements.. but a couple of the pools return an error... I figured out they return an error because the bash script populates the temp file with a dns name vs. IP address. I validated that my bigpipe.displayhostnames value is set to valse by default (even added to the script), but the script still populates the temp file with the resolved hostname. Any ideas on how to prevent this? Thanks in advance..
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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