Hi!
I have GenieAcs server, one device with tr-069 and config for this device.
I can manually send config file from server.
How configurate server to auto send config file for all devices with one type device?
See this question/answer for a solution.
I create new preset
I tryed set events 1 BOOT and 0 BOOTSTRAP
and in provisions write: log(“test log testLoadFile”)
After I reboot device, but not get log.
How need useng events? How get my test log?
1 Like
Sorry, 1 BOOT is work, after I write work example if I can do this
I add in Provosion this code
log("test log testLoadFile1")
let configOrigin = getParameterValue('InternetGatewayDevice.DeviceInfo.X_CLEARACCESS_COM_Origin');
let username = getParameterValue('InternetGatewayDevice.ManagementServer.Username');
log("configOrigin: " + configOrigin)
log("username: " + username)
let file = upgradeFiles[0];
let basePath = "Downloads.[FileType:" + file.type + "]";
log("basePath: " + basePath)
log("file.filename: " + file.filename)
log("file.type: " + file.type)
log("now: " + now)
log("--------------------------------------------------------")
and get errors:
2023-09-22T14:04:45.205Z [WARN] ::ffff:28.1.30.13 000000-LNC%2D2101-65740300A2900003L: Channel has faulted; channel="default" retries=0 faultCode="script.ReferenceError" faultMessage="getParameterValue is not defined"
2023-09-22T14:04:45.205Z [WARN] ::ffff:28.1.30.13 000000-LNC%2D2101-65740300A2900003L: Channel has faulted; channel="inform" retries=0 faultCode="script.ReferenceError" faultMessage="getParameterValue is not defined"
2023-09-22T14:04:45.211Z [WARN] ::ffff:28.1.30.13 000000-LNC%2D2101-65740300A2900003L: Channel has faulted; channel="testLoadFile" retries=0 faultCode="script.ReferenceError" faultMessage="getParameterValue is not defined"
How fix this?
You can fix this by taking the time to understand how GenieACS works instead of just blindly copying and pasting. You can also engage with a paid support contract by emailing sales@genieacs.com.