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 <[email protected]> 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 <[email protected]> on behalf of Łukasz P < > [email protected]> > *Reply-To: *Community support for GenieACS users <[email protected] > > > *Date: *Wednesday, 9 January 2019 at 11:45 > *To: *"[email protected]" <[email protected]> > *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 > [email protected] > http://lists.genieacs.com/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
