19-Nov-2016
07:10
- last edited on
05-Jun-2023
15:43
by
JimmyPackets
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
19-Nov-2016 07:11
18-Mar-2019
10:22
- last edited on
01-Jun-2023
15:16
by
JimmyPackets
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
11-Mar-2021 16:31
You can do this that way:
https://YourF5.com/mgmt/tm/ltm/pool/members/stats