cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18025
Views
10
Helpful
3
Replies

IOS-XR "Show interface status" equivalent

smolz
Level 4
Level 4

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?

1 Accepted Solution

Accepted Solutions

Alexei Kiritchenko
Cisco Employee
Cisco Employee

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

View solution in original post

3 Replies 3

Alexei Kiritchenko
Cisco Employee
Cisco Employee

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

That will work.

Thanks so much!

techquy10
Level 1
Level 1

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