# All Provisioning scripts get executed during CPE inform interval

**URL:** <https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493>\
**Category:** Uncategorized\
**Created:** [February 26, 2021, 6:40pm UTC](https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493 "2021-02-26T18:40:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudymartin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rudymartin](https://forum.genieacs.com/u/rudymartin)\
**Post date:** [February 26, 2021, 6:40pm UTC](https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493/1 "2021-02-26T18:40:46Z")

</div>

Hi all.

I have placed a log() call and a return after that on each provisioning script. The goal this time is to check on why on each INFORM call made my the CPE all provisioning scripts are executed.

this correspond to a TPLink Router (DevId 7C8BCA-IGD-7C8BCACF39EE)

```
2021-02-26T18:31:19.963Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: Inform; cpeRequestId="9379" informEvent="2 PERIODIC" informRetryCount=0
2021-02-26T18:31:20.018Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: CPE request; cpeRequestId="9380" cpeRequestName="GetRPCMethods"
2021-02-26T18:31:20.024Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: Script: provision boot 
2021-02-26T18:31:20.024Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: Script: provision boostrap! 
2021-02-26T18:31:20.024Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: Script: provision DEFAULT! !!!! 
2021-02-26T18:31:20.024Z [INFO] 172.16.19.187 7C8BCA-IGD-7C8BCACF39EE: Script: provision INFORM !!! 

```

and this was made by the genieacs simulator fired from another computer at the same lan segment: devid( 202BC1-BM632w-000000)

```
2021-02-26T18:33:31.861Z [INFO] 186.0.180.50 202BC1-BM632w-000000: Inform; cpeRequestId="xh6oi5dq" informEvent="2 PERIODIC" informRetryCount=0
2021-02-26T18:33:31.872Z [INFO] 186.0.180.50 202BC1-BM632w-000000: Script: provision boot 
2021-02-26T18:33:31.872Z [INFO] 186.0.180.50 202BC1-BM632w-000000: Script: provision boostrap! 
2021-02-26T18:33:31.872Z [INFO] 186.0.180.50 202BC1-BM632w-000000: Script: provision DEFAULT! !!!! 
2021-02-26T18:33:31.873Z [INFO] 186.0.180.50 202BC1-BM632w-000000: Script: provision INFORM !!! 
2021-02-26T18:33:31.875Z [INFO] 186.0.180.50 202BC1-BM632w-000000: New device registered

```

I tried rebooting the ACS computer to see if there was something on Genie internal states that could be triggering this but no luck. GenieACS version 1.2.3 (I plan to upgrade ASAP but I need to do some things first)

Any hints on what I might be doing wrong ?

thanks in advance. rudy

---

<div class="post-metadata">

**Author:** ![rudymartin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rudymartin](https://forum.genieacs.com/u/rudymartin)\
**Post date:** [February 26, 2021, 6:49pm UTC](https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493/2 "2021-02-26T18:49:59Z")

</div>

after reading another post I realized I need to elaborate a bit more:

they configued 4 presets, all of them have weight 0:

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

I suppose the expected behavior would be to execute Default & Inform provisions during Inform events but perhaps I am missing something or I have something misconfigured.

thanks again.

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [February 26, 2021, 9:42pm UTC](https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493/3 "2021-02-26T21:42:39Z")

</div>

I see your presets don’t have any schedule, events or preconditions they _should_ run on every inform. The name of the preset has no bearing on when it gets executed.

---

<div class="post-metadata">

**Author:** ![Clxxcv](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/clxxcv/32/1013_2.png) [@Clxxcv](https://forum.genieacs.com/u/Clxxcv)\
**Post date:** [February 3, 2023, 6:36am UTC](https://forum.genieacs.com/t/all-provisioning-scripts-get-executed-during-cpe-inform-interval/1493/4 "2023-02-03T06:36:49Z")

</div>

May that could help to someone. Similar issue. stealed from other post

> [@Why Provision's Script works on every device regardless on Preset](https://forum.genieacs.com/t/why-provisions-script-works-on-every-device-regardless-on-preset/3098/5):
>
> It doesn’t work because tags aren’t an array. The reason the value of a declare would be an array is the first index of the array is the value, the second is the data type. Put this function in your provision script and use it like so: if (!hasTag('Huawei\_Done')) { // Do stuff } function hasTag(name) { const result = declare(`Tags.${name}`, {value: 1}); return result.value !== undefined; }
