Get subnet mask for static/DHCP assigned LanIp Address?

Solved
Petro
Conversationalist

Get subnet mask for static/DHCP assigned LanIp Address?

So I see I can get the device's IP address using this API endpoint:

https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses

 

However the body returns an IP address, but no subnet mask? How can I find the subnet mask assigned to the interface? 

 

Something like this:

"lanIpSubnetMask" = "/24" 

 

 

1 Accepted Solution
alemabrahao
Kind of a big deal
Kind of a big deal

There is no API to get the Subnet mask on APs, just an API to get interface configurations on MX.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

View solution in original post

4 Replies 4
alemabrahao
Kind of a big deal
Kind of a big deal

There is no API to get the Subnet mask on APs, just an API to get interface configurations on MX.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

But you can get the alternate management interface informations:

 

https://developer.cisco.com/meraki/api-v1/#!get-network-wireless-alternate-management-interface

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Petro
Conversationalist

Nice, thanks, I'll see if that works!

JasonM
Meraki Employee
Meraki Employee

The endpoint below can be used if the IP address is configured statically:

https://developer.cisco.com/meraki/api-v1/#!get-device-management-interface

Get notified when there are additional replies to this discussion.