Database
Dan Morphis
dan at milkcarton.com
Thu Jan 10 11:59:51 EST 2019
Simon is spot on. Writing directly to the Mongo instance is a bad idea.
GenieACS caches information from the db, and if you manipulate the db
directly and don't invalidate the redis cache, then those changes can be
lost. Additionally, writing data to the Mongo DB doesn't update the CPE.
Using provision scripts is the approved way of changing device parameters.
-dan
On Wed, Jan 9, 2019 at 1:58 AM Simon Ryf <simon.ryf at dualstack.ch> wrote:
> Hi Lukas,
>
>
>
> You should not and there is no point in - writing to GenieACS db directly.
>
>
>
> If you would do that. You would write a value and next time you read it
> from the device it would be overwritten.
>
> It would never get pushed to the device.
>
>
>
> If you want to do such things – take a look at provisions. This is the way
> to automatically write values to the device:
>
>
>
> https://github.com/genieacs/genieacs/wiki/Provisions
>
>
>
> br
>
> Simon
>
>
>
>
>
> *From: *Users <users-bounces at lists.genieacs.com> on behalf of Łukasz P <
> peceq83 at gmail.com>
> *Reply-To: *Community support for GenieACS users <users at lists.genieacs.com
> >
> *Date: *Wednesday, 9 January 2019 at 11:45
> *To: *"users at lists.genieacs.com" <users at lists.genieacs.com>
> *Subject: *Database
>
>
>
> Hi there do you have some patterns how write directly in mongo wifi
> password and other parameters. for particular ONU. Unfortunetly this
> version of mongo is not supported yet and i can't use any database client
> for i.e Windows.
>
> Thanks for help and best regards. Lukas
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190110/eeb00f06/attachment.html>
More information about the Users
mailing list