JainJohny

updated

10 years ago

J

JainJohny

5 Posts

0

1555

September 14th, 2016 23:00

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.

  • 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

  • Peter_F1

    21 Posts

    1076

    0

    Posted September 15th, 2016 04:00

    The in-maintenance operations are not on the Router (or UnitaryComputerSystem) class - rather have a look at the ICS_InMaint class:

    Operations for class ICS_InMaint:

        clone_name

        changed

        addMaint instanceName className EndMaintPeriod

        removeMaint InstanceName

        isInMaintTable InstanceName

        enableMaintenance

        disableMaintenance

        purgeMaint

        convertTime year month day hour minute

  • JainJohny

    5 Posts

    1077

    0

    Posted September 15th, 2016 07:00

    Hi Peter,

    I did have a look at the ICS_InMaint operations, however the EDAA URL which is to be used looks like:

    http://IP:Port/smarts-edaa/msa/PRES-SAM/instances/Router::RouterName/action/scheduleMaintenance

    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.