I have another quick question: I'm able to add fields like "Recent SSID" and "Manufacturer", but for some reason I couldn't add "Connect to", "Port", "VLAN" etc. I'm a Python newbie but I can usually find my way around code. Could you please explain why I can't grab this info from the client screen? Thanks again.
print("List of active clients and their IDs with health scores:")
all_active_clients_data = []
for client in active_clients:
client_name = client['description'] if client['description'] is not None else "None"
client_data = {
'Client Name': client_name,
'Client ID': client['id'],
'MAC Address': client['mac'],
# 'Connect to': client['node'],
'IP IPv4 address': client['ip'],
'Recent SSID': client['ssid'],
# 'Port': client['port'],
# 'VLan': client['VLAN'],
'Manufacturer': client['manufacturer'],
# 'Last Seen': client['last_seen'],
'Health Score': client.get('healthScore', 'N/A')
}
all_active_clients_data.append(client_data)