Hi Michael,
You can use "dfm event generate" CLI or NMSDK API "event-generate" to generate custom/built in events:
[root@oncommand ~]# dfm event generate help
NAME
generate -- generate a particular user-defined event
SYNOPSIS
dfm event generate [ -t <timestamp> ] <event-name> <source> [ <event-message> ]
DESCRIPTION
This command is used to generate custom events. Script plugins can
use the command to generate built-in script status events such as
script:warning-event. This command cannot be used to generate other
built-in events.
timestamp: specifies the event generation time in
YYYY-MM-DD,HH:MM:SS format.
If not specified, the time when the command is invoked is used.
event-name: specifies the name of the event.
source: specifies ID/name of source object of the event.
event-message: A message specific to this event.
This message will be displayed as part of event details.
Regards,
-Amir