Forum Discussion
Pool Member status page iRule Version 11
Jason I remove the quotes from the echo but I'm still getting INVALID status.
!/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
Contents of class file below
[root@nc93q-lb-st-dcds2:Active] class cat pool_member_status_list.class fapdamail10_nc/172.17.188.30:http, fapdamail10_nc/172.17.188.31:http, fapdamail10_nc/172.17.188.32:http, lync2013fe_nc/172.17.188.44:any, mailsearch_nc/172.17.188.32:any, oncallmail_nc/172.17.188.33:any, owa2-as_nc/172.17.188.30:https, owa2-as_nc/172.17.188.31:https, owa2_nc/172.17.188.30:any, owa2_nc/172.17.188.31:any, owa2_nc/172.17.188.32:any, pdainternal_nc/172.17.188.30:http, pdainternal_nc/172.17.188.31:http,
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