Forum Discussion

Patrik_Jonsson's avatar
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 making follow-up calls.

/Patrik

3 Replies

  • 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