Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

3 REPLIES 3

Groves_263641
Altostratus
Altostratus

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

michdan
Nimbostratus
Nimbostratus

You can do this that way:

https://YourF5.com/mgmt/tm/ltm/pool/members/stats