So 2 and 3 are unnecessary if you have a separate provision that sets the username. If you do, then refresh the vparam in that provision. Refreshing on 2 PERIODIC could be a bit much, but that depends on how often your CPEs inform. We have ours set to inform every 30 mins.
To see the param in the gui for a specific device, add this line to genieacsgui/config/summary_parameters.yml: PPPoE Username: VirtualParameters.pppoeUsername To see the param on the devices page, add that line to index_parameters.yml -dan On Thu, Oct 5, 2017 at 12:32 AM, Jose Vela Delgado <[email protected]> wrote: > Thank you very much Dan for your prompt response. > > > > This I have done: > > > > 1. I created a virtual parameter with the first script you told me. > > > > 2. I have created a provision, called "Refresh-PPPoE" with the second > script you told me. > > > > 3. Finally I have created a Preset with the name "Refresh-PPPoE" so that > it calls the provision every time there is a 2 PERIODIC event. > > > > Have I done well? What is the next step to see that parameter in the > GenieACS? > > > > A greeting. > > > > Enviado desde Correo <https://go.microsoft.com/fwlink/?LinkId=550986> > para Windows 10 > > > > *De: *Dan Morphis <[email protected]> > *Enviado: *miƩrcoles, 4 de octubre de 2017 20:12 > *Para: *Community support for GenieACS users <[email protected]> > *Asunto: *Re: User PPPoE > > > > Create a v-param called 'pppoeUsername' with this script: > > > > let username = 'UNKNOWN'; > > let igd = declare("InternetGatewayDevice.WANDevice.*. > WANConnectionDevice.*.WANPPPConnection.*.Username", {value: 1}); > > > > if (igd.size) { > > for (let p of igd) { > > if (p.value[0]) { > > username = p.value[0]; > > break; > > } > > } > > } > > > > return {writable: false, value: [username, "xsd:string"]}; > > > > > > Finally, in what ever script you use to set the PPPoE Username field, add > this: > > > > declare(*"VirtualParameters.pppoeUsername"*, {*value*: Date.*now()*}); > //Force the pppoeUsername vparam to update > > > > > > -dan > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
