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

0 Replies 0
Get notified when there are additional replies to this discussion.