06-20-2023 07:53 AM
Hi ALl,
Is there is a command to show only the local connected endpoint to a switch ?
show endpoint showing all endpoint learned from the fabric ? how to sort on the local learned only?
Thank you!
Solved! Go to Solution.
06-20-2023 09:31 AM
06-20-2023 02:43 PM
For future readers of this post, be aware that @Robert Burns answer (and the question) is referring to the CLI of an ACI switch.
A better way of achieving the exact same result is achieved by entering the command from the APIC, using the fabric xxxx prefix
So - if I had say two leaf switches numbered 1201 and 1202, from the APIC I could enter the following:
apic1# fabric 1201-1202 show endpoint | grep -w L
However, this misses any endpoints attached via a VPC (because the -w flag looks for lines containing the word "L" as a flag for the endpoint, but VPC attached interfaces will have "LV" or "LaV" or "LpV" flags)
So perhaps a better form of the command (if you want to include VPC attached endpoints) is (note the space before the L in " L")
apic1# fabric 1201-1202 show endpoint | egrep " L"
or perhaps even better still (if you want to see the leaf switch numbers too) is to include the word "Node" in the egrep filter.
apic1# fabric 1201-1202 show endpoint | egrep " L|Node" Node 1201 (Leaf1201) S - static s - arp L - local O - peer-attached Tenant02:Production_VRF 10.102.0.201 L lo16 43 vlan-1021 b496.9162.9888 L eth1/12 Tenant02:Production_VRF vlan-1021 10.102.11.10 L eth1/12 104 vlan-1227 0050.56a2.204c L eth191/1/12 Tenant02:Production_VRF vlan-1227 10.102.11.11 L eth191/1/12 51 vlan-1024 0050.569b.b2ba LpV po8 Tenant02:Production_VRF vlan-1024 10.102.12.200 LV po8 102 vlan-1228 0050.56a2.f82f L eth191/1/12 Tenant02:Production_VRF vlan-1228 10.102.12.11 L eth191/1/12 71/Tenant02:Production_VRF vxlan-15630229 380e.4d48.8df5 L eth1/10 103 vlan-1220 0050.56a2.1ae6 L eth191/1/12 Tenant02:Production_VRF vlan-1220 10.102.20.1 L eth191/1/12 100 vlan-1229 0050.56a2.92b7 L eth191/1/12 Tenant02:Production_VRF vlan-1229 10.102.20.5 L eth191/1/12 Total number of Local Endpoints : 8 Total number of Local IPs : 7 Node 1202 (Leaf1202) S - static s - arp L - local O - peer-attached Tenant02:Production_VRF 10.102.0.202 L lo2 80 vlan-1022 b496.9162.988b L eth192/1/12 Tenant02:Production_VRF vlan-1022 10.102.12.10 L eth192/1/12 1 vlan-1024 0050.569b.b2ba LaV po8 Tenant02:Production_VRF vlan-1024 10.102.12.200 LV po8 46 vlan-1228 0050.56a2.3ef6 L eth1/12 Tenant02:Production_VRF vlan-1228 10.102.12.12 L eth1/12 45 vlan-1227 0050.56a2.2b0b L eth1/12 Tenant02:Production_VRF vlan-1227 10.102.11.12 L eth1/12 Total number of Local Endpoints : 5 Total number of Local IPs : 5
I hope this helps.
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.
06-20-2023 08:59 AM
Hello @AhmedALJAWAD44875 ,
show endpoint with 'pipe'?
show endpoint | include Local | sort
06-20-2023 09:22 AM
Not Working
XX002XL0005# show endpoint | include Local
XX002XL0005#
06-20-2023 09:31 AM
Try:
show endpoint | grep -w "L"
Robert
06-20-2023 09:36 AM
Correct
06-20-2023 02:43 PM
For future readers of this post, be aware that @Robert Burns answer (and the question) is referring to the CLI of an ACI switch.
A better way of achieving the exact same result is achieved by entering the command from the APIC, using the fabric xxxx prefix
So - if I had say two leaf switches numbered 1201 and 1202, from the APIC I could enter the following:
apic1# fabric 1201-1202 show endpoint | grep -w L
However, this misses any endpoints attached via a VPC (because the -w flag looks for lines containing the word "L" as a flag for the endpoint, but VPC attached interfaces will have "LV" or "LaV" or "LpV" flags)
So perhaps a better form of the command (if you want to include VPC attached endpoints) is (note the space before the L in " L")
apic1# fabric 1201-1202 show endpoint | egrep " L"
or perhaps even better still (if you want to see the leaf switch numbers too) is to include the word "Node" in the egrep filter.
apic1# fabric 1201-1202 show endpoint | egrep " L|Node" Node 1201 (Leaf1201) S - static s - arp L - local O - peer-attached Tenant02:Production_VRF 10.102.0.201 L lo16 43 vlan-1021 b496.9162.9888 L eth1/12 Tenant02:Production_VRF vlan-1021 10.102.11.10 L eth1/12 104 vlan-1227 0050.56a2.204c L eth191/1/12 Tenant02:Production_VRF vlan-1227 10.102.11.11 L eth191/1/12 51 vlan-1024 0050.569b.b2ba LpV po8 Tenant02:Production_VRF vlan-1024 10.102.12.200 LV po8 102 vlan-1228 0050.56a2.f82f L eth191/1/12 Tenant02:Production_VRF vlan-1228 10.102.12.11 L eth191/1/12 71/Tenant02:Production_VRF vxlan-15630229 380e.4d48.8df5 L eth1/10 103 vlan-1220 0050.56a2.1ae6 L eth191/1/12 Tenant02:Production_VRF vlan-1220 10.102.20.1 L eth191/1/12 100 vlan-1229 0050.56a2.92b7 L eth191/1/12 Tenant02:Production_VRF vlan-1229 10.102.20.5 L eth191/1/12 Total number of Local Endpoints : 8 Total number of Local IPs : 7 Node 1202 (Leaf1202) S - static s - arp L - local O - peer-attached Tenant02:Production_VRF 10.102.0.202 L lo2 80 vlan-1022 b496.9162.988b L eth192/1/12 Tenant02:Production_VRF vlan-1022 10.102.12.10 L eth192/1/12 1 vlan-1024 0050.569b.b2ba LaV po8 Tenant02:Production_VRF vlan-1024 10.102.12.200 LV po8 46 vlan-1228 0050.56a2.3ef6 L eth1/12 Tenant02:Production_VRF vlan-1228 10.102.12.12 L eth1/12 45 vlan-1227 0050.56a2.2b0b L eth1/12 Tenant02:Production_VRF vlan-1227 10.102.11.12 L eth1/12 Total number of Local Endpoints : 5 Total number of Local IPs : 5
I hope this helps.
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.
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