# Execute provision script upon an event reception

**URL:** <https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263>\
**Category:** Uncategorized\
**Created:** [December 20, 2021, 4:17pm UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263 "2021-12-20T16:17:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![techgenie](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@techgenie](https://forum.genieacs.com/u/techgenie)\
**Post date:** [December 20, 2021, 4:17pm UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/1 "2021-12-20T16:17:40Z")

</div>

I wanted to execute a provision script on every periodic event reception. I see the script executing only once when the CPE is registered newly. I see in cwmp logs that periodic event is received. However, provision script is not getting executed.

Below is the sample content from the provision script.

let version=declare(“InternetGatewayDevice.DeviceInfo.SoftwareVersion”,{value: 1}).value[0];  
log("version------\> ", version);

Any thoughts why script is not executing?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 20, 2021, 5:12pm UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/2 "2021-12-20T17:12:02Z")

</div>

Without your preset script, no one will be able to help you.

---

<div class="post-metadata">

**Author:** ![techgenie](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@techgenie](https://forum.genieacs.com/u/techgenie)\
**Post date:** [December 21, 2021, 3:52am UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/3 "2021-12-21T03:52:28Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/bf0ae1b118084e49444664dd72f9dfeb541b57e0.png)

I’ve just added test provision to preset and chose the event.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 21, 2021, 5:48pm UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/4 "2021-12-21T17:48:32Z")

</div>

Are you looking in the correct log file? There are two different log files. `genieacs-cwmp.log` and `genieacs-cwmp-access.log`. Different logging goes in the different files.

---

<div class="post-metadata">

**Author:** ![techgenie](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@techgenie](https://forum.genieacs.com/u/techgenie)\
**Post date:** [December 28, 2021, 3:47am UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/5 "2021-12-28T03:47:47Z")

</div>

Sorry for late response. I could see genieacs-cwmp-access.log only getting created. Could not find genieacs-cwmp.log file anywhere. Any inputs if I need to configure some options to get the genieacs-cwmp.log file generated?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [December 29, 2021, 9:40pm UTC](https://forum.genieacs.com/t/execute-provision-script-upon-an-event-reception/2263/6 "2021-12-29T21:40:02Z")

</div>

It will be specified in the genieacs.env file:

`GENIEACS_CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log GENIEACS_CWMP_LOG_FILE=/var/log/genieacs/genieacs-cwmp.log`

If the entry does not exist, then create it and restart the CWMP process.
