How to activate the alarms by means of the MIP SDK without opening the Smart Client or the Management Client?

I can activate the alarms as explained in the Analytics Event Trigger example, but these are only activated if your programs in the Client section. I want to activate the alarms without opening the Smart Client or the Management Client.

I would like to program the next function in the event server section, so while the event server is on, the alarms are activated and saved.

The Analytics Event Trigger example triggers the analytics event, there is no Smart Client or Management Client involved. I fail to understand what you are asking.

is this relevant? - https://developer.milestonesys.com/s/article/Create-an-alarm-from-a-MIP-SDK-based-application

You are triggering an event, so the next question is if you have configured a correct alarm definition? Note that you can configure alarm definition using the Configuration API.