Manually Trigger Preset for Debugging Provisioning Scripts

Dan Morphis dan at milkcarton.com
Fri Mar 29 17:05:56 EDT 2019


Not directly, but what you could do is add a tag precondition. Then when
you want to test you add the desired tag to the CPE and initiate a
connection. In your provision script, have it delete the tag so the preset
doesn't continually trigger.

-dan

On Fri, Mar 29, 2019 at 3:56 AM Scott Miller <cubicalmonkey at gmail.com>
wrote:

> For development purposes is it possible to trigger a preset from an API
> call or through some other manual method ?
> In the doc section I see where to create, delete and show provisions but
> nothing to execute.
>
> I want to provision a device during reboot. In order to debug my provision
> script I'd rather not have to reboot the device a bunch of times to avoid
> waiting for the device to come back.
> Something like the below that would execute the provision without actually
> having to reboot my device.
> curl -i 'http://localhost:7557/provisions/PROVISION_STUFF' -X POST \
> --data '{ "arg1": "TEST", "arg2": "TESTING"}'
>
> _______________________________________________
> 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/20190329/dbc3dffb/attachment.html>


More information about the Users mailing list