cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12598
Views
12
Helpful
12
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

12 Replies 12

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

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