cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4239
Views
13
Helpful
4
Replies

APIC CLI command to find Hardware Model of Leaf/Spine

snarayanaraju
Level 4
Level 4

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

1 Accepted Solution

Accepted Solutions

RedNectar
VIP
VIP

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


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.

View solution in original post

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

below command should able to get the information you looking 

#show version
#avread
# moquery

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thank you. Much appreciated

RedNectar
VIP
VIP

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


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 Very much

Review Cisco Networking for a $25 gift card

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