03-14-2018 06:34 AM - edited 03-01-2019 05:28 AM
Hi all,
I need to inventory the SPF plugged in the SPINE and LEAF of our ACI Fabric, but didn't find a menu where i can check that information, Anyone knows if is it possible to get that information consolidated? Our Fabric is version 2.1(2g)
Thank you at advance
Solved! Go to Solution.
11-22-2018 05:35 AM
Apologies, I copied the wrong output I meant to put this one.
APIC# fabric DC1_101_i06-93180FX-01 show interface transceiver
----------------------------------------------------------------
Node 101 (DC1_101_i06-93180FX-01)
----------------------------------------------------------------
Ethernet1/1
transceiver is present
type is SFP-H10GB-CU3M
name is CISCO-MOLEX
part number is 74752-9520
revision is 09
serial number is XXXXXX
nominal bitrate is 10300 MBit/sec
Link length supported for cable assembly is 3 m
cisco id is -- 3
cisco extended id number is 4
cisco part number is 37-0961-03
cisco product id is SFP-H10GB-CU3M
cisco vendor id is V03
DOM is Disabled
Ethernet1/2
transceiver is present
type is SFP-H10GB-CU3M
name is CISCO-MOLEX
part number is 74752-9520
revision is 09
serial number is XXXXXXXX
nominal bitrate is 10300 MBit/sec
Link length supported for cable assembly is 3 m
cisco id is -- 3
cisco extended id number is 4
cisco part number is 37-0961-03
cisco product id is SFP-H10GB-CU3M
cisco vendor id is V03
11-22-2018 05:22 AM
Hi, it's a bit late but I found your question as I'm literally trying to do the same.
I found this command you can run from APIC CLI controller
APIC# fabric DC1_101_i06-93180FX-01 show inventory ?
<CR> Carriage return
chassis system inventory chassis information
fans system inventory fan information
module system inventory module information
power_supply system inventory power supply information
APIC# fabric DC1_101_i06-93180FX-01 show inventory
----------------------------------------------------------------
Node 101 (DC1_101_i06-93180FX-01)
----------------------------------------------------------------
NAME: "Chassis", DESCR: "Nexus C93180YC-FX chassis"
PID: N9K-C93180YC-FX , VID: V01 , SN: XXXXXXXXX
NAME: "Slot 1 ", DESCR: "48x10/25G "
PID: N9K-C93180YC-FX , VID: V01 , SN: XXXXXXXXX
NAME: "GEM ", DESCR: "6x40/100G Switch "
PID: N9K-C93180YC-FX , VID: V01 , SN: XXXXXXXXX
NAME: "power Supply 1", DESCR: "PSU "
PID: NXA-PAC-500W-PI , VID: V01 , SN: XXXXXXXXX
NAME: "power Supply 2", DESCR: "PSU "
PID: NXA-PAC-500W-PI , VID: V01 , SN: XXXXXXXXX
NAME: "Fan 1 ", DESCR: "fan "
PID: NXA-FAN-30CFM-B , VID: N/A , SN: N/A
NAME: "Fan 2 ", DESCR: "fan "
PID: NXA-FAN-30CFM-B , VID: N/A , SN: N/A
NAME: "Fan 3 ", DESCR: "fan "
PID: NXA-FAN-30CFM-B , VID: N/A , SN: N/A
NAME: "Fan 4 ", DESCR: "fan "
PID: NXA-FAN-30CFM-B , VID: N/A , SN: N/A
11-22-2018 05:28 AM
This work for the switches modules (fabrics, line cards, PSU, fans) but does not provide the information on the SFP. But thank you for the response..!
11-22-2018 05:35 AM
Apologies, I copied the wrong output I meant to put this one.
APIC# fabric DC1_101_i06-93180FX-01 show interface transceiver
----------------------------------------------------------------
Node 101 (DC1_101_i06-93180FX-01)
----------------------------------------------------------------
Ethernet1/1
transceiver is present
type is SFP-H10GB-CU3M
name is CISCO-MOLEX
part number is 74752-9520
revision is 09
serial number is XXXXXX
nominal bitrate is 10300 MBit/sec
Link length supported for cable assembly is 3 m
cisco id is -- 3
cisco extended id number is 4
cisco part number is 37-0961-03
cisco product id is SFP-H10GB-CU3M
cisco vendor id is V03
DOM is Disabled
Ethernet1/2
transceiver is present
type is SFP-H10GB-CU3M
name is CISCO-MOLEX
part number is 74752-9520
revision is 09
serial number is XXXXXXXX
nominal bitrate is 10300 MBit/sec
Link length supported for cable assembly is 3 m
cisco id is -- 3
cisco extended id number is 4
cisco part number is 37-0961-03
cisco product id is SFP-H10GB-CU3M
cisco vendor id is V03
11-22-2018 05:37 AM
11-23-2018 03:02 AM
On top what has been mentioned in the previous replies, you can also view this information on a per interface in the APIC Gui as well under Fabric>Inventory>POD> [leaf/spine] > physical interfaces > [interface] and then select operational.
You can easily pull this information as well through a rest api call :)
cheers
Alexander
11-23-2018 04:27 AM
Thank you! WE have been using thatmetohd for a while, but we have over 1200 ports and doing this one by one was a little tedious.
05-04-2021 12:26 AM
Hi Alexander09
I am struggling to find the REST API call to gather SFP inventory information can you share the API call please?
New to ACI and API Rest calls learning as I go along.
Cheers
05-04-2021 09:42 AM - edited 05-04-2021 09:44 AM
You can query the ethpmFcot MO.
From APIC CLI with moquery:
moquery -c ethpmFcot -f 'ethpm.Fcot.guiCiscoPID!=""' | egrep "#|dn|guiCiscoPID|guiSN"
Or via API
GET /api/class/ethpmFcot.json?query-target-wilter=ne(ethpmFcot.guiCiscoPID,"")
HTH
Marcel
08-21-2024 01:12 PM
I was using the above API call to get the list of SFPs but noticed some missing. In checking the Object Store browser for the ethpmFcot class I did find interfaces that had a SFP but the guiCiscoPID was still blank. I am going to try this instead:
GET /api/class/ethpmFcot.json?query-target-filter=eq(ethpmFcot.state,"inserted")
05-04-2021 05:38 AM - edited 05-04-2021 10:21 AM
Nice Marcel - I was looking at that object this morning, but was looking at an empty (non occupied) interface! Doh!
Robert
05-04-2021 11:27 AM - edited 05-04-2021 11:28 AM
You could run any of the following moquery:
moquery -c ethpmFcot | egrep "dn|typeName"
moquery -c ethpmFcot | egrep "dn|guiCiscoPID|guiSN"
03-31-2022 10:06 AM
Very helpful ! What would be the moquery command to list all interfaces with an SFP inserted, but not connected (no cable in SFP). Would it be to check: isFcotpresent or state: what is the difference ?
Thanks.
Thanks,
03-28-2024 01:23 PM
The simple python script to gather count of installed SFP on ACI Fabric:
https://github.com/jaghabalayev/NetworkScripts/blob/main/aci-get-transceiver-count.py
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