PTX5K PIC in question is turned offline when a QSFP alarm as below is raised.
cr1> show log messages | match FPC1
Apr 09 16:47:14
Apr 9 01:14:49.909 usgrx107-bb-cr1 : %PFE-4: fpc1 T6E(1/1) link[4 0] DOWN, phy_link_ok: 0 mac_local_fault:1 mac_remote_fault: 0 asic_fault: 0
Apr 9 01:14:51.155 usgrx107-bb-cr1 : %PFE-4: fpc1 T6E(1/1) link[4 0] UP, phy_link_ok: 1 mac_local_fault:0 mac_remote_fault: 0 asic_fault: 0
Apr 9 01:40:32.000 usgrx107-bb-cr1 : %PFE-4: fpc1 kern.warning kernel:perf samples too long (5002 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
Apr 9 04:44:49.115 usgrx107-bb-cr1 : %PFE-4: fpc1 T6E(1/1) link[4 0] DOWN, phy_link_ok: 0 mac_local_fault:1 mac_remote_fault: 0 asic_fault: 0
Apr 9 04:44:49.754 usgrx107-bb-cr1 : %PFE-4: fpc1 T6E(1/1) link[4 0] UP, phy_link_ok: 1 mac_local_fault:0 mac_remote_fault: 0 asic_fault: 0
Apr 9 07:53:02.863 usgrx107-bb-cr1 : %PFE-3: fpc1 CMLC: 'PIC Offline command' (opcode 145) failed
Apr 9 07:53:02.863 usgrx107-bb-cr1 : %PFE-3: fpc1 slot 1; PIC 1 incorrect state to offline
Apr 9 08:13:02.938 usgrx107-bb-cr1 : %PFE-3: fpc1 CMLC: 'PIC Offline command' (opcode 145) failed
Apr 9 08:13:02.938 usgrx107-bb-cr1 : %PFE-3: fpc1 slot 1; PIC 1 incorrect state to offline
Apr 9 08:33:02.941 usgrx107-bb-cr1 : %PFE-3: fpc1 CMLC: 'PIC Offline command' (opcode 145) failed
Apr 9 08:33:02.941 usgrx107-bb-cr1 : %PFE-3: fpc1 slot 1; PIC 1 incorrect state to offline
Apr 9 08:53:02.941 usgrx107-bb-cr1 : %PFE-3: fpc1 CMLC: 'PIC Offline command' (opcode 145) failed
Apr 9 08:53:02.941 usgrx107-bb-cr1 : %PFE-3: fpc1 slot 1; PIC 1 incorrect state to offline
cr1> show system alarms
Apr 09 16:46:05
7 alarms currently active
Alarm time Class Description
2024-04-09 07:52:52 UTC Major FPC 1 PIC 1 Temperature Hot ===> Reports temperature hot**
Model: ptx5000
Junos: 22.4R3.25
Based on engineering's feedback, a manual CLI can be used to offline the QSFP in question rather than PIC offline event. VTY ‘ test qsfp <index> power <off/on>’.