<div dir="ltr">Is there an easy way to extract the datamodel for a device to use in the sim?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 2:31 PM, Dan Morphis <span dir="ltr"><<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.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">Fresh db. I haven't tried the simulator. But its very repeatable. I'll look at the sim here in a few mins.<div><br></div><div>Another question, how do I prevent a provision from being executed multiple times? I created a provision to exec on 1 BOOT, and it executed 4 times very quickly before being stopped by the endless_cycle check.</div><div><br></div><div>Channel: Provision</div><div>Weight; 0</div><div>Schedule: (blank)</div><div>Events: 1 BOOT</div><div>Precondition: Tag = 'Managed', Tag != 'Provisioned', Model = 'SR515ac'</div><div>Under config, I have one provision.</div><div><br></div><div><a href="http://imgur.com/Xsr3qcl" target="_blank">http://imgur.com/Xsr3qcl</a><br></div><div><br></div><div>Log is at <a href="http://pastebin.com/9zxc0BwQ" target="_blank">http://pastebin.com/<wbr>9zxc0BwQ</a></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 2:18 PM, Zaid Abdulla <span dir="ltr"><<a href="mailto:zaid@genieacs.com" target="_blank">zaid@genieacs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_2264474456232027042HOEnZb"><div class="m_2264474456232027042h5">On Thu, 2017-03-09 at 14:11 -0900, Dan Morphis wrote:<br>
> I'm trying to ensure a WANPPPConnection instance exists. Per the docs<br>
> I should be able to use this:<br>
> log('Creating WANPPPInstance (if necessary)');<br>
> declare("InternetGatewayDevice<wbr>.WANDevice.1.WANConnectionDevi<wbr>ce.1.WANP<br>
> PPConnection.*", null, {path: 1});<br>
><br>
> However, when I have that in my script, dozens of instances get<br>
> created, and then the script faults with:<br>
> Channel has faulted; channel="Provision" retries=0<br>
> faultCode="endless_cycle" faultMessage="The provision seems to be<br>
> repeating indefinitely" <br>
><br>
> InternetGatewayDevice.WANDevic<wbr>e.1.WANConnectionDevice.1.WANP<wbr>PPConnect<br>
> ionNumberOfEntries 61<br>
><br>
> Those 60 instances (1 pre-existing) were created before I could kill<br>
> the cwmp process :)<br>
> Here is a snippet from the log:<br>
><br>
> 2017-03-09T22:56:17.484Z [INFO] 172.27.240.90 3c9066-963168_OT142C_B-<br>
> SR515AA046%2D5000137: Script: Creating WANPPPInstance (if necessary)<br>
> 2017-03-09T22:56:17.497Z [INFO] 172.27.240.90 3c9066-963168_OT142C_B-<br>
> SR515AA046%2D5000137: ACS request; acsRequestId="15ab5497fed100"<br>
> acsRequestName="AddObject"<br>
> 2017-03-09T22:56:17.583Z [INFO] 172.27.240.90 3c9066-963168_OT142C_B-<br>
> SR515AA046%2D5000137: ACS request; acsRequestId="15ab5497fed101"<br>
> acsRequestName="GetParameterNa<wbr>mes"<br>
> 2017-03-09T22:56:17.666Z [INFO] 172.27.240.90 3c9066-963168_OT142C_B-<br>
> SR515AA046%2D5000137: ACS request; acsRequestId="15ab5497fed102"<br>
> acsRequestName="AddObject"<br>
> 2017-03-09T22:56:17.757Z [INFO] 172.27.240.90 3c9066-963168_OT142C_B-<br>
> SR515AA046%2D5000137: ACS request; acsRequestId="15ab5497fed103"<br>
> acsRequestName="GetParameterNa<wbr>mes"<br>
> ...<br>
<br>
</div></div>Can you replicate this using the simulator? Also, are you using a fresh<br>
database or migrating from v1.0 database?<br>
<span class="m_2264474456232027042HOEnZb"><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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>