# Provision to read all parameters of the devices

**URL:** <https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431>\
**Category:** Uncategorized\
**Created:** [November 7, 2019, 1:35pm UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431 "2019-11-07T13:35:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![japoninja](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@japoninja](https://forum.genieacs.com/u/japoninja)\
**Post date:** [November 7, 2019, 1:35pm UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431/1 "2019-11-07T13:35:27Z")

</div>

Hello there,

I’m trying to read all data from my CPE’s when they comunicate with the cwmp.  
To do this I’m trying this provision:  
declare(“InternetGatewayDevice.\*”, {value: Date.now()});

But it’s not working.  
Any ideas?  
Thanks

---

<div class="post-metadata">

**Author:** ![encarta](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@encarta](https://forum.genieacs.com/u/encarta)\
**Post date:** [November 10, 2019, 11:51pm UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431/2 "2019-11-10T23:51:08Z")

</div>

Do you see any error and other information in the log file ?

---

<div class="post-metadata">

**Author:** ![japoninja](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@japoninja](https://forum.genieacs.com/u/japoninja)\
**Post date:** [November 11, 2019, 12:15pm UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431/3 "2019-11-11T12:15:02Z")

</div>

I see some invalid sessions there, but when I try the same provision to one specific device it works fine…

Att

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [November 12, 2019, 6:11am UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431/4 "2019-11-12T06:11:53Z")

</div>

> [@japoninja](#):
>
> declare(“InternetGatewayDevice.\*”, {value: Date.now()});

This will only read the immediate parameters under ‘InternetGatewayDevice’. You need:

```
declare(“InternetGatewayDevice.*”, {path: Date.now(), value: Date.now()});
declare(“InternetGatewayDevice.*.*”, {path: Date.now(), value: Date.now()});
declare(“InternetGatewayDevice.*.*.*”, {path: Date.now(), value: Date.now()});
...

```

But you probably shouldn’t do that. Fetch only what you need.

---

<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:** [November 12, 2019, 5:57pm UTC](https://forum.genieacs.com/t/provision-to-read-all-parameters-of-the-devices/431/5 "2019-11-12T17:57:59Z")

</div>

Going along with what @zaidka said. The only reason I refresh the top level node is in development when I’m trying to see everything the CPE supports. And in that case I refresh the top level node from within the GUI and wait for it to grind away.

In production, I never refresh the entire device parameter model. 95% of the data I won’t ever care about, so why put the extra load on the CPE to respond to the GPN/GPV requests, on Mongo to store all that data, and Redis to cache it?
