01-24-2013 06:07 AM
On IOS I can run a "show interface status" that will show something like the following:
Gi3/32 disabled 1 full 1000 1000BaseLH
Gi3/33 disabled 1 full 1000 No Transceiver
Gi3/34 disabled 1 full 1000 No Transceiver
Gi3/35 disabled 1 full 1000 No Transceiver
Gi3/36 disabled 1 full 1000 No Transceiver
With this output i can see the what SFP type is plugged into the port easily.
On IOS-XR I cannot seem to find an equivalent command, the only command i have found is show inventory (all) that shows the information but in a not very friendly format that is easily read:
NAME: "module 0/0/CPU0", DESCR: "40-Port GE Line Card, Requires SFPs"
PID: A9K-40GE-B, VID: V06, SN: FOC161785NE
NAME: "module mau GigabitEthernet0/0/CPU0/0", DESCR: "1000BASE-LX/LH SFP (DOM), SMF 10Km, MMF 550m"
PID: SFP-GE-L , VID: V01 , SN: FNS164008EK
Is there a command that more closely matches the IOS "show interface status" command?
Solved! Go to Solution.
01-24-2013 06:34 AM
Not really. You can use show controller and grep required information.
For example I have ten gig LC in slot 0 and here is the command to grep the installed SFPs
show controllers tenGigE 0/0/0/* phy | i "(is not present|SFP EEPROM port|Xcvr Code")
If you use the command frequently you can create an alias for the command. For example I use an addreviation for Show SFP Card 0: ssc0
!
alias ssc0 show controllers tenGigE 0/0/0/* phy | i "(is not present|SFP EEPROM port|Xcvr Code")
!
RP/0/RSP0/CPU0:ariad#ssc0
Thu Jan 24 15:28:21.271 CET
SFP #0 is not present.
SFP EEPROM port: 1
Xcvr Code: SFP-10G-LR
SFP EEPROM port: 2
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 3
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 4
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 5
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 6
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 7
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 8
Xcvr Code: SFP-10G-SR
SFP #9 is not present.
SFP #10 is not present.
SFP EEPROM port: 11
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 12
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 13
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 14
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 15
Xcvr Code: SFP-10G-SR
…
Regards,
/A
01-24-2013 06:34 AM
Not really. You can use show controller and grep required information.
For example I have ten gig LC in slot 0 and here is the command to grep the installed SFPs
show controllers tenGigE 0/0/0/* phy | i "(is not present|SFP EEPROM port|Xcvr Code")
If you use the command frequently you can create an alias for the command. For example I use an addreviation for Show SFP Card 0: ssc0
!
alias ssc0 show controllers tenGigE 0/0/0/* phy | i "(is not present|SFP EEPROM port|Xcvr Code")
!
RP/0/RSP0/CPU0:ariad#ssc0
Thu Jan 24 15:28:21.271 CET
SFP #0 is not present.
SFP EEPROM port: 1
Xcvr Code: SFP-10G-LR
SFP EEPROM port: 2
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 3
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 4
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 5
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 6
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 7
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 8
Xcvr Code: SFP-10G-SR
SFP #9 is not present.
SFP #10 is not present.
SFP EEPROM port: 11
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 12
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 13
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 14
Xcvr Code: SFP-10G-SR
SFP EEPROM port: 15
Xcvr Code: SFP-10G-SR
…
Regards,
/A
01-24-2013 09:01 AM
That will work.
Thanks so much!
04-17-2014 01:00 PM
Hello akiritch,
i'm trying to check light-level on my Tengig interfaces using IOS-XR. Normally i would use below
show controllers tengig0/0/0/0 phy | i dBm.
in my case, i wanted to know how to obtain the light-level of all the interfaces on a specific linecard how would i go about doing that? any help would be appreciated.
tengig0/0/0/0 - 9
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