aj1
Aug 14, 2015Nimbostratus
tmsh show /sys connection cs-client-addr x.x.x.x using iControl REST
Been going through the iControl REST reference and it appears appending
stats
to the GET request outputs the tmsh show ...
of a pool, virtual etc. I've tried the same approach for tmsh show /sys connections
, and it outputs the complete table, unformatted. Is there any way this can be formatted into a human-readable format, just like the JSON output of a tmsh list ...
command.
I would also like to trim that down (Since this is going to be a high load system) using
cs-client-addr
(or maybe multiple parameters). I can do this using get_active_connection_v2
in iControl SOAP. Is there a way to do the same in REST?
{
"apiRawValues": {
"apiAnonymous": "Sys::Connections\n10.0.0.3:37843 10.0.0.2:179 10.0.0.3:37843 10.0.0.2:179 tcp 5 (slot/tmm: 1/0) none\n10.0.1.3:57092 10.0.1.2:179 10.0.1.3:57092 10.0.1.2:179 tcp 6 (slot/tmm: 1/3) none\n10.0.2.5:37506 10.0.2.4:179 10.0.2.5:37506 10.0.2.4:179 tcp 9 (slot/tmm: 1/1) none\n10.0.3.3:48427 10.0.3.2:179 10.0.3.3:48427 10.0.3.2:179 tcp 5 (slot/tmm: 1/0) none\n10.0.4.5:56145 10.0.4.32:53 10.0.4.5:56145 10.0.4.32:53 udp 0 (slot/tmm: 1/0) none\nTotal records returned: 6\n"
},
"kind": "tm:sys:connection:connectionstats",
"selfLink": "https://localhost/mgmt/tm/sys/connection/stats?ver=11.6.0"
}
Thanks in advance!