<div dir="ltr"><div dir="ltr">Hi Dan,<div><br></div><div>It seems that I got {value: 1} and {value: now} confused, after updating my provisions with this information they are now working the way I want them to. All except for <span style="background-color:rgb(239,236,202);color:rgb(70,60,0);font-family:"Lucida Sans Unicode","Lucida Grande",Arial,sans-serif;font-size:13px;white-space:nowrap">InternetGatewayDevice.LANDevice.1.Hosts.Host</span>, I'm trying to update the list of all connected Hosts to the device and no matter how I try to do it I can't figure it out. </div><div><br></div><div>This is the code I am using:</div><div>declare("InternetGatewayDevice.LANDevice.1.Hosts.Host.*", {value: now});<br></div><div><br></div><div>Which, from what I understand, should update the whole tree as you mentioned in your example, but it doesn't seem to detect connected Hosts.</div><div>Do you know any way that I could update the list of all connected Hosts to my CPE?</div><div><br></div><div>Thank you very much,</div><div>-James</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 10 Sep 2018 at 20:11, Dan Morphis <<a href="mailto:dan@milkcarton.com">dan@milkcarton.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So the way second parameter works is GenieACS will only update if the data in its cached model is older than the value given. I.e., declare("InternetGatewayDevice.ManagementServer.ConnectionRequestURL", {value: now}); tells GenieACS to *always* refresh parameter the value because the cached data will always be older than now. {value: 1} is unix epoch, i.e. 1-Jan-1970 at 00:00:00. So giving a time value of 1 tells Genie to *only* refresh the parameter if it doesn't know about it.<div><br></div><div>If you want to refresh an entire tree, you need to explicitly tell GenieACS that:</div><div><font face="monospace, monospace">declare("InternetGatewayDevice.ManagementServer.*", {value: 1});</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">That will tell GenieACS to refresh the parameters in the entire mgmt server tree if it doesn't already have a value for that parameter. Given that </font><span style="font-family:monospace,monospace">InternetGatewayDevice.</span><span style="font-family:monospace,monospace">ManagementServer shouldn't ever change via an external value, you wouldn't need to use {value: now}. Yes the </span>InternetGatewayDevice.ManagementServer.ConnectionRequestURL parameter changes, but that will be included in the parameter list by the CPE when it does an inform.</div><div><br></div><div>Make sense?</div><div><br></div><div>-dan</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018 at 10:48 PM Malto 4 <<a href="mailto:andr0idmalto4@gmail.com" target="_blank">andr0idmalto4@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm having a problem refreshing values. I have a Preset which runs at every 2 PERIODIC Inform event to try and update some values of parameters. I know that to update a specific value I can use the following code:</div><div><br></div><div><div>declare("InternetGatewayDevice.LANDevice.1.WLANConfiguration.*.SSID", {value: now});<br></div><div><br></div><div>Using {value: 1} in the case that I always want the parameter to refresh and {value: now} only if the value has changed (>From what I understand).</div><div><br></div><div>But now if I want to refresh a whole Object Instance, when I use:</div></div><div><br></div><div>declare("InternetGatewayDevice.ManagementServer", {value: now});</div><div><br></div><div>it updates the data model but doesn't refresh the parameter values. The only way I can update the object values is with the Refresh button that appears next to the Parameter in the GUI.</div><div>Example: <a href="https://snag.gy/NB2Arn.jpg" target="_blank">https://snag.gy/NB2Arn.jpg</a></div><div><br></div><div>Can anyone tell me how I can update all the ParameterNames AND ParameterValues of a specific Object with Provisions?</div><div><br></div><div>Thank you and sorry if anything is poorly explained.</div><div>-James</div></div>
_______________________________________________<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/mailman/listinfo/users</a><br>
</blockquote></div>
_______________________________________________<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/mailman/listinfo/users</a><br>
</blockquote></div>