cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2386
Views
0
Helpful
3
Replies

Identify the free ports in the given node

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

3 Replies 3

RedNectar
VIP
VIP

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

 

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

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

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

Getting Started

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:

Save 25% on Day-2 Operations Add-On License