device# configure terminal
device(config)# protocol cfm
device(config-cfm)# y1731
device(config-cfm-y1731)# action-profile myaction-profile
device(config-cfm-y1731-myaction-profile)# event avg-threshold actions all