01-29-2024 03:13 AM
Hi, i'm trying to create a python script which would gather some of the data available on APIC leaf capacity dashboard. Using API inspector, i was able to get most of API calls used by this dashboard and create appropriate calls for various resources (VLAN's, EPG's, L2 endpoints, L3 prefixes, etc.) in Python, but i can't find a call which would return LPM usage per leaf, so i guess this is somehow calculated from other variables by the dashboard code.
Question is: how can i get/calculate LPM usage per leaf using APIC API calls?
Thanks,
Wojtek
01-29-2024 10:32 PM
Hi, you can get the max value for LPM's per leaf by quering these two classes:
configprofileEntity (attribute LPM is the max value for a specific profile)
topoctrlFwdScaleProf (leaf/profile mapping)
These will give you the "100% numbers" - whats missing now is the actual LPM size per leaf - I let you know as soon as I find the correct class.
02-05-2024 01:16 AM
Hi Marcel, were you able to find something? I'm still struggling with calculating LPM size per leaf using API.
Thanks.
Wojtek
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide