Changing values using Provision - Inform

Hi, I want to change the device Periodic Inform Interval(s) from a default of 360, and device’s admin and password to some other value when the device is connected to the server, I tried the following in provision inform but it still did not work.
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformInterval.21800”, {path: now}, {path: 1});
Can anyone please suggest me here?

Hi jekyll,

Your declare is incorrect. The correct declare are like this:

const now = Date.Now();

declare("InternetGatewayDevice.ManagementServer.PeriodicInformInterval", {value:now}, {value:"21800"});

To change device login credentials, depends so much of device vendor. Not all models have the same path to change this values.

For example, Huawei devices have their values are aunder this paths:

InternetGatewayDevice.UserInterface.X_HW_CLIUserInfo
InternetGatewayDevice.UserInterface.X_HW_WebUserInfo

Regards

Thanks, will try.