<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 9:49 AM George Chelidze <<a href="mailto:george.chelidze@magticom.ge">george.chelidze@magticom.ge</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>Hi Dan,</p>
<p>On 3/28/19 9:24 PM, Dan Morphis wrote:</p>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">why do you want an interval so low</div>
</div>
</div>
</blockquote>
<p>Just for testing, I plan to put 1 hour +/- 20% in production.<br>
</p>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">why do you want a random interval? Load?</div>
</div>
</div>
</blockquote>
<p>Yes</p></div></blockquote><div>How many devices are you expecting? I think you'll find load is less of an issue than you think it will be. The CPE will (well, should) automatically retry if its unable to communicate with the ACS. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
<p>Ah, clear. That means, it doesn't make any sense to bind this
provision to a preset which executes on "2 PERIODIC". I would tag
a device as soon as a "random" value is set for the first time and
skip tagged devices later. Does it sounds reasonable? If yes, this
kind of "random" number will work for me.<br></p></div></blockquote><div>I wouldn't use tags for this. Do this in your bootstrap provision. Then it only executed once.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>
</p>
<p>What if I need really random value in my provision? Any other
way?</p></div></blockquote><div>You would need to patch sandbox.js and expose a "reallyRandom" function, making sure to restart the CWMP process after you make changes.</div><div><br></div><div>-dan </div></div></div>