Why only the last PPP connection? Why would you want to have more than one
PPP connection?

Here is how I do it:

First tell Genie you only want one item:
declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.
WANPPPConnection.*", {value: Date.now()}, {path: 1}); // path: 1 says only
one value

Then you set the values:
declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.WANPPPConnection.*.Username",
{value: Date.now()}, {value: "someUsername"});
declare("InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.WANPPPConnection.*.Password",
{value: Date.now()}, {value: "somePassword"});



On Tue, Sep 5, 2017 at 6:12 AM, Marco Marino <[email protected]> wrote:

> Hi, I need to set the following parameter:
> InternetGatewayDevice.WANDevice.3.WANConnectionDevice.1.
> WANPPPConnection.1.Username
> The problem is that I don't know a priori the index of
> InternetGatewayDevice.WANDevice.X
> Is there a way using a provision script to set *last* index of WANDevice ??
>
> Thank you,
> Marco
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to