# Provisions: How can I force an GetParameterNames (with nextLevel false) from the root element?

**URL:** <https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211>\
**Category:** Uncategorized\
**Created:** [November 21, 2022, 4:46pm UTC](https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211 "2022-11-21T16:46:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [November 21, 2022, 4:46pm UTC](https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211/1 "2022-11-21T16:46:25Z")

</div>

How can I force an GetParameterNames (with nextLevel false) from the root element?

I would like to list all parameter names of the device to simplify some provision scripts I have, but this come at a great CPU cost with the current declare function.

Currently my solution for this is a change I made to the cwmp server that runs after GenieACS’s provisions pipeline where I can control the acs requests at a low level.

---

<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 21, 2022, 8:05pm UTC](https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211/2 "2022-11-21T20:05:57Z")

</div>

You should only need to refresh the entire data model tree for each new device model. GenieACS will automatically refresh the parts of the data model that it needs.

---

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [November 21, 2022, 8:52pm UTC](https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211/3 "2022-11-21T20:52:17Z")

</div>

Not necessarily. If I want to collect some data periodically from several sub-trees with variable indexes all at once like: **“InternetGatewayDevice.LANDevice.\*.WLANConfiguration.\*.AssociatedDevi\ce.\*.AssociatedDeviceMACAddress”** and **“InternetGatewayDevice.LANDevice.\*.Hosts.Host.\*.MACAddress”** the declare function will do way more requests than whats needed if I want the data and paths must be as much up-to-date as possible. Collecting this data can be accomplished with a **GetParameterName** and a **GetParameterValues** request.

---

<div class="post-metadata">

**Author:** ![Andre\_Driemeyer](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Andre\_Driemeyer](https://forum.genieacs.com/u/Andre_Driemeyer)\
**Post date:** [November 23, 2022, 6:50pm UTC](https://forum.genieacs.com/t/provisions-how-can-i-force-an-getparameternames-with-nextlevel-false-from-the-root-element/3211/4 "2022-11-23T18:50:06Z")

</div>

I manage to create an alternative to provisions script that run after all provisions and tasks are finished. It enables the users to specify the exact AcsRequests they want to make, it consumes very litte cpu usage compared to a similar provision script.

It might be a nice advanced feature to include in the main project.
