Forum Discussion
Rick99_137765
Nimbostratus
Jul 01, 2014Need to monitor pool members to see if they are out of the farm
I don't want to re-invent the wheel if someone has already done this, so I'll ask...
I need to monitor individual members of a pool to see when / if they come out of the pool - either on their o...
Kevin_Stewart
Employee
Jul 02, 2014Certainly. Replace the TMSH commands with cURL iControl REST calls and reformat the resulting data as required. I'm sure there's probably a much easier version of this, but here's an idea of what the first request might look like:
curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X GET https://x.x.x.x/mgmt/tm/ltm/pool/local-pool?expandSubcollections=true |sed 's/,/\n/g' |grep "\"name\":" |awk -F"\"name\":" '{ print $2 }' |perl -ne 'if (m/([a-zA-Z0-9\.-]+:[^\s]+)/) { print "$1\n"}' |sed 's/"//g'
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