provisioning script not working

Dan Morphis dan at milkcarton.com
Mon Jan 21 15:15:15 EST 2019


This is all documented on the wiki
<https://github.com/genieacs/genieacs/wiki/GenieACS-Auth-Config#acs-to-cpe>
...

-dan

On Fri, Jan 18, 2019 at 2:21 PM Matthew Forbes <m.forbes at kyrio.com> wrote:

> 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.
>
>
>
> *From:* Users <users-bounces at lists.genieacs.com> *On Behalf Of *Dan
> Morphis
> *Sent:* Friday, January 18, 2019 3:33 PM
> *To:* Community support for GenieACS users <users at lists.genieacs.com>
> *Subject:* Re: provisioning script not working
>
>
>
> *CableLabs WARNING:* The sender of this email could not be validated and
> may not match the person in the "From" field.
>
> 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.
>
>
>
> On Fri, Jan 18, 2019 at 1:41 AM sisir tiwari <sisir at vianet.com.np> wrote:
>
> Hi all,
>
>
>
> I am  having issue with  provisioning script to create new pppoe
> connection.
>
>
>
> My script is as follows:
>
>
>
> const now = Date.now();
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*.*",
> {path: Date.now()});
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.X_CT-COM_WANGponLinkConfig",
> {path: Date.now()});
>
> declare
> ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection",
> null, {path: 1});
>
> 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});
>
> declare
> ("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable",
> {value: now}, {value: true});
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.Enable",
> {value: now}, {value: true});
>
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WANGponLinkConfig.VLANIDMark",
> {value: now}, {value: "1234"});
>
> commit();
>
>
>
> This only refreshes the InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*
> tree but doesn’t set the parameters value.
>
> I guess this is due to full chain doesn’t exist in GenieACS's cache of the
> device object model.
>
>
>
> 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.*”
>
>
>
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Enable
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Username
>
>
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.Password
>
>
>
> Best Regards,
>
> *SISIR TIWARI*
>
> *(NOC)*
>
> [image: cid:image003.png at 01D34DA2.ED69F020]
>
> T: (+977) 01 4217555
>
> A: Jawalakhel, Lalitpur
>
> W: www.vianet.com.np
>
> [image: cid:image003.png at 01D34CCB.90EDC510]
>
>
>
> [image: fb] <https://www.facebook.com/vianetnepal/>[image: twitter]
> <https://twitter.com/VianetFTTH>[image: insa]
> <https://www.instagram.com/vianetftth/>[image: youtube]
> <https://www.youtube.com/channel/UCkw5lCX7AE2ujAhJici0TIQ/videos>
>
>
>
>
>
> _______________________________________________
> 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/20190121/35f918ac/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 349 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 6452 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 554 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 712 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 2196 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 608 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190121/35f918ac/attachment-0011.png>


More information about the Users mailing list