Provision to read all parameters of the devices

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

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

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

Att

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.

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?