Forum Discussion
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 making follow-up calls.
/Patrik
- Groves_263641Altostratus
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
- michdanNimbostratus
You can do this that way:
https://YourF5.com/mgmt/tm/ltm/pool/members/stats
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