# Delay for set next parameters

**URL:** <https://forum.genieacs.com/t/delay-for-set-next-parameters/1161>\
**Category:** Uncategorized\
**Created:** [October 26, 2020, 10:20am UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161 "2020-10-26T10:20:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wariator](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@wariator](https://forum.genieacs.com/u/wariator)\
**Post date:** [October 26, 2020, 10:20am UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/1 "2020-10-26T10:20:14Z")

</div>

I want to configure WLAN parameters but CPU utilization 100% at this time. I have a “session timeout” by device when configured that. And other parameters don’t set. How can i set delay for next operation in provisioning?

server.keepAliveTimeout = 30000;  
genieacs version 1.1.3

---

<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:** [October 27, 2020, 5:49pm UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/2 "2020-10-27T17:49:42Z")

</div>

Split your provisioning into two steps:

1. First preset is triggered on `0 BOOTSTRAP` event. Apply the various configuration you need and set a tag to trigger the next step.

2. The second preset is triggered on said tag **and** the lack of a `0 BOOTSTRAP` event. Apply the remaining configuration and remove tag.

---

<div class="post-metadata">

**Author:** ![javed](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@javed](https://forum.genieacs.com/u/javed)\
**Post date:** [January 25, 2021, 8:02am UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/3 "2021-01-25T08:02:05Z")

</div>

i have a similar issue i am setting tag on BOOTSTRAP  
the provision is in 3 steps  
bootstrap \> create connections \> set tag “Step1” \> Reboot  
boot \> create voice profile \> set tag “Setp2” clear tag “Step1” \> Reboot  
boot \> change passwords \> set tag “provisioned” clear tag “Step2” \> Reboot

Firstep works as said  
but on second step the script is running multiple times so before reboot the step 3 is executing !!

any solution ??

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [February 1, 2021, 7:07am UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/4 "2021-02-01T07:07:25Z")

</div>

> [@zaidka](#):
>
> The second preset is triggered on said tag **and** the lack of a `0 BOOTSTRAP` event. Apply the remaining configuration and remove tag.

I see you emphasize on the “and the lack of 0 BOOTSTRAP” … this means setting -0 BOOTSTRAP at the events to match for? In this case the second preset will run immediately after the first one? or it will run only on the next non bootstrap 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:** [February 1, 2021, 5:40pm UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/5 "2021-02-01T17:40:25Z")

</div>

It will run on the next inform from the CPE that does not include 0 BOOTSTRAP.

---

<div class="post-metadata">

**Author:** ![wariator](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@wariator](https://forum.genieacs.com/u/wariator)\
**Post date:** [February 2, 2021, 11:39am UTC](https://forum.genieacs.com/t/delay-for-set-next-parameters/1161/6 "2021-02-02T11:39:05Z")

</div>

why so many reboot? all presets will be done on Inform 1 BOOT in one time.

try that:  
bootstrap \> set periodic = 10 and other auth \> set tag “auth\_on”  
2 PERIODIC, if tag == “auth\_on” \> create connections \> set tag “Step1”, clear tag “auth\_on”  
2 PERIODIC, if tag == “Step1” \> create voice profile \> set tag “Setp2”, clear tag “Step1”  
2 PERIODIC, if tag == “Step2” \> create passwords \> set periodic = 3600, set tag “provisioned”, clear tag “Step2”

this example work for me
