cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
327
Views
1
Helpful
3
Replies

Command to check SFP version of all SFPs, of all Switches from APIC

AshSe
Level 1
Level 1

We know the command:

  • #show interface ethernet 1/xx transceiver details

This command needs to be given on each individual switch for individual interface.

Is there a simple way to get all transceivers, from all switches details from APIC?

1 Accepted Solution

Accepted Solutions

Ok @AshSe 

You'll need to send HTTP requests to the APIC. This can be done using tools like curl, Postman, or a programming language like Python.

First, you need to authenticate to the APIC to get a session token.

Once authenticated, you can query the APIC for the transceiver details. The specific managed objet you are looking for is ethpmFcot.

Check also here:

https://github.com/jaghabalayev/NetworkScripts/blob/main/aci-get-transceiver-count.py

 

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

3 Replies 3

M02@rt37
VIP
VIP

Hello @AshSe 

You could use the APIC's REST API. This approach allows you to automate the retrieval of this information without having to manually issue the command on each switch...

Are you familiar with Python script ?

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Yes, I can understand Python script. Please tell me how to use APIC's REST API.

Ok @AshSe 

You'll need to send HTTP requests to the APIC. This can be done using tools like curl, Postman, or a programming language like Python.

First, you need to authenticate to the APIC to get a session token.

Once authenticated, you can query the APIC for the transceiver details. The specific managed objet you are looking for is ethpmFcot.

Check also here:

https://github.com/jaghabalayev/NetworkScripts/blob/main/aci-get-transceiver-count.py

 

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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