Execute provision script upon an event reception

I wanted to execute a provision script on every periodic event reception. I see the script executing only once when the CPE is registered newly. I see in cwmp logs that periodic event is received. However, provision script is not getting executed.

Below is the sample content from the provision script.

let version=declare(“InternetGatewayDevice.DeviceInfo.SoftwareVersion”,{value: 1}).value[0];
log("version------> ", version);

Any thoughts why script is not executing?

Without your preset script, no one will be able to help you.


I’ve just added test provision to preset and chose the event.

Are you looking in the correct log file? There are two different log files. genieacs-cwmp.log and genieacs-cwmp-access.log. Different logging goes in the different files.

Sorry for late response. I could see genieacs-cwmp-access.log only getting created. Could not find genieacs-cwmp.log file anywhere. Any inputs if I need to configure some options to get the genieacs-cwmp.log file generated?

It will be specified in the genieacs.env file:

GENIEACS_CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log GENIEACS_CWMP_LOG_FILE=/var/log/genieacs/genieacs-cwmp.log

If the entry does not exist, then create it and restart the CWMP process.

1 Like