Is There a "Key" to Rewriting TMSH Commands as RESTful Calls? +Example
Hiya,
I'm running this command remotely to get a pool member's active connections, but it's a) awfully kludgy and b) I'd like get the results from the RESTful API:
ssh $ID@$F5_HOST "show /ltm pool $POOL members { $POOL_MEMBER } default" | awk '/| Current Connections/ {print $(NF-1)}'
Awk grabs this line and returns the "ServerSide" stats for that pool:
| Current Connections 0 -
I've had some luck constructing URIs to pass into cURL from other TMSH commands, but I haven't really figured out a pattern I can follow to create arbitrary API requests. Do any of you have a handy trick or rule to follow?
Worst case, how the heck can I pull specific Traffic and Connection Queue statistics for pools and pool members via the API? Thanks?