# Custom parameter data not showing up in genieacs

**URL:** <https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613>\
**Category:** Uncategorized\
**Created:** [March 3, 2025, 7:26pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613 "2025-03-03T19:26:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![whaller](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@whaller](https://forum.genieacs.com/u/whaller)\
**Post date:** [March 3, 2025, 7:26pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/1 "2025-03-03T19:26:28Z")

</div>

I’m trying to send the vpn certificate expiry date to genieacs from Mikrotik’s. I have a script on the mikrotik that sends the data in what I believe is the correct date format and can curl the same data to the genieacs api but the data does not show up in genieacs.  
I’ve configured presets:  
curl -X GET [http://10.19.28.16:7557/presets](http://10.19.28.16:7557/presets) (truncated to just show expiredate)  
output:  
{“\_id”:“PersistCertExpiry”,“channel”:“RefreshData”,“weight”:1,“events”:{“2 PERIODIC”:true},“precondition”:“Device.DevicetInfo.Manufacturer = MikroTik”,“configurations”:[{“type”:“provision”,“name”:“refresh”,“args”:[[“PARAM”,“Device.Certificate.client.crt\_0.ExpireDate”]]}]}

send the data manually:  
curl -X POST [http://10.19.28.16:7557/devices/E48D8C-RB2011UiAS-D5220EAE0632/tasks](http://10.19.28.16:7557/devices/E48D8C-RB2011UiAS-D5220EAE0632/tasks) -H “Content-Type: application/json” -d ‘{“name”: “setParameterValues”, “parameterValues”: [[“Device.Certificate.client.crt\_0.ExpireDate”, “2025-03-25T00:00:00Z”]]}’

but when i check mongoDB the data is missing:  
genieacs\> db.devices.findOne({ \_id: “E48D8C-RB2011UiAS-D5220EAE0632” }, { “Device.Certificate.client.crt\_0.ExpireDate”: 1 })  
output blank:  
{ \_id: ‘E48D8C-RB2011UiAS-D5220EAE0632’, Device: {} }

appreciate anyone pointing me in the right direction.  
Thanks

---

<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:** [March 3, 2025, 8:17pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/2 "2025-03-03T20:17:21Z")

</div>

Does `Device.Certificate.client.crt_0.ExpireDate` exist in the parameter list for the given CPE?

---

<div class="post-metadata">

**Author:** ![whaller](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@whaller](https://forum.genieacs.com/u/whaller)\
**Post date:** [March 3, 2025, 9:25pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/3 "2025-03-03T21:25:20Z")

</div>

no. when I look at devices → parameter and do a refresh it doesn’t appear. i have it defined in the UI Admin under Presets, Provisions and even in the Config sections. example:

| ui.device.2.parameters.15.label | Cert Expire |
| --- | --- |
| ui.device.2.parameters.15.parameter | Device.Certificate.client.crt\_0.ExpireDate |

---

<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:** [March 3, 2025, 10:04pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/4 "2025-03-03T22:04:50Z")

</div>

Thats not how any of this works 😀. You can’t just “create” CPE parameters like that.

Can you please distill down what you are trying to accomplish. Then I can hopefully help you find a path to achieve that goal.

---

<div class="post-metadata">

**Author:** ![whaller](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@whaller](https://forum.genieacs.com/u/whaller)\
**Post date:** [March 3, 2025, 10:25pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/5 "2025-03-03T22:25:06Z")

</div>

😊 trying to collect vpn cert expiry date from all the infield Mikrotik Routers to be able to report and update them when required. hence why we’re trying to get it into genieacs  
Should it follow the vendor format like other parameters? example:  
Device.X\_MIKROTIK\_CertExpiry

---

<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:** [March 3, 2025, 10:37pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/6 "2025-03-03T22:37:14Z")

</div>

**You** CANNOT create parameters under Device. Full stop. Those values **all** come from the CPE.

You need to use a [vparam](https://docs.genieacs.com/en/latest/virtual-parameters.html).

Here is the code for a non-parameter backed vparam.

```auto
let value;

log('My VParam', args);
if ("value" in args[1]) {
    // Set declared value
    value = args[1].value;
} else if ("value" in args[3]) {
    // No declared value, keep current value
    value = args[3].value;
} else {
    // No current value, use default
    value = ['{}', 'xsd:string'];
}

return {writable: true, value: value};

```

The SPV stays almost the same  
`curl -X POST http://10.19.28.16:7557/devices/E48D8C-RB2011UiAS-D5220EAE0632/tasks -H “Content-Type: application/json” -d ‘{“name”: “setParameterValues”, “parameterValues”: [[“VirtualParameters.CertExpireDate”, “2025-03-25T00:00:00Z”]]}’`

---

<div class="post-metadata">

**Author:** ![whaller](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@whaller](https://forum.genieacs.com/u/whaller)\
**Post date:** [March 5, 2025, 7:48pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/7 "2025-03-05T19:48:00Z")

</div>

Thanks for the direction. I’m now able to push the certificate expiry time to Genieacs.

---

<div class="post-metadata">

**Author:** ![whaller](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@whaller](https://forum.genieacs.com/u/whaller)\
**Post date:** [March 24, 2025, 9:34pm UTC](https://forum.genieacs.com/t/custom-parameter-data-not-showing-up-in-genieacs/6613/8 "2025-03-24T21:34:36Z")

</div>

follow-up. my environment wasn’t saved ☹ I’ve recreated the virtual parameter and pushed a ‘expiry date’. I see the task being processed but again, not showing up in mongo db. what needs to ensure it’s persistent?
