# Push Script how to?

**URL:** <https://forum.genieacs.com/t/push-script-how-to/120>\
**Category:** Uncategorized\
**Created:** [May 29, 2019, 8:09am UTC](https://forum.genieacs.com/t/push-script-how-to/120 "2019-05-29T08:09:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![araz.valizada](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@araz.valizada](https://forum.genieacs.com/u/araz.valizada)\
**Post date:** [May 29, 2019, 8:09am UTC](https://forum.genieacs.com/t/push-script-how-to/120/1 "2019-05-29T08:09:17Z")

</div>

Hello. I installed genieacs and simulator, simulator connected and it shows in devices tab. i want just to test how pushing script works. I created a reboot script in provisions tab and created also a reboot preset. so what is next? how can i push script to simulator?  
Regards

---

<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:** [June 3, 2019, 10:38pm UTC](https://forum.genieacs.com/t/push-script-how-to/120/2 "2019-06-03T22:38:28Z")

</div>

That’s it. It should work now that you have a preset that triggers the script. Can you show me what your reboot script looks like?

---

<div class="post-metadata">

**Author:** ![araz.valizada](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@araz.valizada](https://forum.genieacs.com/u/araz.valizada)\
**Post date:** [June 4, 2019, 5:21am UTC](https://forum.genieacs.com/t/push-script-how-to/120/3 "2019-06-04T05:21:10Z")

</div>

actually i took it from github page of genieacs.  
declare(“Reboot”, null, {value: Date.now()});  
so after adding provision i need to add a preset right? and how can i push it to device after creating preset? i want only test how pushing script works.

---

<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:** [June 4, 2019, 8:46am UTC](https://forum.genieacs.com/t/push-script-how-to/120/4 "2019-06-04T08:46:21Z")

</div>

> [@araz.valizada](#):
>
> so after adding provision i need to add a preset right? and how can i push it to device after creating preset?

You don’t _push_ a preset. A preset maps a provision to devices based on its precondition filter. No precondition mean it’s going to be applied to all devices on every inform.
