<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:"Baskerville Old Face";
        panose-1:2 2 6 2 8 5 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m very close.  I can send a POST and the device updates on the next inform, but I would like it to update immediately.  I get an HTTP 202 error showing incorrect connection request credentials.  How do I set the connection request credentials? 
 I know what they are and I get a 200 ok when I use the other command you gave me.  I just need to get a 200 ok for the POST.  Thanks for your help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Users <users-bounces@lists.genieacs.com> <b>On Behalf Of
</b>Dan Morphis<br>
<b>Sent:</b> Friday, January 18, 2019 3:33 PM<br>
<b>To:</b> Community support for GenieACS users <users@lists.genieacs.com><br>
<b>Subject:</b> Re: provisioning script not working<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:solid #9C0006 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt;margin-bottom:2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#FFC7CE"><b><span style="font-size:10.0pt;color:#9C0006">CableLabs WARNING:</span></b><span style="font-size:10.0pt;color:black"> The sender of this email could not be validated and may not match the
 person in the "From" field.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal">I'd read through the documentation on the wiki again. This is all outlined in there. Do not hard-code instance ids, you can never be assured they will always be the same.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jan 18, 2019 at 1:41 AM sisir tiwari <<a href="mailto:sisir@vianet.com.np">sisir@vianet.com.np</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi all,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am  having issue with  provisioning script to create new pppoe connection.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">My script is as follows:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">const now = Date.now();</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*.*", {path: Date.now()});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.X_CT-COM_WANGponLinkConfig", {path: Date.now()});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection", null, {path: 1});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.[ConnectionType:IP_Routed,X_D0542D_ServiceList:INTERNET,TransportType:PPPoE,Username:hello12,Password:hello12,NATEnabled:true]",
 {path: 1}, {path: 1});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable", {value: now}, {value: true});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.Enable", {value: now}, {value: true});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.VLANIDMark", {value: now}, {value: "1234"});</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0">commit();
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#0070C0"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">This only refreshes the
</span><span style="color:#0070C0">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*
</span><span style="color:black">tree but doesn’t set the parameters value.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">I guess this is due to full chain doesn’t exist in GenieACS's cache of the device object model.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">So how could I create new pppoe connection as below since I already have three WANConnectionDevice as “InternetGatewayDevice.WANDevice.1.WANConnectionDevice.(1,2,3).WANIPConnection.1.*”</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Username
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Password</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best Regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:105%">
<b><span lang="EN-GB" style="color:red;letter-spacing:1.7pt">SISIR TIWARI</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:105%">
<b><span lang="EN-GB" style="font-size:10.0pt;line-height:105%;font-family:"Baskerville Old Face",serif;color:#767171">(NOC)</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:105%">
<span style="color:#2F5496"><img border="0" width="338" height="3" style="width:3.5166in;height:.0333in" id="gmail-m_2661156880242964490Picture_x0020_1" src="cid:image001.png@01D4AF49.E58FD8B0" alt="cid:image003.png@01D34DA2.ED69F020"></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:105%">
<span style="font-size:10.5pt;line-height:105%;color:red;background:white">T:</span><span style="color:#2F5496">
</span><span lang="EN-GB" style="color:#2F5496">(+977) 01 4217555 </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="color:red">A</span><span lang="EN-GB" style="color:#2F5496">: Jawalakhel, Lalitpur</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="color:red">W:</span><span lang="EN-GB" style="color:#2F5496">
<a href="http://www.vianet.com.np/" target="_blank">www.vianet.com.np</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#959699"><img border="0" width="225" height="61" style="width:2.3416in;height:.6333in" id="gmail-m_2661156880242964490Picture_x0020_14" src="cid:image002.png@01D4AF49.E58FD8B0" alt="cid:image003.png@01D34CCB.90EDC510"></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Arial Narrow",sans-serif;color:red"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.facebook.com/vianetnepal/" target="_blank"><span style="color:#0563C1;text-decoration:none"><img border="0" width="50" height="50" style="width:.525in;height:.525in" id="gmail-m_2661156880242964490Picture_x0020_3" src="cid:image003.png@01D4AF49.E58FD8B0" alt="fb"></span></a><a href="https://twitter.com/VianetFTTH" target="_blank"><span style="color:#0563C1;text-decoration:none"><img border="0" width="50" height="50" style="width:.525in;height:.525in" id="gmail-m_2661156880242964490Picture_x0020_4" src="cid:image004.png@01D4AF49.E58FD8B0" alt="twitter"></span></a><a href="https://www.instagram.com/vianetftth/" target="_blank"><span style="color:#0563C1;text-decoration:none"><img border="0" width="50" height="50" style="width:.525in;height:.525in" id="gmail-m_2661156880242964490Picture_x0020_5" src="cid:image005.png@01D4AF49.E58FD8B0" alt="insa"></span></a><a href="https://www.youtube.com/channel/UCkw5lCX7AE2ujAhJici0TIQ/videos" target="_blank"><span style="color:#0563C1;text-decoration:none"><img border="0" width="50" height="50" style="width:.525in;height:.525in" id="gmail-m_2661156880242964490Picture_x0020_6" src="cid:image006.png@01D4AF49.E58FD8B0" alt="youtube"></span></a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>