User PPPoE

Dan Morphis dan at milkcarton.com
Fri Oct 6 12:50:26 EDT 2017


You mean like this?
[image: Inline image 1]

The script I posted doesn't fallback to the *Device* nodes if that is where
the pppoe username is stored for your setup, you can easily modify the
v-param script to fallback. Look a the v-parameters wiki entry for more
information on how to do fallback.

-dan

On Thu, Oct 5, 2017 at 11:41 PM, Jose Vela Delgado <josevelacisco at gmail.com>
wrote:

> Hi Dan,
>
> I can already see the VirtualParameters in the Device Parameters list of
> all the CPEs. All perfect.
>
> But now the parameter appears to me as UNKNOWN in the more than 400 CPEs
> we have. If I change that word "UNKNOWN" by a specific user, that user
> appears to me.
>
>
> - VirtualParameters
> <https://mailtrack.io/trace/link/ba92aa3a7091ea3112d4f5abd410168135f6e8fa?url=http%3A%2F%2F192.168.106.16%3A3000%2Fdevices%2F00259E-HG8546M-48575443BFFE208C%23&userId=44382&signature=33a73a3cd1f73137>
> - VirtualParameters.pppoeUsername UNKNOWN
>
> My idea is that instead of appearing the word "UNKNOWN" in the more than
> 400 CPEs, I would like to appear each pppoe user of each CPEs. I do not
> know if I can explain myself.
>
> I do not know if it can be done.
>
> Regards,
>
>
>
> ​​
>>
> Jose Vela
> *Técnico de networking routing, switching y GPON networks.*
>
>
>
> *"El aprendizaje es experiencia, todo lo demás en información" * *Albert
> Einstein.*
>
> Mira mi perfil profesional y conecta conmigo en LinkedIn pinchando en
> este enlace.
> <https://mailtrack.io/trace/link/ce8e0860768d342e6f570c84c9132e7adab2348d?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=fbf2e20e682356bf>
>
> 2017-10-05 18:46 GMT+02:00 Dan Morphis <dan at milkcarton.com>:
>
>> 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 <
>> josevelacisco at gmail.com> 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://mailtrack.io/trace/link/85b2c00e589e9c1f109b824ed1c3ba60bc6a2a6c?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&userId=44382&signature=92386d8657a3199d>
>>> para Windows 10
>>>
>>>
>>>
>>> *De: *Dan Morphis <dan at milkcarton.com>
>>> *Enviado: *miércoles, 4 de octubre de 2017 20:12
>>> *Para: *Community support for GenieACS users <users at lists.genieacs.com>
>>> *Asunto: *Re: User PPPoE
>>>
>>>
>>>
>>> Create a v-param called 'pppoeUsername' with this script:
>>>
>>>
>>>
>>> let username = 'UNKNOWN';
>>>
>>> let igd = declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevi
>>> ce.*.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
>>> Users at lists.genieacs.com
>>> http://lists.genieacs.com/mailman/listinfo/users
>>> <https://mailtrack.io/trace/link/2c54f3a5576a964dd284cfd1d645d3ef4280b7ca?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=30ebfe53735ab86f>
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>> <https://mailtrack.io/trace/link/2c54f3a5576a964dd284cfd1d645d3ef4280b7ca?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=30ebfe53735ab86f>
>>
>>
>
> _______________________________________________
> 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/20171006/bf49fc74/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7371 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171006/bf49fc74/attachment-0001.png>


More information about the Users mailing list