# Can't seem to correctly create or display virtual parameters

**URL:** <https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339>\
**Category:** Uncategorized\
**Created:** [December 27, 2024, 12:07am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339 "2024-12-27T00:07:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 12:07am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/1 "2024-12-27T00:07:14Z")

</div>

Hello, I’m tying to create a virtual parameter using the unified MAC address example at the docs.

Ideally, I would want that virtual parameter to appear on the parameter list for all my devices without further trouble, but apparently it only appears on the parameter list after being fetched by a preset. So, I created a provision that declares the virtual parameter and a preset that is supposed to execute the provision for all devices when the server boots.

---

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 12:07am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/2 "2024-12-27T00:07:46Z")

</div>

This is the virtual parameter:

 ![Screenshot from 2024-12-26 18-54-11](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/9/9aae960d7fa2c496e1c3425bde0c781b6f699946.png)

---

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 12:08am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/3 "2024-12-27T00:08:25Z")

</div>

this is the provision:

 ![Screenshot from 2024-12-26 18-54-30](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/e/e416dbb5d51e85edf49f065457d93210a0210ff3.png)

---

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 12:09am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/4 "2024-12-27T00:09:01Z")

</div>

and this is the preset:

 ![Screenshot from 2024-12-26 18-54-54](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/3/32cb65a8deed4199f0c3d9244cd6dfeb885f29d6.png)

What am I doing wrong?

---

<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:** [December 27, 2024, 12:18am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/5 "2024-12-27T00:18:40Z")

</div>

You have the preset configured to only run on `1 BOOT` event. That means the preset will only run the provision script on boot of the CPE. Is that what you want? For testing purposes, I usually leave the events field blank.

Also, there is no need for a `true` precondition.

---

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 12:21am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/6 "2024-12-27T00:21:23Z")

</div>

What I’d want is to run the provision script on demand, but skimming through the forum gave me the impression that I can’t. If I leave the event field blank, will the provision script be executed instantly?

---

<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:** [December 27, 2024, 12:40am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/7 "2024-12-27T00:40:21Z")

</div>

The event field is used to tell GenieACS which events you want to trigger the particular preset.

So if you enter `1 BOOT` then the preset will **only** run when the CPE sends a `1 BOOT` event. If you’d like the preset to run every time (for something like this, I recommend running it **only** on boot, as the MAC address should not change), then you need to leave the event field empty.

---

<div class="post-metadata">

**Author:** ![jojusuar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/jojusuar/32/2223_2.png) [@jojusuar](https://forum.genieacs.com/u/jojusuar)\
**Post date:** [December 27, 2024, 1:29am UTC](https://forum.genieacs.com/t/cant-seem-to-correctly-create-or-display-virtual-parameters/6339/8 "2024-12-27T01:29:33Z")

</div>

Thanks for your help, the virtual parameter now appears in all my devices. Now, I’ll replace the MAC logic with a normalized IP address logic (what I actually set out to do), reboot the server and change the preset trigger event to 1 BOOT again.
