09-03-2020 01:13 PM
Hello - What is the CLI command that i can execute from the APIC to list down the Node Name and Hardware Model of the Leaf and Spine connected in the Fabric.
The commands such as acidiag fnvread, show switch shows only the IP, Node Name. It dont show the Model number
Can you help please
regards,Sairam
Solved! Go to Solution.
09-03-2020 01:49 PM - edited 09-03-2020 01:56 PM
Is this what you are looking for? The fnvread command?
apic1# fnvread id address disabled active occupied permanent model nodeRole nodeType fabricId podId ----------------------------------------------------------------------------------------------------------------------------------------------- 1101(1) 10.1.120.65/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C9332C(1) 3(1) 0(1) 1(1) 1(1) 1201(1) 10.1.120.64/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C93180YC-FX(1) 2(1) 0(1) 1(1) 1(1) 1202(1) 10.1.120.66/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C93180YC-FX(1) 2(1) 0(1) 1(1) 1(1)
It does not list the NAME though, just the ID. To get the Name as well, use moquery
apic1# moquery -c fabricNode | egrep "^id|^model|^name "
id : 1201
model : N9K-C93180YC-FX
name : Leaf1201
id : 1202
model : N9K-C93180YC-FX
name : Leaf1202
id : 1101
model : N9K-C9332C
name : Spine1101
id : 1
model : APIC-SERVER-M3
name : apic1
That catches the APICs as well
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
09-03-2020 01:24 PM
below command should able to get the information you looking
#show version
#avread
# moquery
09-03-2020 02:38 PM
Thank you. Much appreciated
09-03-2020 01:49 PM - edited 09-03-2020 01:56 PM
Is this what you are looking for? The fnvread command?
apic1# fnvread id address disabled active occupied permanent model nodeRole nodeType fabricId podId ----------------------------------------------------------------------------------------------------------------------------------------------- 1101(1) 10.1.120.65/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C9332C(1) 3(1) 0(1) 1(1) 1(1) 1201(1) 10.1.120.64/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C93180YC-FX(1) 2(1) 0(1) 1(1) 1(1) 1202(1) 10.1.120.66/32(1) NO(0) YES(1) YES(1) YES(1) N9K-C93180YC-FX(1) 2(1) 0(1) 1(1) 1(1)
It does not list the NAME though, just the ID. To get the Name as well, use moquery
apic1# moquery -c fabricNode | egrep "^id|^model|^name "
id : 1201
model : N9K-C93180YC-FX
name : Leaf1201
id : 1202
model : N9K-C93180YC-FX
name : Leaf1202
id : 1101
model : N9K-C9332C
name : Spine1101
id : 1
model : APIC-SERVER-M3
name : apic1
That catches the APICs as well
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
09-03-2020 02:39 PM
Thank You Very much
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