How to get all node?

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

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

I use this script,but not get all node

Because your requesting an invalid data model item.

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

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


When I use this script ,it success