I wrote a script for a client that uses this as part of their network validation. I can't post the whole script, but this is an important snippit: import collections
...
# Find ports with multiple devices
portList=[]
for client in dashboard.networks.getNetworkClients(net['id'],total_pages='all',timespan=15*60):
# Skip clients with no physical port
if(client['switchport'] is None):
continue
# Skip virtual machines
if(client['manufacturer'] =='VMware'):
continue
portList.append(f"{client['recentDeviceName']}/{client['switchport']}")
portFrequency=collections.Counter(portList)
for port in portFrequency:
if(portFrequency[port]>1):
print(f"{port} has {portFrequency[port]} devices - there might be an unmanaged switch")
... View more