Very interesting! Thank you a lot, Dan.

Sergio Fernández Rubio - https://www.linkedin.com/in/sergiofdz/
(+34) 687 016 994
[email protected]

2017-03-08 1:39 GMT+01:00 Dan Morphis <[email protected]>:

> I needed a way to iteratively run my extension scripts without waiting for
> a preset to kickoff a provision to kickoff an extension. This is what I
> came up with. Place this script in your genieacs/config/ext folder (same
> location as your extension scripts) and call it ext-runner.js
>
> const cpeConfig = require('./cpe-config')
>
> const serial = 'SR515AA046-5000137';
> const oui = '3c9066';
> const productClass = '963168_OT142C_B';
>
> console.log('Running script');
>
> cpeConfig.getPppoe([serial, oui, productClass], function (e) {
>     console.error(e);
> });
>
> Replace "cpe-config" with the file name of your extension script, and the
> ".getPppoe" with the exported name.
>
> To run, cd to your genieacs dir and run "node config/ext/ext-runner.js"
>
> I hope this helps someone!
>
>
> _______________________________________________
> 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