02-17-2021 02:24 AM - edited 02-17-2021 02:26 AM
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.
Solved! Go to Solution.
02-18-2021 02:28 AM
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
02-18-2021 04:45 AM
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"
02-17-2021 07:44 PM
class ethpmFcot will give interface related details including partid, serial number, type, state, etc.
02-18-2021 12:33 AM
Hi nileshgore25,
thank you for your reply but this gives not the information i need.
02-18-2021 02:28 AM
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
02-18-2021 04:45 AM
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"
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