well, maybe it could be possible with help of some EEM script similar to this:
event manager applet Monitor_Sessions
event timer watchdog time 60
action 1.0 cli command "enable"
action 2.0 cli command "show sdwan bfd summary | include total"
action 3.0 regexp "sessions-total\s+(\d+)" "$_cli_result" match total_sessions
action 4.0 if $_regexp_result eq 1
action 5.0 if $total_sessions ge 2000
action 6.0 cli command "send snmp trap 1.3.6.1.4.1.9.9.41.2.0.1"
action 7.0 end
action 8.0 end
but you need "if" statement and it is not available currently as of 17.12 version:
(config-applet)# action 5.0 if ?
Possible completions:
<cr>
I would suggest reaching out to TAC via a formal case and ask on plans to implement this and to express interest in this functionality, reach out to your account team as well for the same