Presets...

Manny Veloso manny.veloso at smartrg.com
Wed Jan 14 16:10:20 EST 2015


Presets live in mongo, in the presets collection. You can actually generate presets directly in mongo.

Question: I haven’t looked (and my instance is down right now), but does GenieACs do that refreshObject on every inform?
--
Manny Veloso
Sr. Solutions Engineer
Smartrg.com

From: Christopher Chance <cchance at newtechgrp.com<mailto:cchance at newtechgrp.com>>
Reply-To: Community support for GenieACS users <users at lists.genieacs.com<mailto:users at lists.genieacs.com>>
Date: Wednesday, January 14, 2015 at 12:46 PM
To: Community support for GenieACS users <users at lists.genieacs.com<mailto:users at lists.genieacs.com>>
Subject: RE: Presets...

Ok just checking so even if after I setup a preset I never ever go back to the GUI, genieacs-cwmp will still be using the presets that are setup in genieacs-gui.

The thing that has me a bit confused is because they’re completely separate projects, I mean if you weren’t to install the gui and just use the system via the NBI API, theres no “config” for presets in the genieacs project. Which is where I am confused at. :S

From: Users [mailto:users-bounces at lists.genieacs.com] On Behalf Of Dan Morphis
Sent: Wednesday, January 14, 2015 4:44 PM
To: Community support for GenieACS users
Subject: Re: Presets...

Here is how presets work. Say you have a preset setting the InternetGatewayDevice.ManagementServer.PeriodicInformInterval to 30 seconds. When the CPE first contacts GenieACS, it sends a few bits of information about itself. The next thing Genie does is send a refreshObject: "", which refreshes the entire object model. When the CPE sends the data back to genie, it then compares the values it got back to what the preset is.

If the value from the CPE for InternetGatewayDevice.ManagementServer.PeriodicInformInterval is not 30, then GenieACS will send a setParameterValue for InternetGatewayDevice.ManagementServer.PeriodicInformInterval: 30.

If you tell GenieACS to set the InternetGatewayDevice.ManagementServer.PeriodicInformInterval on a CPE to say 31 seconds. Genie will tell the CPE to set it to 31 seconds. Then, Genie will tell the CPE to set it back to 30. Ask me how I know :).

To answer the other part of your question, the GUI is getting/setting the presets in GenieACS. Not the other way around.

Custom commands allow you to do something special for your CPE. Things that you might not be able to do via TR[069|098|etc].

-dan

On Wed, Jan 14, 2015 at 11:31 AM, Christopher Chance <cchance at newtechgrp.com<mailto:cchance at newtechgrp.com>> wrote:
I know what presets do if condition = met then configurations = happen

But isn’t the presets part of the GUI Portion of genieacs? Wouldn’t it have to be part of the genieacs package to perform the precondition check on each inform? Or is the genieacs reaching across to the genieacs-gui package to check the presets?

Or are presets only working when a device is opened in the genieacs-gui (which seems counter intuitive to what the presets are supposed to be doing).

That all said how do the presets compare to the “custom-commands” on the genieacs side of things? (I mean I see theirs a greenpacket custom that appears to check/mess with the frequencies via telnet, but why not just do that via a preset through tr69?.

Am I missing something?

Chris

_______________________________________________
Users mailing list
Users at lists.genieacs.com<mailto: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/20150114/30a8a71c/attachment-0001.html>


More information about the Users mailing list