What will be the arguments required in a payload to be posted for performing a
scheduleMaintenance action on a Router using EDAA?
I am trying to perform an action schedule maintenance which is allowed as per EDAA programmer guide. It is mentioned POST operation is required and hence we have to have a payload with required arguments. The ideal way to get the list of arguments is to use dmctl and getOperations on that particular Class which returns a list of operations along with their arguments. However, I could not find the scheduleMaintenance operation for a Router Class on SAM, and hence not sure what arguments are needed for the payload.
Has anyone tried implementing this action or if you could provide the information on which arguments will be needed, it will be of great help? I presume most probably StartTime, EndTime etc. may be needed however I am not sure about the exact argument names.
As per the EDAA programmer guide we have to use a POST operation on this URL. Had ICS_InMaint been part of the url, possibly we could have used one of those operations like addMaint, but I think we cannot use that for this EDAA URL.
action/scheduleMaintenance signifies that the action/operation name is scheduleMaintenance as explained in other EDAA examples as well. So, we should look for an operation named scheduleMaintenance in Smarts and its corresponding arguments which unfortunately are not seen on Router class or even in ICS_InMaint class.
It might be possible that the information isn't exposed to Smarts users and included within the Smarts EDAA library files. I have raised an EMC SR also.
JainJohny
5 Posts
1078
1
Posted September 15th, 2016 21:00
Hi All,
I have finally found the working payload required for the action schedule Maintenance with the help of an answer in another forum.
Here is the payload format that works for scheduleMaintenance action for your reference:
2016-09-15'T'09:00Z
2016-09-15'T'23:00Z
admin
PRES-SAM
Scheduling Maintenance
to be posted on URL http://IP:Port/smarts-edaa/msa/PRES-SAM/instances/Router::RouterName/action/scheduleMaintenance
Thanks,
Johny Jain