Debug CPE

noc@gibfibrespeed.net mberniz at gibfibrespeed.net
Wed Nov 23 07:06:13 EST 2016


Thank you very much Pavel, 

I had to be using an old syntax. 

Regards, 

Miguel 



----- Original Message -----

From: "Pavel Mracek" <mracek at poda.cz> 
To: "Community support for GenieACS users" <users at lists.genieacs.com> 
Sent: Thursday, 3 November, 2016 12:30:04 PM 
Subject: Re: Debug CPE 

>From source code: 

cwmp.coffe: 
if config.get('DEBUG', currentRequest.sessionData.deviceId) 
dump = "# RESPONSE #{new Date(Date.now())}\n" + 
JSON.stringify(res.headers) + "\n#{res.data}\n\n" 

require('fs').appendFile("./debug/#{currentRequest.sessionData.deviceId}.dump", 
dump, (err) -> 
throw err if err 
) 

config.js: 
get = function(option, deviceId) { 
var i, name; 
if (deviceId != null) { 
name = option + "-" + deviceId; 
v = allConfig[name]; 
if (v != null) { 
return v; 
} 


And if I try add this into ./config.json 
"DEBUG-00259E-HG8245H-485754436CEF2C2E" : true, 

after restart and some connection from CPE found debug file in: 
./debug/00259E-HG8245H-485754436CEF2C2E.dump 


m. 


On 11/02/2016 06:36 PM, Miguel Angel Bérniz wrote: 
> Hello, 
> 
> I am trying to debug my CPE. 
> 
> It is shown in GUI as: 
> 
> Device: 783d5b-WaveAccess4032-783d5b0243df 
> 
> I added this to config/config.json 
> 
> "DEBUG_DEVICES" : {"783d5b-WaveAccess4032-783d5b0243df" : true} 
> 
> I restarted CWMP but nothing appears in debug folder. 
> 
> Any clue? 
> 
> Thanks in advance, 
> 
> 
> Miguel 
> _______________________________________________ 
> Users mailing list 
> Users at lists.genieacs.com 
> http://lists.genieacs.com/mailman/listinfo/users 

_______________________________________________ 
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/20161123/2b6a4362/attachment.html>


More information about the Users mailing list