Forum Discussion
Nov 19, 2016
Get all pool and member statistics in one go with iControl rest?
Hi!
Is there any way to get data equivalent to this command in one go?
tmsh -c "cd /;show ltm pool detail raw recursive"
Would like to find a way to get all member stats recursively without...
Groves_263641
Mar 18, 2019Altostratus
This is way late but I was able to work out a good couple of filters. The "?expandSubcollections=true" filter will work with many different F5 LTM objects. I like outputs to look pretty and this would not come out formatted nicely from bash so pipe that output! "| jq . -M"
This filters out ALL pool config attributes and expands all sub-collections to provide state for pool members, etc on one page:
curl -sk -u admin:admin https://localhost/mgmt/tm/ltm/pool?expandSubcollections=true | jq . -M
This filters out ALL pool and member stats on one page:
curl -sk -u admin:admin https://localhost/mgmt/tm/ltm/pool/stats?expandSubcollections=true | jq . -M
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