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

SFP inventory from ACI Fabric

EduardR
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

ngull
Cisco Employee
Cisco Employee

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

View solution in original post

13 Replies 13

ngull
Cisco Employee
Cisco Employee

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

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..!

ngull
Cisco Employee
Cisco Employee

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

Awesome! Thank you!

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

--
Alexander Deca

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.

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

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

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")

Robert Burns
Cisco Employee
Cisco Employee

Nice Marcel - I was looking at that object this morning, but was looking at an empty (non occupied) interface!  Doh!

Robert

apubillo1
Level 1
Level 1

You could run any of the following moquery:

 

moquery -c ethpmFcot | egrep "dn|typeName"

moquery -c ethpmFcot | egrep "dn|guiCiscoPID|guiSN"

 

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,

 

jaghabalayev
Level 1
Level 1

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

Review Cisco Networking for a $25 gift card

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