API for determining APs in repeater mode

jeffsto
Here to help

API for determining APs in repeater mode

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

6 REPLIES 6
NolanHerring
Kind of a big deal

I'm not seeing anything specifically for that, and I tried :

{{baseUrl}}/networks/{{networkId}}/devices/{{serial}}

But it didn't specify anything about gateway vs repeater.

Have you tried using the repeater mode alerting instead?
Nolan Herring | nolanwifi.com
TwitterLinkedIn

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.

Sounds like you need a new cable vendor lol

Let me check again just in case but I didn't see anything at first glance
Nolan Herring | nolanwifi.com
TwitterLinkedIn

By chance do you have any access points in repeater mode right now?

I don't, so I can't 'test' to see if anything will report back as being in repeater or not.

Was going to try this one: {{baseUrl}}/organizations/{{organizationId}}/deviceStatuses
Nolan Herring | nolanwifi.com
TwitterLinkedIn

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.  

ChrisMarriott
Conversationalist

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}
}

 

 

 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.
Labels