Script for purging or clearing alarms prior to last SQL restart date

Does anyone have a script that either clears or purges alarms prior to the SQL instance's last restart (or up since) date?  It would have to be on a per-instance basis.  For example, let's say SQL1 was restarted 20191127 at 15:00 and SQL2 was restarted 20191201 at 17:00.  I want a script that clears or purges alarms before each time respective to that SQL instance (20191127 15:00 for SQL1 and 20191201 17:00 for SQL2).


Parents Reply Children