cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
417
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

Everyone's tags (1)
3 REPLIES 3
Highlighted
Collaborator

Re: Identify the free ports in the given node

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


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem

Highlighted

Re: Identify the free ports in the given node

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

Highlighted
Participant

Re: Identify the free ports in the given node

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

CreatePlease to create content