11-19-2015 09:42 AM
Spin-Off from another topic, I was interested in finding out what more AirRecorder could do as Jeff (jgoff) mentioned: "there is plenty it can do other than running CLI commands into text files (i.e. the ZMQ output option is not there just for show, rather it's used to send CLI output to post-processing apps)". So far I've just been using it for information gathering into a CSV file - port speed status, poe power save mode, and a BSSID Database for my smartphone.
12-06-2015 11:19 PM
To pick up again on this topic, here is an example of what I was alluding to.
Attached is an extemely contrived demo of passing "show ap debug client-table" from AirRecorder to a python app using ZeroMQ (aka ZMQ).
The demo serves only to show the messge passing using the ZMQ "push/pull" pattern (see https://learning-0mq-with-pyzmq.readthedocs.org/en
For example: save it to a SQL database, pass to some other tool (splunk, RRDtool, elasticsearch/kibana, kairos/grafana etc.), merge multiple CLI commands together (i.e. convert bssids to AP names), calculate deltas/rates and generate an alert/syslog message if out of bounds, make a graph for a webpage, pass to a GUI etc.
There are two parts, firstly an AirRecorder instance (and something for it to talk to, i.e. a controller) and secondly the python app which accepts messages from AirRecorder using ZMQ. Note that it may be necessary to install "pyzmq" - the app will throw a warning if this is the case.
The attached zip file contains the following files
assoc.cmd - airrecorder command file
220.127.116.11.txt - sample credentials file (which needs to be renamed and edited)
zmq_pull.py - python (2.7) demo of handling CLI commands over ZMQ
usage.txt - usage steps for the demo
I have also included the latest AR .jar file, with the following MD5 sum of the JAR in the zip file
*note* this demo app will run "show ap debug client-table ap-name <>" against every AP on the controller every 10 seconds. This is not really something that should be done on a production controller without being aware of the risks/impact etc.
12-17-2015 04:41 PM
12-17-2015 11:54 PM
glad to know it's working. To give an idea of where this can go, attached are some screen caps of how you can use tools like Kibana/Elasticsearch to process the data coming out of Airrecorder. Obviuously some glue is involved to get this working, but you can see the direction that this allows you to move in for monitoring.