In addition to checking the current status of an optic via the 'show interfaces diagnostics optics <interface-name> ' command, it may also be necessary to examine more detailed information regarding the optics or the history of the alarms on the optic.
'show interfaces diagnostics optics <interface-name> '
More detailed information and alarm history can be obtained by querying the hardware which is hosting the optic, basically FPC for MX304.
Target will be FPC0, 1, 2...19
Once the hardware target is determined, ask the hardware for the index assigned to the SFP or SFP+ you want to look at. These are both stored in the same table:
request pfe execute command 'show picd xcvr summary' target <target>
request pfe execute command '
' target <target>
Sample output:
labroot@jtac-mx304-r2001-re0> request pfe execute command "show picd xcvr summary" target fpc0
SENT: Ukern command: show picd xcvr summary
PICD_OpticsList :
xcvr pres cable Juniper Rx Rx HW init module
name ence type PN LOS LOL state state machine
----------- ---- --------------- ---------- ----- ----- --------- ---------------
xcvr-0/0/0 0
xcvr-0/0/1 1 40GBASE SR4 740-067442 set clear init_done DataPathPowered
xcvr-0/0/2 1 100GBASE LR4 T2 740-061409 clear clear init_done Reset
xcvr-0/0/3 1 40GBASE SR4 740-067442 set clear init_done Reset
xcvr-0/0/4 0
xcvr-0/0/5 1 40GBASE SR4 740-067442 set clear init_done Reset
xcvr-0/0/6 0
xcvr-0/0/7 0
xcvr-0/0/8 0
xcvr-0/0/9 1 40GBASE LR4 740-073093 set clear init_done Reset
xcvr-0/0/10 0
xcvr-0/0/11 1 100GBASE LR4 T2 740-061409 set set init_done DataPathPowered
xcvr-0/0/12 0
xcvr-0/0/13 1 40GBASE LR4 740-073095 clear clear init_done DataPathPowered
xcvr-0/0/14 0
xcvr-0/0/15 0
For getting detailed information regarding each of these, we can use below set of CLIs.
request pfe execute command 'show picd xcvr fpc <fpc no> pic <pic no> port <port no> cmd alarm' target <target>
request pfe execute command
'
target <target>
request pfe execute command 'show picd xcvr fpc <fpc no> pic <pic no> port <port no> cmd diagnostics' target <target>
request pfe execute command 'show picd xcvr fpc <fpc no> pic <pic no> port <port no> cmd identifier' target <target>
request pfe execute command 'show picd xcvr fpc <fpc no> pic <pic no> port <port no> cmd info' target <target>
request pfe execute command 'show picd xcvr fpc <fpc no> pic <pic no> port <port no> cmd firmware-info' target <target>
Initial Version