No need to add the refreshObject. It will happen automatically at every boot.
-dan > On May 26, 2015, at 10:42 AM, Don Johnson <[email protected]> > wrote: > > I have been trying to add a minimal device to the MongoDB, just enough fields > so the GenieACS gui doesn't throw some errors, and then adding a > refreshObjects task to the new device. Then when the modem connects it will > read the rest of the fields from the modem itself, which I'm assuming also > updates the redis cache? > > Once the device exists I can add additional tasks to update the configuration > fields on the modem, which will run in the order I add them, so refreshObject > first then update of the fields that have been discovered during the refresh. > > I'm not sure how redis might interfere with that though, but my tests have > not revealed any problems yet. > > Honestly using Mongo and Redis is all new to me anyways, so big learning > curve. > > -Don > > >> On 15-05-25 04:06 PM, Dan Morphis wrote: >> The ability to pre-add a device manually is on the feature request list. >> >> Touching the mongo db can lead to problems because there is a caching layer >> in there - redis. >> >> The way I handle this is a notification fork I did. Genieacs notifies my >> service when an event occurs on a device. I check if that device needs to be >> configured, if so I start pushing config to it. >> >> -dan >> >>> On May 25, 2015, at 10:25 AM, Don Johnson <[email protected]> >>> wrote: >>> >>> Our company has our current ACS (OpenACS) tied to our inventory system so >>> that when we assign a modem to a customer we add the CPE to the ACS's MySQL >>> database. When the customer does their initial bootup of the device it >>> already exists in the ACS with the assigned login, which we add to the >>> modem by a configuration script and a couple database reads. >>> >>> We want to move to GenieACS, but we need to do something similar with our >>> inventory setup. I'd like to be able to add the assigned inventory CPE to >>> the ACS, and then setup a couple tasks to refresh all the objects and >>> update the username and password when the customer boots up. >>> >>> For GenieACS is it possible to add a device through the NBI, or will I need >>> to do this with a MongoDB interaction? >>> >>> -- >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> Don Johnson >>> Internal Systems Developer >>> Uniserve Communications Corp >>> www.uniserve.com >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> >>> The sender intends this message for a specific recipient and, as it may >>> contain information that is privileged or confidential, any use, >>> dissemination, forwarding, or copying by anyone without permission from >>> the sender is prohibited. Personal e-mail may contain views that are not >>> necessarily those of the company. >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.genieacs.com/mailman/listinfo/users >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.genieacs.com/mailman/listinfo/users > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Don Johnson > Internal Systems Developer > Uniserve Communications Corp > Tel: 604-996-8213 > www.uniserve.com > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > The sender intends this message for a specific recipient and, as it may > contain information that is privileged or confidential, any use, > dissemination, forwarding, or copying by anyone without permission from > the sender is prohibited. Personal e-mail may contain views that are not > necessarily those of the company. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
