2017-07-19 10:06 AM
IHAC which need to create or configure OCUM Alert through API/SDK
Customer is using OCUM deployed as OVA and search for a way to manage Alert from API/SDK (not through GUI to summarize)
OCUM CLI with windows or RHEL version does not allow this too.
Is there any way to answer this customer request?
Solved! SEE THE SOLUTION
2017-07-19 06:03 PM
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 alert create --help NAME create -- Create a new alert, triggered by particular events specified by the options. SYNOPSIS 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 NAME alert -- Create, modify, delete, test, and list alerts. COMMANDS 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. DESCRIPTION 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.
2017-07-20 12:33 AM
Thank you for this reply
I've search in every documentation available for OCUM 7.1 and found nothing about this CLI
I only found information arround "um" cli
Nothing about "dfm" CLI
I've also read that CLI are only available for RHEL and Windows version not for OVA version
With OVA version when you rich the @IP through SSH, you get the maintenance menu only, or i miss something.