Connection list via iControlREST API
Problem this snippet solves:
This python script will retrieve a filtered list of active connections via the iControl REST API. It supports both the default connection list as well as the detailed l...
Updated Jul 16, 2024
Version 3.0JCohen
Ret. Employee
Joined October 12, 2005
jacohen
Fog
Joined July 16, 2024
JRahm
Jan 06, 2016Admin
great stuff, Jason! Looks like the json format output isn't 12.0 compatible yet:
FLD-ML-RAHM:downloads rahm$ python cl.py -j -f protocol=tcp admin@172.16.44.15
Password:
Traceback (most recent call last):
File "cl.py", line 255, in
main()
File "cl.py", line 138, in main
conns, patterns = process_short_conns(ctext, ver)
File "cl.py", line 211, in process_short_conns
if SHORT_DEF[ver]['chs-indc'] in ctext[1]:
KeyError: u'12.0.0'
I'll debug when I get a chance.