Show the username from a FRITZ!Box (AVM)

Hello,

I’ve created a remote access to a FRITZ!Box 7530. I’ve used this provision script :

const now = Date.now();

declare("InternetGatewayDevice.UserInterface.RemoteAccess.Port",{path:now, value:now},{value:"4550"});
declare("InternetGatewayDevice.UserInterface.RemoteAccess.Enable",{path:now, value:now},{value:"1"});
declare("InternetGatewayDevice.User.1.Enable",{path:now, value:now},{value:"1"});
declare("InternetGatewayDevice.User.1.RemoteAccessCapable",{path:now, value:now},{value:"1"});
declare("InternetGatewayDevice.User.1.Username",{path:now, value:now},{value:"remote_user"});
declare("InternetGatewayDevice.User.1.Password",{path:now, value:now},{value:"remote_pass"});

Everything work like a charm except for the username. When I look in the FRITZ!Box, instead of “remote_user” I have something like “TR069-5e9bf33a”.

I understand it’s the doing of the FRITZ!Box but when I look into the device on GenieACS, parameters show :

“InternetGatewayDevice.User.1.Username : remote_user

Anybody have an idea on how I can get the username shown on the FRITZ!Box (TR069-5e9bf33a).

Thank you.

Refresh the parameter value.

declare("InternetGatewayDevice.User.1.Username",{path:1, value:now});

There is no need for the {path: now} part of the second parameter. Those paths will not change, hence no need to refresh the full path info from the CPE.

Hello akcoder,

Thank you for the time spent helping me with my issue.

Unfortunately, I followed your instructions and refreshed the parameter value, but in GenieACS, the username remains ‘remote_user’, whereas on the FRITZ!Box, the created user is ‘TR069-5e9bf33a’.

Thank you.

This sounds like a device issue, not an ACS issue.