Jim_Moore
Mar 27, 2014Nimbostratus
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