Forum Discussion
tarsier_90410
Nimbostratus
Aug 25, 2009way to list pools?
I am trying to find a way for an irule (9.x LTM) to query for a list of all pools on the system, but so far have not found a way to do so. Is this possible?
The_Bhattman
Nimbostratus
Dec 10, 2009Hi Chris,
Here are some steps to see if it will work
1. What you can do is create directory etc/cron.daily/
2. Create the file pool_member_status_list.cron
3. Populate it with
!/bin/bash
b pool all member all | grep pool_ | awk '{print "\""$3"\""}'> | sort >/var/class/pool_member_status_list.class
Only performs a b load when it's on the active unit.
if [ "`/bin/ps1`" == "Active" ]; then
b load
fi
exit 0
4. Make sure you make it a executable script by "chmod +755 /etc/cron.daily/pool_member_status_list.cron"
4. add the following entry in the crontab
0 1 * * * root /etc/cron.daily/pool_member_status_list.cron >/var/log/pool_member_status_list.log 2>&1
Then run "pool_member_status_list.cron" script so that it's initially created.
I hope this helps
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
