Best way to autoconfigure devices

Dan Morphis dan at milkcarton.com
Mon Feb 8 13:05:36 EST 2016


> My first question is... *what events does manage akcoder's fork*? In
order to know the cases which I need to take into account (Boot from
factory defaults, a simply periodic inform, some other inform... etc). I
will build a listening socket in a separate server with R programming
language (because we are doing all this stuff with this language) listening
for these EVENTS.  *How these notifications of akcoder's fork work?* I
don't know any guide.

You specify the events you want forwarded and the URL to forward to. When
an event comes in that matches one of the requested types, it is POSTed to
the URL you provide, and the body of the message is the JSON encoded event
and data.

"NOTIFICATION_ENABLED" : true,
"NOTIFICATION_URL": "https://my_server/Api/ACS/Event/%s",
"NOTIFICATION_TYPES" : "0 BOOTSTRAP,1 BOOT,2 PERIODIC,3 SCHEDULED,4 VALUE
CHANGE,5 KICKED,6 CONNECTION REQUEST,7 TRANSFER COMPLETE,8
DIAGNOSTICS,COMPLETE,9 REQUEST DOWNLOAD,M Reboot"



On Mon, Feb 8, 2016 at 8:53 AM, Sergio Fernández <
sergio.fernandez at electronicamartinez.com> wrote:

> Good afternoon! Here I am again.
>
> I've been thinking on this topic again, as we have coming a large batch of
> VDSL routers (In this case, TD-W9970 & TD-W9980).
> We would be talking about the GenieACS growing at a 1.000 routers/year,
> more or less. So the "preset per CPE" option should be discarded (Or not?
> Please state this clearly because it can save me a ton of work).
>
> My first question is... *what events does manage akcoder's fork*? In
> order to know the cases which I need to take into account (Boot from
> factory defaults, a simply periodic inform, some other inform... etc). I
> will build a listening socket in a separate server with R programming
> language (because we are doing all this stuff with this language) listening
> for these EVENTS.  *How these notifications of akcoder's fork work?* I
> don't know any guide.
>
> So correct me if I am wrong or if my proposal can be improved:
>
> In this future socket R server I am currently running an auto-configurator
> (It synchronizes some databases in order to make a PPPoE user for the
> client up and running, and totally autoconfigures some DHCP66-compliant
> routers). I will add an extra option to autoconfigure these VDSL routers.
> I'm thinking for example that whenever someone generates a new PPPoE user
> with a VDSL router, to add to a CSV file (or other format) the MAC of the
> router and the PPPoE user it belongs to. For example, it would add the CPE
> with MAC AA:11:BB:22:CC:33 with the client ID 123456 in the same row.
>
> So whenever the socket receives, for example, a boot from factory default
> of this CPE with MAC AA:11:BB:22:CC:33 it will check if it exists in that
> CSV file. If the entry exists, it picks up the PPPoE user 123456 and
> connects to the RADIUS server to pick up its PPPoE password and other info.
> After all this computation, the server sends a parameter to the GenieACS to
> configure this CPE with all these parameters.
>
> Other question that I have is... *What if for example do I want to change
> the PPPoE user (or whatever parameter) time after?* Do I need to set a
> preset in order to make this hard-configured to not being overriden by a
> simple reboot of the router? (This has a lot to do on how to manage EVENTs)
>
> Thank you!
>
> --
> ------------------------------
>
> *Nombre:* Sergio Fernández Rubio
> *Cargo:* Ingeniero de Software y de Redes
> *Departamento:* TIC
> *Email:* sergio.fernandez at electronicamartinez.com
> *Oficina:* 968 165 000
> *Página web:* www.electronicamartinez.es
> ------------------------------
>   <https://www.linkedin.com/company/10271615>
> <https://twitter.com/EMartinez_SL>
> <https://www.facebook.com/electronicamartinez0>
> <https://plus.google.com/b/114382878353884084293/114382878353884084293>
> ------------------------------
>
>
>
> _______________________________________________
> 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/20160208/e75e5cf5/attachment.html>


More information about the Users mailing list