We are in the process of rolling out Meraki APs and finding after install we are having some go into repeater mode. Is there an API call where I can see this status?
Thanks
Alerting really doesn't help. We're looking for trending and things of that nature. What I want to do is setup a query that runs every x amount of time. Then store the results in the DB. I can then easily look for repeat offenders and other trends based on the data. Just getting alerts will help once we get ahead of the issue but right now we are talking 4k+ APs so alerting will wash out for now.
I thought the same unfortunately the status on that query just shows "online". I did validate after my API lookup that the online dashboard definitely shows that it is in repeater mode.
I know it's a bit late but this might help others, I had the same issue so I made a small Powershell script to restart any AP's that were found in mesh/repeater mode:
#Step 1 Fill in your Meraki API Key here (You can get this from your profile on the Meraki dashboard under API access)
$Meraki_API_KEY = '<Insert Meraki API Key>'
<# Step 2 get your network IDs by running this:
$Meraki_API_KEY = '<Insert Meraki API Key>'
$OrgID = (Invoke-RestMethod -Method GET -Uri "https://api.meraki.com/api/v1/organizations" -Headers $header).id
$header = @{
"X-Cisco-Meraki-API-Key" = "$Meraki_API_KEY"
"Content-Type" = 'application/json'
"Accept" = 'application/json'
}
(Invoke-RestMethod -Method GET -Uri "https://api.meraki.com/api/v1/organizations/$OrgID/networks" -Headers $header) | Select-Object name, id
#>
#Step 3 fill in the target network id below
$Meraki_Network_ID = '<Insert network ID>'
$header = @{
"X-Cisco-Meraki-API-Key" = "$Meraki_API_KEY"
"Content-Type" = 'application/json'
"Accept" = 'application/json'
}
$MeshAPs = Invoke-RestMethod -Method GET -Uri "https://api.meraki.com/api/v1/networks/$Meraki_Network_ID/wireless/meshStatuses" -Headers $header
foreach ($AP in $MeshAPs){
If ($AP.meshRoute -ne "" -and $AP.meshRoute -ne $null)
{
Write-Host "Restarting AP $($AP.serial) as it's online and in repeater mode" -ForegroundColor Green
Invoke-RestMethod -Method Post -Uri "https://api.meraki.com/api/v1/networks/$Meraki_Network_ID/devices/$($AP.serial)/reboot" -Headers $header
}
else {Write-Host "Skipping AP $($AP.serial) as it's not online" -ForegroundColor Red}
}