# How to get all node?

**URL:** <https://forum.genieacs.com/t/how-to-get-all-node/132>\
**Category:** Uncategorized\
**Created:** [June 6, 2019, 6:08am UTC](https://forum.genieacs.com/t/how-to-get-all-node/132 "2019-06-06T06:08:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [June 6, 2019, 6:08am UTC](https://forum.genieacs.com/t/how-to-get-all-node/132/1 "2019-06-06T06:08:37Z")

</div>

How to get all node?  
when I use this provision’  
const now = Date.now();  
declare(“InternetGatewayDeviceInternetGatewayDevice”, {value: now});

I get some node,but Some node seem not my CPE ,and some Node in CPE is not get,  
what’s the correct script for get all node from the CPE

---

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [June 11, 2019, 3:26am UTC](https://forum.genieacs.com/t/how-to-get-all-node/132/2 "2019-06-11T03:26:33Z")

</div>

const now = Date.now();  
declare(“InternetGatewayDeviceInternetGatewayDevice”, {value: now});

I use this script,but not get all node

---

<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:** [June 11, 2019, 5:50pm UTC](https://forum.genieacs.com/t/how-to-get-all-node/132/3 "2019-06-11T17:50:26Z")

</div>

Because your requesting an invalid data model item.

```
const now = Date.now();
declare("InternetGatewayDevice.*", {value: now, path: now});
```

---

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [June 12, 2019, 1:27am UTC](https://forum.genieacs.com/t/how-to-get-all-node/132/4 "2019-06-12T01:27:17Z")

</div>

Hi,akcoder  
When I use your script,same result,Only get part nodes

---

<div class="post-metadata">

**Author:** ![zzz](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zzz](https://forum.genieacs.com/u/zzz)\
**Post date:** [June 12, 2019, 10:35am UTC](https://forum.genieacs.com/t/how-to-get-all-node/132/7 "2019-06-12T10:35:01Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/2ea7edaf63b7a71411fc8899a815fc2ceb3f043a.png)  
When I use this script ,it success
