# Preset does not work well

**URL:** <https://forum.genieacs.com/t/preset-does-not-work-well/1052>\
**Category:** Uncategorized\
**Created:** [September 15, 2020, 3:39pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052 "2020-09-15T15:39:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 15, 2020, 3:39pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/1 "2020-09-15T15:39:09Z")

</div>

Hi I have created a preset for running my provision script and I put two serial numbers in the preconditions on which to test.  
But if I put only one serial number, it works, if I put two serial numbers, on one of the two cpe the provision is not executed. Why?

---

<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:** [September 15, 2020, 3:46pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/2 "2020-09-15T15:46:42Z")

</div>

This is [covered in the documentation](https://github.com/genieacs/genieacs-gui/wiki/Presets-Tab)…

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 15, 2020, 4:04pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/3 "2020-09-15T16:04:21Z")

</div>

But there is nothing about my problem

---

<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:** [September 15, 2020, 5:26pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/4 "2020-09-15T17:26:00Z")

</div>

Sure it is…

> **All** preconditions, events and schedules must be met for the preset to execute.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 16, 2020, 1:38pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/5 "2020-09-16T13:38:01Z")

</div>

Sorry for my constant questions, I have a doubt:  
The cpe, once provisioned if the customer resets it, genieacs can notice and notify in some way?

---

<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:** [September 16, 2020, 6:34pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/6 "2020-09-16T18:34:26Z")

</div>

Yes. When a CPE is factory reset it should send the event code “0 BOOTSTRAP” which you can listen to to push the configuration again.

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 17, 2020, 10:16am UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/7 "2020-09-17T10:16:08Z")

</div>

But if there is the tag “Provisioned” on the CPE , the CPE does not receive the configuration

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 17, 2020, 10:30am UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/8 "2020-09-17T10:30:17Z")

</div>

I might not put the tag when provisioning and executing the provision script only when I get the event code “0 BOOTSTRAP” with the preset. Or are there other ways?

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 17, 2020, 2:03pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/9 "2020-09-17T14:03:41Z")

</div>

I tried to do this but it doesn’t work

 ![Schermata del 2020-09-17 16-02-47](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/fd085bb486817c6091809d734373f2ffa9cdf8b0.png)

I also tried to put in events “O BOOTSTRAP, 1 BOOT”, but nothing…

---

<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:** [September 17, 2020, 3:29pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/10 "2020-09-17T15:29:35Z")

</div>

If only there was this [giant search engine](https://lmgtfy.com/) you could use to [lookup this information](https://forum.genieacs.com/t/add-new-preset-with-event-1-boot/73)…

---

<div class="post-metadata">

**Author:** ![snuz](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@snuz](https://forum.genieacs.com/u/snuz)\
**Post date:** [September 18, 2020, 12:38pm UTC](https://forum.genieacs.com/t/preset-does-not-work-well/1052/11 "2020-09-18T12:38:57Z")

</div>

How could I do for not to fall in a preset\_loop ?
