# Request default inform script

**URL:** <https://forum.genieacs.com/t/request-default-inform-script/370>\
**Category:** Uncategorized\
**Created:** [October 22, 2019, 8:22am UTC](https://forum.genieacs.com/t/request-default-inform-script/370 "2019-10-22T08:22:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thejoker187](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@Thejoker187](https://forum.genieacs.com/u/Thejoker187)\
**Post date:** [October 22, 2019, 8:22am UTC](https://forum.genieacs.com/t/request-default-inform-script/370/1 "2019-10-22T08:22:29Z")

</div>

Hi everyone, i need the content of the default inform script you find on genieacs on a freash installation, can someone post the content of the file here ?

Thanks a lot

---

<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 22, 2019, 4:02pm UTC](https://forum.genieacs.com/t/request-default-inform-script/370/2 "2019-10-22T16:02:37Z")

</div>

There is no set default “inform” script. This needs to be customized to your needs. And I would argue that you should not be doing much of anything on an inform. Only specific events (boot, bootstrap, diagnostic complete, etc).

---

<div class="post-metadata">

**Author:** ![ianbmacdonald](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ianbmacdonald](https://forum.genieacs.com/u/ianbmacdonald)\
**Post date:** [October 23, 2019, 5:43pm UTC](https://forum.genieacs.com/t/request-default-inform-script/370/3 "2019-10-23T17:43:40Z")

</div>

In the 1.2 beta, there is a ‘default’ provision linked to a ‘default’ preset that is triggered on the “2 PERIODIC” inform. So as akcoder notes, this is not executed on every inform. Its purpose is a bit cleaner parameter refresh, rather than directly on presets used in previous Genieacs versions. Perhaps this is what you meant to be referring to.

It is used to refresh certain parameter values, and we customise this for items we display on our device page (to avoid manually refreshing them), as well as some parameters for scripts (to avoid unecessary ACS requests on script execution over a refresh period when we expect parameter value: [0] should equal value: now).

It looks like the following; not much too it and pretty self explanitory

//log(“Parameter refresh”);

const hourly = Date.now(3600000);  
const daily = Date.now(86400000);

// Refresh basic parameters hourly  
declare(“InternetGatewayDevice.DeviceInfo.HardwareVersion”, {path: daily, value: daily});  
declare(“InternetGatewayDevice.DeviceInfo.SoftwareVersion”, {path: hourly, value: hourly});
