This article explains how to remove and reinstall a SFP/QSFP from a PFE without physically being in the datacenter.
This will remove the SFP from ge-0/0/39:
FPC0(m14-35 vty)# set cmqfx xcvr remove pic 0 port 39
Soft removing pic/port: 0/39!!!
FPC0(m14-35 vty)# [Fri Apr 27 14:41:56.092 LOG: Info] sfp-0/0/39 SFP unplugged
[Fri Apr 27 14:41:56.588 LOG: Err] LBCM-L2,brcm_vlan_hw_destroy(),6969:hgo_bitmap 0xc84ee838 NOT ZERO after vlan override profile unset. hgo_ptr -1229487904 vlan-hw-token 4094
[Fri Apr 27 14:41:56.589 LOG: Debug] (brcm_port_init_def:1132) Setting L2 Learn (unit 0, port_num 40), learn_flg 0
[Fri Apr 27 14:41:56.590 LOG: Err] LBCM-L2,brcm_port_l3_intf_uninit(),6212:l3 interface deletion success ge-0/0/39.0, (null):Ok
[Fri Apr 27 14:41:56.603 LOG: Debug] (brcm_port_init_def:1132) Setting L2 Learn (unit 0, port_num 40), learn_flg 0
[Fri Apr 27 14:41:56.608 LOG: Info] DCBCM: Detaching ifd ge-0/0/39
[Fri Apr 27 14:41:56.608 LOG: Info] PORTDEV: DEVSTOP for ge-0/0/39
ge-0/0/39 has now been removed from the chassis. The hardware is still plugged in, but as far as the PFE is concerned, it is removed.
Now, reinsert the SFP into ge-0/0/39:
FPC0(m14-35 vty)# set cmqfx xcvr insert pic 0 port 39
Soft inserting pic/port: 0/39!!!
FPC0(m14-35 vty)# [Fri Apr 27 14:44:29.087 LOG: Info] sfp-0/0/39 SFP plugged in
[Fri Apr 27 14:44:30.280 LOG: Info] FEC is supported for port - 39
[Fri Apr 27 14:44:30.415 LOG: Debug] (brcm_port_init_def:1132) Setting L2 Learn (unit 0, port_num 40), learn_flg 0
[Fri Apr 27 14:44:30.416 LOG: Info] DCBCM: Attaching ifd ge-0/0/39
[Fri Apr 27 14:44:30.416 LOG: Debug] (brcm_port_init_def:1132) Setting L2 Learn (unit 0, port_num 40), learn_flg 0
[Fri Apr 27 14:44:30.459 LOG: Info] dcbcm_opus_get_linkscan_mode: link scan mode 2 for ifd ge-0/0/39 eth_phy_speed 3
[Fri Apr 27 14:44:30.783 LOG: Info] PORTDEV: DEVSTART for port: ge-0/0/39
[Fri Apr 27 14:44:30.797 LOG: Info] dcbcm_drv_link_chg: ge-0/0/39 is not an SFP-T, not reading link partner info
[Fri Apr 27 14:44:30.834 LOG: Info] Setting Port Status LED for pic_slot 0, port 39, ifd_channel 0, led_state Green_Blink
[Fri Apr 27 14:44:30.834 LOG: Info] Setting Port Activity LED for pic_slot 0, port 39, ifd_channel 0, led_state Green
ge-0/0/39 should now be back in working order.