10-08-2019 11:43 PM
Hello All,
could you please anyone guide how to identify the free/unused ports in the given node?
Sample node:
/api/node/class/topology/pod-1/node-1201
Thanks
Bala
10-09-2019 12:39 AM
Hi Bala,
does the command:
apic1# fabric 1201 show interface status
issued from an Apic show you what you want?
or for a bit of refinement:
fabric 1201 show interface status | grep notconnect
or
fabric 1201 show interface status | grep sfpabsent
10-09-2019 01:52 AM
Thank you so much for the response. Basically I need to find out the un-allocated ports within interface. Could you please help on that?
thanks
Bala
10-15-2019 10:15 AM
Hi
You can query the l1PhysIf-MO with usage=discovery:
/api/class/l1PhysIf.json?query-target-filter=eq(l1PhysIf.dn,"discovery")&order-by=l1PhysIf.dn|asc
Or via moquery:
moquery -c l1PhysIf -f 'l1.PhysIf.usage=="discovery"' | grep dn | sort
HTH
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: