cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
7542
Views
10
Helpful
11
Replies
EduardR
Beginner

SFP inventory from ACI Fabric

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

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

11 REPLIES 11
ngull
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

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

Robert Burns
Cisco Employee

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

Robert