<div dir="ltr">Thats correct syntax</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 5:21 AM, Marco Marino <span dir="ltr"><<a href="mailto:marino.mrc@gmail.com" target="_blank">marino.mrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Thank you for your support. So, if I have to read a particular parameter, I can use<br><br>let model = declare("<wbr>InternetGatewayDevice.<wbr>DeviceInfo.ModelName", {value: 1}).value[0];   <-- with { value:1 }<br><br><br></div>What if I have to set a parameter??<br></div>for example:<br><br>declare("<a href="http://InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Name" target="_blank">InternetGatewayDevice<wbr>.WANDevice.1.<wbr>WANConnectionDevice.1.<wbr>WANPPPConnection.1.Name</a>", {value: 1}, {value: "Internet"});<br><br></div>is this correct? What is the correct value of the second parameter in this case?<span class="HOEnZb"><font color="#888888"><br><br><br></font></span></div><span class="HOEnZb"><font color="#888888">-Marco<br><div><br><div><br><div><br><div><br><br></div></div></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-10-04 20:18 GMT+02:00 Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">GenieACS handles invalidating the Mongo/Redis cache. Trying to manage this yourself will cause perf issues.<div><br></div><div><br></div><div>The wildcard in paths causes the GPN requests so Genie knows what parameters exist. In your declare statements, use {value: 1} as the second parameter. If you use {value: Date.now()} then Genie will do fresh GPN requests. Ex:</div><div><br></div><div><div><font face="monospace, monospace">declare("InternetGatewayDevice<wbr>.LANDevice.1.<wbr>WLANConfiguration.*.<wbr>PossibleChannels", {value: 1}); //Once we have the list of Possible WLAN channels, there is no need to refresh those values again.</font></div></div><div><br></div><div><br></div><div>The second parameter to declare causes the declare statement to happen if the timestamp value is newer than the current value. So value: 1 means only do GPN/GPV/SPV if we we don't know about this parameter (or its value in the case of GPV/SPV).</div><span class="m_-7113231270596344515HOEnZb"><font color="#888888"><div><br></div><div>-dan</div></font></span></div><div class="m_-7113231270596344515HOEnZb"><div class="m_-7113231270596344515h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 10:49 PM, Marco Marino <span dir="ltr"><<a href="mailto:marino.mrc@gmail.com" target="_blank">marino.mrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, I'm sorry if I use an old post, but... Zaid can you give me an example? Actually the problem remains and I'm searching for a solution. What do you me with implicit and explicit commit calls? Basically it seems that if I use wildcard (*) in paths when I set some value, this generates a lot of getParameterNames.... should I avoid to use wildcards? Sometimes happens that the device hangs during the first provision script execution and after the CPE becomes unstable. Is there some "cache" in mongo/redis that I have to flush before re-try to execute the provisioning script?<br><br></div>Thank you<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-09 7:17 GMT+02:00 Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, 2017-08-02 at 11:23 +0200, Marco Marino wrote:<br>
> So, my question is: can I add some kind of "pause" between operations<br>
> in a preset?<br>
<br>
</span>You can create a vparam to keep state info and timestamp and compare<br>
against Date.now(). However, if you're getting endless_cycle fault then<br>
you can probably fix this by minimizing the number of implicit and<br>
explicit commit calls.<span class="m_-7113231270596344515m_5510510811608027630HOEnZb"><font color="#888888"><br>
<span class="m_-7113231270596344515m_5510510811608027630m_-6990364985235625928HOEnZb"><font color="#888888"><br>
--<br>
Zaid Abdulla <<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>><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>
</font></span></font></span></blockquote></div><br></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>
</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>
</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>