# Proper setting of Preset

**URL:** <https://forum.genieacs.com/t/proper-setting-of-preset/2058>\
**Category:** Uncategorized\
**Created:** [September 28, 2021, 11:26am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058 "2021-09-28T11:26:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [September 28, 2021, 11:26am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/1 "2021-09-28T11:26:08Z")

</div>

hi all,

what is the proper way to use preset ?  
for example:

- when i need to execute provision “firmware-upgrade” on 3am
- when i need to upload “3 Vendor Configuration File” on 6am next morning

thank you

---

<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 28, 2021, 6:42pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/2 "2021-09-28T18:42:42Z")

</div>

A preset can execute a provision based on a set of conditions. This preset I created executes every morning between 2 and 4 am. Preset schedules are based on UTC and specified in cron format.

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

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [September 29, 2021, 3:05am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/3 "2021-09-29T03:05:44Z")

</div>

ups… base on UTC ?  
i already set my ubuntu according to the local timezone. is it stil using UTC ?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/d00dc656afc46d8a32f95825f1c549c4aeb009c6.png)  
i tried to set it up and it won’t run.

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [September 29, 2021, 3:32am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/4 "2021-09-29T03:32:18Z")

</div>

update… it’s run after put " before and after the serial number.  
so the precondition become Device.DeviceInfo.SerialNumber = “94A3093670D7”

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [September 29, 2021, 7:25am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/5 "2021-09-29T07:25:25Z")

</div>

let say if i want to execute the command on 1 am every date=1, than the schedule become 290 0 1 1 \* \*, is it correct ?  
another, if i want to execute the command by tomorrow (sept 30) on 5 pm, than the scuedule become 290 0 17 30 9 \*, is it correct ?  
and the date & time using GMT / UTC

---

<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 30, 2021, 5:33pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/6 "2021-09-30T17:33:15Z")

</div>

> [@prawira](#):
>
> i already set my ubuntu according to the local timezone. is it stil using UTC ?

Yes, everything in Genie is in UTC.

---

<div class="post-metadata">

**Author:** ![prawira](https://avatars.discourse-cdn.com/v4/letter/p/258eb7/32.png) [@prawira](https://forum.genieacs.com/u/prawira)\
**Post date:** [October 1, 2021, 4:46am UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/7 "2021-10-01T04:46:54Z")

</div>

ok…  
any idea how to use tag on preset ?  
example, execute provision test with condition tag=“TEST”

thank you

---

<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:** [October 1, 2021, 4:34pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/8 "2021-10-01T16:34:55Z")

</div>

> **[Presets Tab · genieacs/genieacs-gui Wiki](https://github.com/genieacs/genieacs-gui/wiki/Presets-Tab)**
>
> A GUI front end for GenieACS built with Ruby on Rails. - Presets Tab · genieacs/genieacs-gui Wiki

This is for an older version of GenieACS, but the concepts are the same.

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [December 2, 2021, 4:38pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/9 "2021-12-02T16:38:42Z")

</div>

Here is a sample of my preset based on Tag.

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

---

<div class="post-metadata">

**Author:** ![Torisomay](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@Torisomay](https://forum.genieacs.com/u/Torisomay)\
**Post date:** [January 11, 2022, 1:44pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/10 "2022-01-11T13:44:35Z")

</div>

I’m trying to set more than 1 serial number on the precondition preset but it’s not working, pls how do i get it sorted.

I have some Serial numbers i only want the preset to affect.

---

<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:** [January 11, 2022, 8:23pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/11 "2022-01-11T20:23:11Z")

</div>

`Device.SerialNumber In ('serial1', 'serial2', ...)`

Unless you are doing this for simple testing purposes, you are probably going about this the wrong way…

---

<div class="post-metadata">

**Author:** ![Torisomay](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@Torisomay](https://forum.genieacs.com/u/Torisomay)\
**Post date:** [January 12, 2022, 2:53pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/12 "2022-01-12T14:53:21Z")

</div>

Thanks, i have to script the process to affect multiple selected ONT’s.

working on a script for it

---

<div class="post-metadata">

**Author:** ![JonasGhost](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jonasghost/32/286_2.png) [@JonasGhost](https://forum.genieacs.com/u/JonasGhost)\
**Post date:** [January 12, 2022, 2:58pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/13 "2022-01-12T14:58:09Z")

</div>

One way would be to tag them. My colleague tag device that should get a special provision and the send a inform.

An alternative way would be to use a list stored in a database or the provision script.

---

<div class="post-metadata">

**Author:** ![Torisomay](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@Torisomay](https://forum.genieacs.com/u/Torisomay)\
**Post date:** [January 12, 2022, 3:13pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/14 "2022-01-12T15:13:41Z")

</div>

With a list stored in a data base how do i use the ACS to effect the change, although I’m working on a script already.

curl -i ‘[http://localhost:7557/devices/00236a-SR552n-SR552NA084%2D0003269/tasks?timeout=3000&connection\_request](http://localhost:7557/devices/00236a-SR552n-SR552NA084%252D0003269/tasks?timeout=3000&connection_request)’   
-X POST   
–data ‘{“name”: “refreshObject”, “objectName”: “InternetGatewayDevice.WANDevice.1.WANConnectionDevice”}’

This is what it looks like, still in process. Need to get the scrip that can effect the VLAN change after refreshing the object parameter

---

<div class="post-metadata">

**Author:** ![DeepBlueSea](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@DeepBlueSea](https://forum.genieacs.com/u/DeepBlueSea)\
**Post date:** [June 29, 2023, 4:20pm UTC](https://forum.genieacs.com/t/proper-setting-of-preset/2058/15 "2023-06-29T16:20:40Z")

</div>

is it also available support with genieacs version 1.29 node.js version?
