How to get output of only switch ports that are installed in this modular switches

YoeriOppelaar1
Here to help

How to get output of only switch ports that are installed in this modular switches

HI,

With the introduction of switches that support modular uplink modules, like the 9300 series switches, you get a very long list of switchport interfaces. basically every possible/supported poort is pre-listed allready without having it pysically installed, which is great for provisioning, but from an overview or documenation perspective it is not so usable.

 

Is there an option using API to the following:

1. a direct api call to retrieve what type module is installed in the requested switch. ( like the "show inventory" command on a ios-xe running 9300, where output of modules, power supplies etc is mentioned"

2. an api call to get only the actually available ports, including the right ones of the uplink modules (if installed)?

 

off course try using a combination of api calls and lots of manipulation it could get my awnsers, but i think it would be great if their is a more direct way to get this data (more filters, additional key into exisiting payload etc) to get this data more directly.

 

 

Hope someone has a good idea.

with regards Yoeri

1 Reply 1
alemabrahao
Kind of a big deal
Kind of a big deal

Meraki does not currently expose detailed module-level inventory via the API.

 

 

You can Get Only Active/Available Ports (Including Uplink Modules) using this API.

 

Get Device Switch Port - Meraki Dashboard API v1 - Cisco Meraki Developer Hub

 

And for General Device Info you can use this one.

 

https://developer.cisco.com/meraki/api-v1/get-organization-inventory-devices/

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.
Get notified when there are additional replies to this discussion.