I checked the DFM 7.X API's in the NMSDK for you. There is no "alarm" API in OCUM as there was previously in DFM 5.X (The used to be an "AlarmCreate" method in DFM)
In OCUM 7.X there is a CLI available to manage alarms. Here's the output from OCUM 7.1P2 on Windows.
C:\>dfm cli login -u <%username%> -p <%password%>
C:\>dfm version dfm 7.1P2
C:\>dfm alert create --help
create -- Create a new alert, triggered by particular events specified by
dfm alert create [ -C <event-class> ] [ -h <event-names>,... ]
[ -v <event-severities>,... ] [ -l <time-from> ]
[ -m <time-to> ] [ -i <repeat-interval> ] [ -b ] [ -S ]
[ -A <admin-login-names>,... ]
[ -r <resource-object-keys>,... ]
[ -E <email-addresses>,... ] <alert-name>
C:\>dfm alert --help
alert -- Create, modify, delete, test, and list alerts.
dfm alert add - Adds fields to the Alert.
dfm alert create - Create a new alert, triggered by particular events
specified by the options.
dfm alert delete - Delete fields from the Alert.
dfm alert destroy - Remove the alert completely.
dfm alert disable - Disable the alert.
dfm alert enable - Enable the alert.
dfm alert list - List the existing alerts.
dfm alert modify - Change the settings for an alert.
dfm alert test - Tests alert.
The alert command manages the list of administrators who are interested in
being alerted when different types of events occur.
I'd assume it's also possible with the OCUM vApp via SSH but you'd have to provide credentials to the dfm cli login command.
It might be possible via WFA with Invoke-NcSsh CmdLet and running multiple dfm commands within the powershell command.
I'd recommend raising a BURT\RFE to add the alert comand to the supported OCUM API's.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
I know this is an old thread but Im look for help with this command. Im a systems developer and have no experience or direct involvement with NetApp stuff. Im writing some code to automate the creation and management of SMB shares on a netapp array using our service portal software. Part of our process is to set up an alert for each share to notify the owner that the share is almost out of space. I found the dcm CLI and am trying to execute a create command. However when i try to add the resource object key to the CLI it fails with a generic error:
Ive tried every variation of the resource object key i could think of, single quotes, double quotes, just the first part, just the last part, etc but nothing seems to work. DO you have any working examples of the command working?
If i run that same command without the -r section it creates the alert as expected with not resource attached.