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
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
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).
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});