How about make a preset which will be triggered if there’s a special tag ? Here’s the detail idea : 1. Create PERIODIC PRESET with condition some value of tag. 2. In the PRESET a. Clear the tag b. Normalize the periodic inform value c. Do the desired command/activity To trigger that preset, you can use API with following action : 1. Set the tag at selected device 2. Set the periodic inform to small value. I usually set it to 10sec.
Takim. From: Scott Miller Sent: Friday, March 29, 2019 6:56 PM To: Community support for GenieACS users Subject: Manually Trigger Preset for Debugging Provisioning Scripts 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 [email protected] http://lists.genieacs.com/mailman/listinfo/users
