Does anybody successfully run the cumulocity lua script
WikI 1st is wrong on current version luci.util and luci.sys doesn’t exist their are vuci. now
As wiki claim
Custom lua scripts can be placed in „/usr/local/usr/lib/lua/cm/“. Application will scan this folder for any *.lua files and load them if they contains „init“ function.
but simple 3 row script
function init()
os.execute(“echo inittest-script-init >> /tmp/cm_test.log”)
end
Could you please confirm that the cumulocity package is installed in the router from the package manager? If not, you can navigate to System → Package manager to install it.
The /usr/local/usr/lib/lua/cm/ directory is created during package installation.
For troubleshooting purposes, we will require more sensitive information from your end, such as the troubleshoot file, which may contain passwords, public IP addresses, serial numbers, and such. To avoid leaking this information, we have sent you a form to fill out, which you will receive in your e-mail inbox that you have registered your account with in the forums. In the Ticket ID field of the form, please enter the ID of this thread, which is 18079.