Presets in GenieACS
Jose Vela Delgado
josevelacisco at gmail.com
Thu Feb 9 17:43:03 EST 2017
Hi, Zaid.
1. I have created the provision (called config_defult) that you have
written to me,
declare("Downloads.[FileType:3 Vendor Configuration File]",
{path: 1}, {path: 1});
declare("Downloads.[FileType:3 Vendor Configuration File].FileName",
{value: 1}, {value: "hw_ctree.xml"});
declare("Downloads.[FileType:3 Vendor Configuration File].Download",
{value: 1}, {value: Date.now()});
2. I have created a preset, with an event called 1 BOOT and I have
associated it with that provision,
Name
Channel
Weight
Schedule
Events
Precondition
Tag = ≠ < ≤ > ≥ x
<https://mailtrack.io/trace/link/70d306a1b4842e50e8302009a4301a0e58293bda?url=http%3A%2F%2F192.168.200.63%3A3000%2Fpresets%2Fconfig_default%2Fedit%23&signature=625a7f31dc491edc>
+
<https://mailtrack.io/trace/link/70d306a1b4842e50e8302009a4301a0e58293bda?url=http%3A%2F%2F192.168.200.63%3A3000%2Fpresets%2Fconfig_default%2Fedit%23&signature=625a7f31dc491edc>
Configurations
Provision name:
3. I have uploaded the file in the FILES tab and in the file
/app/config.json I have put the IP in FS_IP of GenieACS itself, which is,
in theory, where the file is hosted.
Showing 1 files
NameTypeOUIProduct classVersion
hw_ctree.xml 3 Vendor Configuration File 00259E HG8546M V3R016C10S130
{
"MONGODB_CONNECTION_URL" : "mongodb://mongo:27017/genieacs",
"REDIS_PORT" : "6379",
"REDIS_HOST" : "redis",
"CWMP_INTERFACE" : "0.0.0.0",
"CWMP_PORT" : 7547,
"CWMP_SSL" : false,
"NBI_INTERFACE" : "0.0.0.0",
"NBI_PORT" : 7557,
"FS_INTERFACE" : "0.0.0.0",
"FS_PORT" : 7567,
"FS_IP" : "192.168.200.63:6169",
"LOG_INFORMS" : true,
"DEBUG" : false
}
But the CPE does not download anything. Running a Wireshark I see that the
CPE only sends packets to GenieACS with event 2 PERIODIC, but I do not see
that it makes GET requests to download the .xml file
What have I misconfigured?
Where exactly is the .xml file I uploaded to GenieACS?
Thanks in advance.
Jose Vela
*Técnico de Networking Routing y Switching.*
Mira mi perfil profesional y conecta conmigo en LinkedIn pinchando en este
enlace.
<https://mailtrack.io/trace/link/0710d900159a21846513ef338f54dfbefe71f9a8?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&signature=898acf0a08f52131>
2017-01-28 1:55 GMT+01:00 Zaid Abdulla <zaid at genieacs.com>:
> On Thu, 2017-01-26 at 13:54 +0100, Jose Vela Delgado wrote:
> > I would like someone to explain how to configure Presets in the
> > GenieACS. For example, I want when a CPE is rebooted it auto-
> > downloads an XML configuration file. What do I have to put in the
> > fields on the Presets tab?
>
> I'll try to add some documentation in the wiki over the weekend. But
> for now this is how you should be able to do it (not tested):
>
> Create a "provision" with the following code:
>
> declare("Downloads.[FileType:3 Vendor Configuration File]",
> {path: 1}, {path: 1});
> declare("Downloads.[FileType:3 Vendor Configuration File].FileName",
> {value: 1}, {value: "<YOUR CONFIG FILE>"});
> declare("Downloads.[FileType:3 Vendor Configuration File].Download",
> {value: 1}, {value: Date.now()});
>
> Then create a preset that's tied to the event "1_BOOT" and apply the
> provision you just created.
>
> Make sure the file is uploaded to GenieACS and that the config option
> FS_IP is set to your server's IP address.
>
> Hope that helps.
>
> --
> Zaid Abdulla <zaid at genieacs.com>
> _______________________________________________
> 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/20170209/a3f32990/attachment.html>
More information about the Users
mailing list