Problem with fritzbox and big preset

Dan Morphis dan at milkcarton.com
Fri Oct 6 12:36:18 EDT 2017


Thats correct syntax

On Fri, Oct 6, 2017 at 5:21 AM, Marco Marino <marino.mrc at gmail.com> wrote:

> Thank you for your support. So, if I have to read a particular parameter,
> I can use
>
> let model = declare("InternetGatewayDevice.DeviceInfo.ModelName", {value:
> 1}).value[0];   <-- with { value:1 }
>
>
> What if I have to set a parameter??
> for example:
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.
> WANPPPConnection.1.Name", {value: 1}, {value: "Internet"});
>
> is this correct? What is the correct value of the second parameter in this
> case?
>
>
> -Marco
>
>
>
>
>
>
> 2017-10-04 20:18 GMT+02:00 Dan Morphis <dan at milkcarton.com>:
>
>> GenieACS handles invalidating the Mongo/Redis cache. Trying to manage
>> this yourself will cause perf issues.
>>
>>
>> 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:
>>
>> declare("InternetGatewayDevice.LANDevice.1.WLANConfiguration.*.PossibleChannels",
>> {value: 1}); //Once we have the list of Possible WLAN channels, there is no
>> need to refresh those values again.
>>
>>
>> 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).
>>
>> -dan
>>
>> On Tue, Oct 3, 2017 at 10:49 PM, Marco Marino <marino.mrc at gmail.com>
>> wrote:
>>
>>> 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?
>>>
>>> Thank you
>>>
>>> 2017-08-09 7:17 GMT+02:00 Zaid Abdulla <zaid at genieacs.com>:
>>>
>>>> On Wed, 2017-08-02 at 11:23 +0200, Marco Marino wrote:
>>>> > So, my question is: can I add some kind of "pause" between operations
>>>> > in a preset?
>>>>
>>>> You can create a vparam to keep state info and timestamp and compare
>>>> against Date.now(). However, if you're getting endless_cycle fault then
>>>> you can probably fix this by minimizing the number of implicit and
>>>> explicit commit calls.
>>>>
>>>> --
>>>> Zaid Abdulla <zaid at genieacs.com>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.genieacs.com
>>>> http://lists.genieacs.com/mailman/listinfo/users
>>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.genieacs.com
>>> http://lists.genieacs.com/mailman/listinfo/users
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171006/a6482a28/attachment.html>


More information about the Users mailing list