Debug CPE

Pavel Mracek mracek at poda.cz
Thu Nov 3 07:30:04 EDT 2016


>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



More information about the Users mailing list