# Starting with TR 069

**URL:** <https://forum.genieacs.com/t/starting-with-tr-069/6158>\
**Category:** Uncategorized\
**Created:** [November 12, 2024, 3:52pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158 "2024-11-12T15:52:00Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 15, 2024, 6:40pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/21 "2024-11-15T18:40:58Z")

</div>

It seems like you are not using the default inform script. The connection request username and password are set by the inform script.

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 15, 2024, 6:41pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/22 "2024-11-15T18:41:17Z")

</div>

You can comment off this in your script.

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 15, 2024, 7:01pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/23 "2024-11-15T19:01:24Z")

</div>

And how to applay the default script?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/3/3f760ad4337e129324520772cd7edb5c1f3d9c14.png)

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 15, 2024, 7:12pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/24 "2024-11-15T19:12:46Z")

</div>

Click on Provisions.  
You should see three scripts there: bootstrap, default and inform.

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 15, 2024, 7:55pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/25 "2024-11-15T19:55:29Z")

</div>

Yes, ther are.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/a/a4c4aa63873d8d781062b8d0767fd2b39b91fb6f.png)

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 15, 2024, 8:00pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/26 "2024-11-15T20:00:09Z")

</div>

**This is de code of inform**

// Device ID as user name  
const username = declare(“DeviceID.ID”, {value: 1}).value[0]

// Password will be fixed for a given device because Math.random() is seeded with device ID by default.  
const password = Math.trunc(Math.random() \* Number.MAX\_SAFE\_INTEGER).toString(36);

const informInterval = 300;

// Refresh values daily  
const daily = Date.now(86400000);

// Unique inform offset per device for better load distribution  
const informTime = daily % 86400000;

declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“InternetGatewayDevice.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“InternetGatewayDevice.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

declare(“Device.ManagementServer.ConnectionRequestUsername”, {value: daily}, {value: username});  
declare(“Device.ManagementServer.ConnectionRequestPassword”, {value: daily}, {value: password});  
declare(“Device.ManagementServer.PeriodicInformEnable”, {value: daily}, {value: true});  
declare(“Device.ManagementServer.PeriodicInformInterval”, {value: daily}, {value: informInterval});  
declare(“Device.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 15, 2024, 8:06pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/27 "2024-11-15T20:06:40Z")

</div>

You can comment off the PeriodicInformTime statement in the Inform script to prevent the error above.

Delete the device again and reboot the device.  
Allow it to register again.

Then check to see if the connection request username and password gets changed.

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 12:07am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/28 "2024-11-16T00:07:26Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/3/395e89a67e4d3382b9fe485fadecd7db48f43b92.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/3/362dae05b93b6ae07660db19d478eb89b98cbda3.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/7/7f425a32c9f9e9aa16b5bb3524225cc24d7c73d7.png)

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 16, 2024, 12:56am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/29 "2024-11-16T00:56:19Z")

</div>

Two things:

1. comment this line:  
//declare(“InternetGatewayDevice.ManagementServer.PeriodicInformTime”, {value: daily}, {value: informTime});  
Delete the device and reboot it.

2. Does all of those “Incorrect connection request credentials” pop up on their own?

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 1:44am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/30 "2024-11-16T01:44:48Z")

</div>

1. 

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/5/5fc65bef2e18fb9829e7791098f23bb5b87156c2.png)

I delete the ont in the ACS and restart ont

It doesn’t work, the same connection error with the ont

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/4/44d8c1d11a453c3cce68d94c65514a88e47b84f1.png)

1. No, it only appears once, it’s just me with a lot of anger clicking on summon (Initiate session and refresh basic parameters) a lot

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 16, 2024, 2:09am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/31 "2024-11-16T02:09:07Z")

</div>

Something is still wrong as the InformTime fault should not be present if you commented off the declare statement.

Did you add anything else in Admin\>Config?  
Do you have any faults in the Faults tab?

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 3:01am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/32 "2024-11-16T03:01:40Z")

</div>

> [@dustin](#):
>
> Did you add anything else in Admin\>Config?

Nothing  
These are the lines of code I have

| ui.device.0.type | ‘tags’ |
| --- | --- |
| ui.device.1.type | ‘ping’ |
| ui.device.2.parameters.0.components.0.type | ‘parameter’ |
| ui.device.2.parameters.0.components.1.chart | ‘online’ |
| ui.device.2.parameters.0.components.1.type | ‘overview-dot’ |
| ui.device.2.parameters.0.components.2.parameters.0 | InternetGatewayDevice.DeviceInfo.HardwareVersion |
| ui.device.2.parameters.0.components.2.parameters.1 | InternetGatewayDevice.DeviceInfo.SoftwareVersion |
| ui.device.2.parameters.0.components.2.parameters.2 | InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANIPConnection.\*.MACAddress |
| ui.device.2.parameters.0.components.2.parameters.3 | InternetGatewayDevice.WANDevice._.WANConnectionDevice._.WANIPConnection.\*.ExternalIPAddress |
| ui.device.2.parameters.0.components.2.parameters.4 | InternetGatewayDevice.LANDevice._.WLANConfiguration._.SSID |
| ui.device.2.parameters.0.components.2.parameters.5 | InternetGatewayDevice.LANDevice._.WLANConfiguration._.KeyPassphrase |
| ui.device.2.parameters.0.components.2.parameters.6 | InternetGatewayDevice.LANDevice._.Hosts.Host._.HostName |
| ui.device.2.parameters.0.components.2.parameters.7 | InternetGatewayDevice.LANDevice._.Hosts.Host._.IPAddress |
| ui.device.2.parameters.0.components.2.parameters.8 | InternetGatewayDevice.LANDevice._.Hosts.Host._.MACAddress |
| ui.device.2.parameters.0.components.2.type | ‘summon-button’ |
| ui.device.2.parameters.0.element | ‘span.inform’ |
| ui.device.2.parameters.0.label | ‘Last inform’ |
| ui.device.2.parameters.0.parameter | DATE\_STRING(Events.Inform) |
| ui.device.2.parameters.0.type | ‘container’ |
| ui.device.2.parameters.1.label | ‘Serial number’ |
| ui.device.2.parameters.1.parameter | DeviceID.SerialNumber |
| ui.device.2.parameters.10.label | ‘WLAN passphrase’ |
| ui.device.2.parameters.10.parameter | InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.KeyPassphrase |
| ui.device.2.parameters.2.label | ‘Product class’ |
| ui.device.2.parameters.2.parameter | DeviceID.ProductClass |
| ui.device.2.parameters.3.label | ‘OUI’ |
| ui.device.2.parameters.3.parameter | DeviceID.OUI |
| ui.device.2.parameters.4.label | ‘Manufacturer’ |
| ui.device.2.parameters.4.parameter | DeviceID.Manufacturer |
| ui.device.2.parameters.5.label | ‘Hardware version’ |
| ui.device.2.parameters.5.parameter | InternetGatewayDevice.DeviceInfo.HardwareVersion |
| ui.device.2.parameters.6.label | ‘Software version’ |
| ui.device.2.parameters.6.parameter | InternetGatewayDevice.DeviceInfo.SoftwareVersion |
| ui.device.2.parameters.7.label | ‘MAC’ |
| ui.device.2.parameters.7.parameter | InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress |
| ui.device.2.parameters.8.label | ‘IP’ |
| ui.device.2.parameters.8.parameter | InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress |
| ui.device.2.parameters.9.label | ‘WLAN SSID’ |
| ui.device.2.parameters.9.parameter | InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID |
| ui.device.2.type | ‘parameter-list’ |
| ui.device.3.childParameters.0.label | ‘Host name’ |
| ui.device.3.childParameters.0.parameter | HostName |
| ui.device.3.childParameters.1.label | ‘IP address’ |
| ui.device.3.childParameters.1.parameter | IPAddress |
| ui.device.3.childParameters.2.label | ‘MAC address’ |
| ui.device.3.childParameters.2.parameter | MACAddress |
| ui.device.3.label | ‘LAN hosts’ |
| ui.device.3.parameter | InternetGatewayDevice.LANDevice.1.Hosts.Host |
| ui.device.3.type | ‘parameter-table’ |
| ui.device.4.components.0.components.0 | ‘Faults’ |
| ui.device.4.components.0.element | ‘h3’ |
| ui.device.4.components.0.type | ‘container’ |
| ui.device.4.components.1.type | ‘device-faults’ |
| ui.device.4.element | ‘div’ |
| ui.device.4.type | ‘container’ |
| ui.device.5.components.0.components.0 | ‘All parameters’ |
| ui.device.5.components.0.element | ‘h3’ |
| ui.device.5.components.0.type | ‘container’ |
| ui.device.5.components.1.type | ‘all-parameters’ |
| ui.device.5.element | ‘div.container-full-width’ |
| ui.device.5.type | ‘container’ |
| ui.device.6.type | ‘device-actions’ |
| ui.filters.0.label | ‘Serial number’ |
| ui.filters.0.parameter | DeviceID.SerialNumber |
| ui.filters.0.type | ‘string’ |
| ui.filters.1.label | ‘Product class’ |
| ui.filters.1.parameter | DeviceID.ProductClass |
| ui.filters.1.type | ‘string’ |
| ui.filters.2.label | ‘Tag’ |
| ui.filters.2.type | ‘tag’ |
| ui.index.0.components.0.type | ‘parameter’ |
| ui.index.0.label | ‘Serial number’ |
| ui.index.0.parameter | DeviceID.SerialNumber |
| ui.index.0.type | ‘device-link’ |
| ui.index.1.label | ‘Product class’ |
| ui.index.1.parameter | DeviceID.ProductClass |
| ui.index.2.label | ‘Software version’ |
| ui.index.2.parameter | InternetGatewayDevice.DeviceInfo.SoftwareVersion |
| ui.index.3.label | ‘IP’ |
| ui.index.3.parameter | InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress |
| ui.index.4.label | ‘SSID’ |
| ui.index.4.parameter | InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID |
| ui.index.5.label | ‘SSID2’ |
| ui.index.5.parameter | InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.SSID |
| ui.index.6.components.0.type | ‘parameter’ |
| ui.index.6.components.1.chart | ‘online’ |
| ui.index.6.components.1.type | ‘overview-dot’ |
| ui.index.6.element | ‘span.inform’ |
| ui.index.6.label | ‘Last inform’ |
| ui.index.6.parameter | DATE\_STRING(Events.Inform) |
| ui.index.6.type | ‘container’ |
| ui.index.7.label | ‘Tags’ |
| ui.index.7.parameter | Tags |
| ui.index.7.type | ‘tags’ |
| ui.index.7.unsortable | true |
| ui.index.7.writable | false |
| ui.overview.charts.online.label | ‘Online status’ |
| ui.overview.charts.online.slices.1\_onlineNow.color | ‘#31a354’ |
| ui.overview.charts.online.slices.1\_onlineNow.filter | Events.Inform \> NOW() - 5 \* 60 \* 1000 |
| ui.overview.charts.online.slices.1\_onlineNow.label | ‘Online now’ |
| ui.overview.charts.online.slices.2\_past24.color | ‘#a1d99b’ |
| ui.overview.charts.online.slices.2\_past24.filter | Events.Inform \> (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) AND Events.Inform \< (NOW() - 5 \* 60 \* 1000) |
| ui.overview.charts.online.slices.2\_past24.label | ‘Past 24 hours’ |
| ui.overview.charts.online.slices.3\_others.color | ‘#e5f5e0’ |
| ui.overview.charts.online.slices.3\_others.filter | Events.Inform \< (NOW() - 5 \* 60 \* 1000) - (24 \* 60 \* 60 \* 1000) |
| ui.overview.charts.online.slices.3\_others.label | ‘Others’ |
| ui.overview.groups.online.charts.0 | ‘online’ |
| ui.overview.groups.online.label | ‘’ |

> [@dustin](#):
>
> Do you have any faults in the Faults tab?

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/2/240db93fce6f8b1c7cb7443cec22245acf5608c2.png)

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 16, 2024, 3:31am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/33 "2024-11-16T03:31:14Z")

</div>

It’s safe to delete those faults as they’re related to the InformTime action that you commented off.

Do any of the other devices have the same Connection Request error?

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 4:03am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/34 "2024-11-16T04:03:13Z")

</div>

2 ONTs for now, both ZTE.  
Im going to probe with C-Data and Huawei

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 5:29pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/35 "2024-11-16T17:29:36Z")

</div>

Test with C-Data work find

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/a/afcb212344b34dc61c85eb69b5bcf70b14d525b3.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/1/130e6849f3882f89abf5e81c56d30873ac354dcb.png)

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 5:52pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/36 "2024-11-16T17:52:58Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/0/0d2739b09f5ac950b5774eec39ae3e01ce716ec4.png)

This is the configuracion that de ACS read from ONT

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 16, 2024, 8:01pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/37 "2024-11-16T20:01:04Z")

</div>

As you can see, in the ZTE, the parameters of:

- InternetGatewayDevice.ManagementServer.URL
- InternetGatewayDevice.ManagementServer.Username
- InternetGatewayDevice.ManagementServer.Password

It is not reading them from the ONT, therefore, the ONT can communicate with the ACS but the ACS does not know how to reach it to make changes

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/8/8b7d918ca0263ef139635b28e486542fa39ffc8d.png)

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 16, 2024, 9:22pm UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/38 "2024-11-16T21:22:10Z")

</div>

The ACS uses the ConnectionRequestUsername, ConnectionRequestPassword and ConnectionRequestURL to communicate with the device.  
When you click summon, those are used, not the ManagementServerURL.

It also shows that your ACS is not changing the ConnectionRequestUsername and ConnectionRequestPassword. Either your device is blocking it or one of your scripts are incorrect.

---

<div class="post-metadata">

**Author:** ![ahv800](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@ahv800](https://forum.genieacs.com/u/ahv800)\
**Post date:** [November 17, 2024, 12:25am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/39 "2024-11-17T00:25:27Z")

</div>

> [@dustin](#):
>
> The ACS uses the ConnectionRequestUsername, ConnectionRequestPassword and ConnectionRequestURL to communicate with the device.  
> When you click summon, those are used, not the ManagementServerURL.

That is correct, the ACS uses the data sent by the ONT in the first connection with the ACS server, where it sends the 3 parameters necessary for the connection, to itself (ONT).

- InternetGatewayDevice.ManagementServer.ConnectionRequestPassword
- InternetGatewayDevice.ManagementServer.ConnectionRequestURL
- InternetGatewayDevice.ManagementServer.ConnectionRequestUsername

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/b/be8a326a15e5793887763aab49a72ed3ade3654c.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/5/59a0dc71651125cbae8554d73b612ae7410dd861.png)

For the connection to work, on the ONT I had to delete the Connection Request Password

---

<div class="post-metadata">

**Author:** ![dustin](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dustin](https://forum.genieacs.com/u/dustin)\
**Post date:** [November 17, 2024, 12:48am UTC](https://forum.genieacs.com/t/starting-with-tr-069/6158/40 "2024-11-17T00:48:50Z")

</div>

Ok. Progress.

What fault is that shown in the screenshot?

[Previous page](https://forum.genieacs.com/t/starting-with-tr-069/6158.md?page=1)

[Next page](https://forum.genieacs.com/t/starting-with-tr-069/6158.md?page=3)
