cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

496
Views
10
Helpful
4
Replies
JanWillem
Beginner

APIC CLI command to find all hardware details for all nodes

Hi all,

 

is there a command in the APIC cli to find out all hardware details for all devices in the fabric, serialnumber, fan, psu, SFP's in use etc and the related hostname.

 

moquery -c fabricNode > is not giving the details i would like.

2 ACCEPTED SOLUTIONS

Accepted Solutions
RedNectar
Engager

Hi @JanWillem ,

You may not like the answer. But the answer to your question:


is there a command in the APIC cli to find out all hardware details for all devices in the fabric, serialnumber, fan, psu, SFP's in use etc and the related hostname.


is "No"

However...

if you continue to find all the classes of object that you require, you could build  a crude query that would give you the information, but to get it ito a format that is useful, you'd really need to write a python program to gather and parse it.

Here's a start

 moquery -c fabricNode,eqptFan,eqptPsu | egrep "^dn|serial|operSt" 

Good luck figuring the SFPs though

 

 

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

View solution in original post

Hi RedNectar,

 

thanks a lot!

 

This will definitely help.

 

For now i have, and this gives almost everything i need:

 

moquery -c fabricNode,eqptFt,eqptPsu | egrep "name |^model|^ser*|^dn|^fanName|^id"

 

 

View solution in original post

4 REPLIES 4
nileshgore25
Beginner

class ethpmFcot will give interface related details including partid, serial number, type, state, etc.

Hi nileshgore25, 

 

thank you for your reply but this gives not the information i need.

RedNectar
Engager

Hi @JanWillem ,

You may not like the answer. But the answer to your question:


is there a command in the APIC cli to find out all hardware details for all devices in the fabric, serialnumber, fan, psu, SFP's in use etc and the related hostname.


is "No"

However...

if you continue to find all the classes of object that you require, you could build  a crude query that would give you the information, but to get it ito a format that is useful, you'd really need to write a python program to gather and parse it.

Here's a start

 moquery -c fabricNode,eqptFan,eqptPsu | egrep "^dn|serial|operSt" 

Good luck figuring the SFPs though

 

 

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

View solution in original post

Hi RedNectar,

 

thanks a lot!

 

This will definitely help.

 

For now i have, and this gives almost everything i need:

 

moquery -c fabricNode,eqptFt,eqptPsu | egrep "name |^model|^ser*|^dn|^fanName|^id"

 

 

View solution in original post

Content for Community-Ad