# Why can't the ui interface get the parameters

**URL:** <https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551>\
**Category:** Uncategorized\
**Created:** [March 23, 2021, 2:03am UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551 "2021-03-23T02:03:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sixteen](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sixteen](https://forum.genieacs.com/u/sixteen)\
**Post date:** [March 23, 2021, 2:03am UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551/1 "2021-03-23T02:03:07Z")

</div>

I wrote a script to get the parameters, but I can’t get them, you can see them in the http message.  
my script:  
log(‘refresh’);  
declare(“InternetGatewayDevice._", {path: Date.now(), value: Date.now()});  
declare("InternetGatewayDevice.Services._”,{path: Date.now(), value: Date.now()});  
declare(“Device.Services._", {path: Date.now(), value: Date.now()});  
declare("Device._”, {path: Date.now(), value: Date.now()});  
log(‘end’);  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/1e16e195c04bf967f797218ec278b81c5bc94e1c.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/b720dc51fb9a55f570b8b42125c6cffcd7013ba3.png)  
And I can’t use  
let version=declare(“Device.DeviceInfo.SoftwareVersion”,{value:1}).value[0];  
log(’!!!Softversion:’ + version);  
or  
let soft=declare(“InternetGatewayDevice.DeviceInfo.SoftwareVersion”,{value:1}).value[0];  
log(’!!!InternetGatewayDevice.DeviceInfo.SoftwareVersion:’ + soft);  
get the version information, it will display  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/baeb3cdf05f0a18f92b98dbe9125bece4b63e02d.png)

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [March 23, 2021, 6:07pm UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551/2 "2021-03-23T18:07:16Z")

</div>

Try this:

```auto
let now = Date.now();
declare("InternetGatewayDevice.*", {value: now});
//declare("InternetGatewayDevice.Services.*", {value: now});
//declare("Device.Services.*", {value: now});
declare("Device.*", {value: now});

```

Be aware that doing this on a CPE can be incredibly time and resource intensive. There is a reason that GenieACS no longer refreshes the entire device data model. I would only do this when you are trying to discover the options available on a new CPE model.

There may be options you want to refresh on a less frequent interval. For example, I refresh the DSL stats using this script:

```auto
//log("Refresh_ATM_Stats");
let oneDay = 24 * (60 * 60) * 1000;
let dslRefreshInterval = Date.now() - (oneDay * 1.5);
let statsRefreshInterval = Date.now() - (oneDay * 0.25);

let paramNames = [
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.ModulationType",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.UpstreamCurrRate",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.DownstreamCurrRate",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.UpstreamMaxRate",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.DownstreamMaxRate",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.UpstreamNoiseMargin",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.DownstreamNoiseMargin",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.UpstreamAttenuation",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.DownstreamAttenuation",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.UpstreamPower",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.DownstreamPower",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.LinkEncapsulationUsed",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.LineNumber",
    "InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.X_BROADCOM_COM_BondingLineNumber",
    "Device.DSL.Channel.*.UpstreamCurrRate",
    "Device.DSL.Channel.*.DownstreamCurrRate",
    "Device.DSL.Channel.*.UpstreamMaxBitRate",
    "Device.DSL.Channel.*.DownstreamMaxBitRate",
    "Device.DSL.Channel.*.LinkEncapsulationUsed",
    "Device.DSL.Channel.*.Stats.*.*",
    "Device.DSL.Line.*.UpstreamNoiseMargin",
    "Device.DSL.Line.*.DownstreamNoiseMargin",
    "Device.DSL.Line.*.UpstreamAttenuation",
    "Device.DSL.Line.*.DownstreamAttenuation",
    "Device.DSL.Line.*.UpstreamPower",
    "Device.DSL.Line.*.DownstreamPower",
    "Device.DSL.Line.*.LineNumber",
    "Device.DSL.Line.*.X_ZYXEL_BondingLineNumber",
    "Device.DSL.ChannelNumberOfEntries",
    "Device.DSL.LineNumberOfEntries",
    "VirtualParameters.EstimatedLoopLength"
];

for(let key of paramNames) {
    declare(key, {value: dslRefreshInterval});
}

declare("InternetGatewayDevice.WANDevice.*.WANDSLInterfaceConfig.Stats.*.*", {value: statsRefreshInterval});
declare("Device.DSL.Line.*.Stats.*.*", {value: statsRefreshInterval});
declare("Device.DSL.Channel.*.Stats.*.*", {value: statsRefreshInterval});

```

This script refreshes the stats every 6 hours.

---

<div class="post-metadata">

**Author:** ![pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pierrot](https://forum.genieacs.com/u/pierrot)\
**Post date:** [July 5, 2021, 12:53pm UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551/3 "2021-07-05T12:53:22Z")

</div>

> [@akcoder](#):
>
> `WANDSLInterfaceConfig`

didnt worked any other solution ?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [July 7, 2021, 9:50pm UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551/4 "2021-07-07T21:50:42Z")

</div>

> [@pierrot](#):
>
> didnt worked any other solution ?

Can you be any less specific about whats not working?

---

<div class="post-metadata">

**Author:** ![pierrot](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pierrot](https://forum.genieacs.com/u/pierrot)\
**Post date:** [July 7, 2021, 10:14pm UTC](https://forum.genieacs.com/t/why-cant-the-ui-interface-get-the-parameters/1551/5 "2021-07-07T22:14:46Z")

</div>

I have more than one vendor . some of them worked and showed the correct ip and the others showed 0.0.0.0  
maybe its a vendor issue
