Using aProvision Script

Dan Morphis dan at milkcarton.com
Fri May 11 14:20:40 EDT 2018


Provisioning scripts are only implemented in v1.1. v1.1 also doesn't pull
down the entire device model, which is why it appears to you that basic
information isn't being displayed about the CPE. You can force GenieACS to
pull that information by using a provisioning script.

Create a script called 'boot', and then trigger it off the 1 BOOT event. In
that script put this:

let now = Date.now();
declare("InternetGatewayDevice.DeviceInfo.SerialNumber", {value: 1});
declare("InternetGatewayDevice.DeviceInfo.ProductClass", {value: 1});
declare("InternetGatewayDevice.DeviceInfo.ManufacturerOUI", {value: 1});
declare("InternetGatewayDevice.DeviceInfo.Manufacturer", {value: 1});
declare("InternetGatewayDevice.DeviceInfo.HardwareVersion", {value: 1});

declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*
.WANPPPConnection.*.ExternalIPAddress", {value: now});


The value in the value parameter tells Genie to only refresh the given
parameter/object if Genie's version of the data is older then the value
given. Value is in milliseconds since Unix epoch.

-dan



On Fri, May 11, 2018 at 10:05 AM, Joseph Waite <joelists at tm.net.uk> wrote:

> Hi Dan
>
> No
> I’m currently using v1.0 as v1.1 wasn’t getting basic info like IP address
> of modems etc.
>
> Joe Waite
>
> On 11 May 2018, at 18:33, Dan Morphis <dan at milkcarton.com> wrote:
>
> Are you using genie v1.1?
>
> On Fri, May 11, 2018 at 1:50 AM, Joseph Waite <joelists at tm.net.uk> wrote:
>
>> Hi Dan
>>
>> Yes that is the page I’m referring to, I have put the external script in
>> the advised location, however its the main provision script I’m unsure of
>> how/where to add.
>>
>> Regards
>>
>> On 10 May 2018, at 23:06, Dan Morphis <dan at milkcarton.com> wrote:
>>
>> I presume your using the "Example of a provisioning flow" wiki page? It
>> mentions under external script
>> <https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow#external-script>
>> where to put the file.
>>
>> -dan
>>
>> On Thu, May 10, 2018 at 1:49 PM, Joseph Waite <joelists at tm.net.uk> wrote:
>>
>>> Hi Guys
>>>
>>> Sorry if this has already been covered but I can’t seem to find it.
>>>
>>> I have an outline of a provisioning script from the Wiki which I believe
>>> Dan posted and have customised it to my needs.
>>>
>>> I cannot however seem to work out where I have to put it, the presets
>>> section doesn’t seem to have any way of adding a file and the Files section
>>> doesn’t have an option for provision scripts.
>>>
>>> If anyone can help I would appreciate it, Im almost there with GenieACS
>>> just seem to be missing one bit of the link!
>>>
>>> Regards
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.genieacs.com
>>> http://lists.genieacs.com/mailman/listinfo/users
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
> _______________________________________________
> 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/20180511/c3b88120/attachment-0001.html>


More information about the Users mailing list