Hi,
configure the ethernet OAM with the and enabled the remote-failure option. you can find the feature dyinng-gasp under the remote failure.
interface GigabitEthernet0/0/1
no ip address
negotiation auto
ethernet oam remote-failure link-fault action error-disable-interface
ethernet oam remote-failure dying-gasp action error-disable-interface
ethernet oam remote-failure critical-event action error-disable-interface
ethernet oam