import meraki
dashboard = meraki.DashboardAPI("")
organization_id = ''
print("orgID")
all_networks = dashboard.organizations.getOrganizationNetworks(organization_id, total_pages='All')
for a in all_networks:
#print(a['name'])
network_alerts = dashboard.networks.getNetworkHealthAlerts(a['id'])
count = 0
for n in network_alerts:
print(n)
if n['type'] == "Uplink IP address in conflict with another device":
print(n)
with open("C:\\data\\logs\\networkswithissues.txt", "a") as f:
f.write(str(n))
count += 1
print(f"{count} networks.") You can also do it with the Meraki Python module. This filters just for IP conflicts. This ultimately uses the same endpoint that @LearningIsFun shared, so may not work long-term.
... View more