Skip to content

Instantly share code, notes, and snippets.

@donnlee
donnlee / gist:00d9bcd7a6b1c5e761be3714d2c1c61a
Created September 14, 2020 20:44
Clean-up Unifi controller bogus MAC addresses
# In my particular case, there are bogus MACs that all end in "42:42:d7:59" (var SUFFIX_OF_SPAM)
# This script gets rid of those, but saves MACs in SAVE_THESE.
# https://github.com/finish06/pyunifi
# Create py virenv for unifi deps & activate it, then inside the virenv:
# pip3 install pyunifi
# Remove/"forget" an array of MACs, written in ruby:
# https://gist.github.com/rspeicher/fd931d557a35c88011e61fbe417a0020
# Manager is 'stamgr' (station manager?)
<Plugin "write_http">
<Node "example">
URL "http://example.com/post-collectd"
User "collectd"
Password "weCh3ik0"
</Node>
</Plugin>