rfpludwick / unifi-phantom-clients-cleanup

Application to clean up phantom clients in the UniFi Controller
Apache License 2.0
3 stars 3 forks source link

Run successfully, but doesn't find anything #5

Open jakadia opened 1 year ago

jakadia commented 1 year ago

root@go:~/unifi/unifi-phantom-clients-cleanup# go run . Executing for host https://unifi.xxxxxxx.com Successful completion root@go:~/unifi/unifi-phantom-clients-cleanup#

Here is the message I received, but it never removed any of my phantoms. They all have unmodified names and no network traffic, not sure what is going on.

configuration.yaml version: "0.2" httpLogDirectory: "" sites: - host: "https://unifi.xxxxxx.com" site: "default" username: "xxxxxxx" password: "xxxxxxx" udmp: true validateCertificate: true

I am unsure on how to view the logs, I even add a directory in the .yaml file for it, but it does not show up. Any help would be great, not the best at this stuff but really want my Unifi cleaned up.

rfpludwick commented 1 year ago

@jakadia Would it help if I added more output on the verbose flag to show what clients it inspected but opted not to remove?

jakadia commented 1 year ago

It says it finds like 166 clients and removes 33, but looking at my console it only shows 105 clients and 10 or so are the phantoms. After running the script, they are still there.

rfpludwick commented 1 year ago

I have a feeling this is the same issue as #4. I can try to add more logging, but I've been unable to replicate seeing phantom clients left in UniFi even after running this app.