<div dir="ltr">You should switch to provisioning scripts. It will be much more robust. A SPV from a preset requires that full chain to exist in GenieACS's cache of the device object model. I.e., if you are trying to set <span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;vertical-align:baseline;white-space:nowrap;max-width:22em;overflow:hidden;text-overflow:ellipsis;color:rgb(70,60,0);text-align:left;text-decoration-style:initial;text-decoration-color:initial">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection.1.Enable to true, but GenieACS only has <span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis;text-decoration-style:initial;text-decoration-color:initial">InternetGatewayDevice.WANDevice.1.WANConnectionDevice in its cache of the model, then nothing will happen for that CPE for that preset.</span></span><br class="gmail-Apple-interchange-newline"><div><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;vertical-align:baseline;white-space:nowrap;max-width:22em;overflow:hidden;text-overflow:ellipsis;color:rgb(70,60,0);text-align:left;text-decoration-style:initial;text-decoration-color:initial"><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis;text-decoration-style:initial;text-decoration-color:initial"><br></span></span></div><div><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;vertical-align:baseline;white-space:nowrap;max-width:22em;overflow:hidden;text-overflow:ellipsis;color:rgb(70,60,0);text-align:left;text-decoration-style:initial;text-decoration-color:initial"><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis;text-decoration-style:initial;text-decoration-color:initial">With a provision script, you do:</span></span></div><div><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis;text-align:left;text-decoration-style:initial;text-decoration-color:initial"><span class="gmail-long-text gmail-param-path" style="margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis;text-decoration-style:initial;text-decoration-color:initial"><div><span style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;white-space:nowrap">declare("</span><span class="gmail-long-text gmail-param-path" style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;white-space:nowrap;margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANIPConnection.*.Enable"<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">, {value: 1}, {value: true});</span></span><br></div><div><span class="gmail-long-text gmail-param-path" style="color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;white-space:nowrap;margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;max-width:22em;overflow:hidden;text-overflow:ellipsis"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></span></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap">When the preset runs the provisioning script, genie will then refresh the tree (if it hasn't been refreshed since 1 microsecond after epoch, thats what the 1 is - a timestamp in epoch format) and set the state. If instead of {value: 1} for the second parameter, you do {value: Date.now()}, then everytime that declare statement is executed, GenieACS will refresh the parameter value to see if it needs to be set. This is usually *not* what you want to do.</span></font></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap">Provision scripts take a bit to understand, but think of them like this, you are declaring the state you want the CPE to be in.</span></font></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap"><br></span></font></div><div><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="white-space:nowrap">The <a href="https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow">wiki</a> has some good examples on there.</span></font></div></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 8, 2018 at 8:28 AM, Grímur Daníelsson <span dir="ltr"><<a href="mailto:grimurd@snerpa.is" target="_blank">grimurd@snerpa.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I'm using v1.1.2 as stated in the original email.</div><div><br></div><div>The parameters exist in the object model of the CPEs. They are however custom for these CPEs, they aren't part of the TR069 data model.</div><div><br></div><div>In case it makes a difference, the whole object isn't pulled when doing a refresh of the device. It appears in the list but I have to refresh it manually to see its child parameters. Do I perhaps have to refresh the object before attempting to set a value inside it?</div><div><br></div><div>Regards, Grimur</div><div><div class="h5"><div><br></div><div>On Fri, 2018-06-08 at 08:17 -0800, Dan Morphis wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">For the CPEs that the preset isn't working on, does the parameter you're trying to set exist in their object model? You also don't indicate what version of GenieACS you are using...<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 8, 2018 at 7:58 AM, Grímur Daníelsson <span dir="ltr"><<a href="mailto:grimurd@snerpa.is" target="_blank">grimurd@snerpa.is</a>></span> wrote:<br><blockquote type="cite" style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex"><div><div>Hi</div><div><br></div><div>I've set up presets(one per type of device) to change some parameters on a few different types of CPEs. The problem is that they only trigger for around 30% of those cpes.</div><div><br></div><div>I've got ~330 devices and it has only triggered for around a ~130. These devices are of different types and with different firmwares. Many of the devices that wont work are of the same type with the same firmware and configuration as those that do work. Theres nothing obviously different between those that work and those that don't.</div><div><br></div><div>There are no errors in the cwmp error log though I do get the occational "Preset hash mismatch" error but they don't seem to correlate with when the devices inform and there's too few of them to be triggered by informs.</div><div><br></div><div>When an inform comes from a device that should trigger the preset there are no GetParameterValues or SetParameterValues and retry count is always 0. </div><div><br></div><div>It's like the presets don't trigger at all.</div><div><br></div><div>I've got GenieACS 1.1.2 and the latest commit from GenieacsGUI</div><div><br></div><div><b>Preset example:</b></div><div>Name: Test Preset</div><div>Weight: 0</div><div>Channel: Empty</div><div>Schedule: Empty</div><div>Events: 2 PERIODIC</div><div>Precondition:</div><div>  - Product Class = VMG8924-B10D</div><div> - Tag != TestParameterSet</div><div>Config:</div><div> - Set SomeParameter to SomeValue</div><div> - Add tag: TestParameterSet</div><div><br></div><div>Any idea what could be wrong?</div><div><br></div><div>Regards, Grímur</div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mail<wbr>man/listinfo/users</a><br>
<br></blockquote></div><br></div>
<pre>______________________________<wbr>_________________</pre><pre>Users mailing list</pre><pre><a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a></pre><pre><a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a></pre><pre><br></pre></blockquote></div></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>