<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>Hello,<br><br>I have setup a provisioning flow based on additive tags 
that is working pretty well. At the end of the flow, I setup inform 
interval to 86400 to avoid too much SPAM from the ONUs.<br><br>It 
happens that I require to have a "Panic" button in my CRM so I can 
completely turn eveything to an initial state from there. It 
reconfigures the OLT, then factoryReset the ONU, then delete the preset 
(containing variable data) for that ONU, then deletes the device and 
then creates the preset for that device.<br><br>Everything works but the factoryReset when the task is added through the API:<br><br>root@<span id="DWT16660" class="ZmSearchResult"><span id="DWT16665" class="ZmSearchResult">genieacs</span></span>:/opt/<span id="DWT16662" class="ZmSearchResult"><span id="DWT16667" class="ZmSearchResult">genieacs</span></span>/config# curl -i '<span class="Object" id="OBJ_PREFIX_DWT16663_com_zimbra_url"><span class="Object" id="OBJ_PREFIX_DWT16668_com_zimbra_url"><a target="_blank" href="http://x.x.x.x:7557/devices/083FBC-F668A-ZTENQXXXXXXXXX/tasks?timeout=5000%26connection_request">http://X.X.X.X:7557/devices/083FBC-F668A-ZTENQXXXXXXXXX/tasks?timeout=5000%26connection_request</a></span></span>' -X POST --data '{ "name": "factoryReset" }'<br>HTTP/1.1 202 Accepted<br>Date: Tue, <span class="Object" id="OBJ_PREFIX_DWT16669_com_zimbra_date"><span class="Object" id="OBJ_PREFIX_DWT16670_com_zimbra_date">17 Jan</span> </span>2017 11:27:22 GMT<br>Connection: keep-alive<br>Transfer-Encoding: chunked<br><br>It
 gets 202 Accepted, which means device did not respond in time, and I 
see the task queued for the device. That task does not execute until the
 next inform, which may take up to a day.<br><br>But if I use the gui to
 make factory reset, it always works real time and the device is 
immediately reset. What could be the cause of this?<br><br>I have 
noticed Date response from API is 1 hour behind the real time of the 
system, which is sync with NTP with the correct TZ in the system. Could 
this be the reason? Otherwise, I have to clue.<br><br>Thanks in advance,<br><br><br>Miguel Berniz <br>3rd Level Network Engineer <br><br><div><br></div></div></body></html>