<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    To help others with troubleshooting CPE faults, see below:<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 20/11/15 03:40, Zaid Abdulla wrote
      in <a class="moz-txt-link-freetext"
        href="https://github.com/zaidka/genieacs/issues/120">https://github.com/zaidka/genieacs/issues/120</a><br>
    </div>
    <blockquote
      cite="mid:zaidka%2Fgenieacs%2Fissues%2F120%2F158113068@github.com"
      type="cite">You'll need to patch the code. Look at the function
      getParameterNames in tasks.coffee. You can add a condition there
      to skip that particular parameter. </blockquote>
    <br>
    For me, two things that were important when tracking down the CPE
    fault. One was to add the following line into config/config.json
    which helps to find which exact request generates the 9002 fault
    response.  Normally they are batched up in lots of 32 requests.<br>
    <br>
      "TASK_PARAMETERS_BATCH_SIZE"  : 1,<br>
    <br>
    Restart genieacs, delete the device in the gui, get the device to
    connect again, use tcpflow to see the request just before the fault.<br>
    <br>
    <span lang="EN-AU"><br>
    </span>Request:<br>
    <br>
    <?xml version="1.0" encoding="UTF-8" ?><br>
    <soap-env:Envelope xmlns:soap-enc=<a moz-do-not-send="true"
      href="http://schemas.xmlsoap.org/soap/encoding/">"http://schemas.xmlsoap.org/soap/encoding/"</a>
    xmlns:soap-env=<a moz-do-not-send="true"
      href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>
    xmlns:xsd=<a moz-do-not-send="true"
      href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
    xmlns:xsi=<a moz-do-not-send="true"
      href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
    xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><br>
        <soap-env:Header><br>
            <cwmp:ID soap-env:mustUnderstand="1"><span
      style="background-color:#aff;">572abd67dd05c6b2464530e2</span></cwmp:ID><br>
        </soap-env:Header><br>
        <soap-env:Body><br>
            <cwmp:GetParameterValues><br>
                <ParameterNames
    soap-enc:arrayType="xsd:string[1]"><br>
                    <string><span lang="EN-AU"><span
        style="background-color:#f99;">InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.X_0819A6_Network</span></span></string><br>
                </ParameterNames><br>
            </cwmp:GetParameterValues><br>
        </soap-env:Body><br>
    </soap-env:Envelope><br>
    <br>
    <br>
    Response:<br>
    <br>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV=<a moz-do-not-send="true"
      href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>
    xmlns:SOAP-ENC=<a moz-do-not-send="true"
      href="http://schemas.xmlsoap.org/soap/encoding/">"http://schemas.xmlsoap.org/soap/encoding/"</a>
    xmlns:xsd=<a moz-do-not-send="true"
      href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
    xmlns:xsi=<a moz-do-not-send="true"
      href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
    xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><br>
        <SOAP-ENV:Header><br>
            <cwmp:ID SOAP-ENV:mustUnderstand="1"><span
      style="background-color:#aff;">572abd67dd05c6b2464530e2</span></cwmp:ID><br>
        </SOAP-ENV:Header><br>
        <SOAP-ENV:Body><br>
            <SOAP-ENV:Fault><br>
                <faultcode>Client</faultcode><br>
                <faultstring>CWMP fault</faultstring><br>
                <detail><br>
                    <cwmp:Fault><br>
                        <FaultCode>9002</FaultCode><br>
                        <FaultString>Internal
    error</FaultString><br>
                    </cwmp:Fault><br>
                </detail><br>
            </SOAP-ENV:Fault><br>
        </SOAP-ENV:Body><br>
    </SOAP-ENV:Envelope><br>
    <br>
    <br>
    <br>
    The below diff shows how to skip parameterNames with certain
    strings. <br>
    <br>
    [ genieacs/lib]# diff -u  tasks.coffee.orig  tasks.coffee<br>
    --- tasks.coffee.orig    2016-05-04 17:25:35.222022149 +1000<br>
    +++ tasks.coffee    2016-05-06 13:04:20.778349934 +1000<br>
    @@ -69,7 +69,8 @@<br>
           task.session.parameterNames ?= []<br>
           if deviceUpdates?.parameterNames?<br>
             for p in deviceUpdates.parameterNames<br>
    -          if not common.endsWith(p[0], '.')<br>
    +          <span style="background-color:#ff6;">name=p[0]</span><br>
    +          if not common.endsWith(p[0], '.') <span
      style="background-color:#ff6;">and not ~name.indexOf('<span
        style="background-color:#f99;">.X_0819A6</span>') and not
      ~name.indexOf('.X_CMCC')</span><br>
                 task.session.parameterNames.push(p[0])<br>
     <br>
           if status & STATUS_COMPLETED<br>
    <br>
    <br>
    The above was helpful to me, I hope it can help others when they
    connect up shiny new devices that have issues.<br>
    Report your findings back to the vendor to fix, these workarounds
    are just to help you understand where the problem is.<br>
    Oh yeah, and don't do this on your production servers, set up a dev
    server and point a single CPE to it.<br>
    <br>
    Cheers, Stuart<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 02/12/15 07:20, Agustín Bertamoni
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJtDY1DNMBiDAgSnvAXwJ7dLYmPiZH1_Qd_AvZ+a-Adj1t1aWg@mail.gmail.com"
      type="cite">
      <div dir="ltr">In "H" versión web interface has access to event
        log viewer, it's depends  of the user, try with admin user in
        web.
        <div>BR</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr"><font
                    style="background-color:rgb(255,255,255)" size="2"
                    color="#999999">STECHS - Ing. Agustin Bertamoni<br>
                    Móvil: (+54911) 62183226 </font></div>
                <div dir="ltr"><font
                    style="background-color:rgb(255,255,255)" size="2"
                    color="#999999">Skype: abertamoni-stechs<br>
                    Av. Boyacá 372 Piso 4º Oficina 401 (C1406BHF)<br>
                    Buenos Aires, Argentina</font></div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Tue, Dec 1, 2015 at 4:22 PM, Ivan
          Revyakin <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:ivan@revyakin.net" target="_blank">ivan@revyakin.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>Hello Agustin,<br>
                    <br>
                    Yes, HG8245H works fine, but HG8245 is not HG8245H,
                    it's another generation of this ONT.<br>
                  </div>
                  I guess you right -- this is device related issue. The
                  Fault Code rises all time.<br>
                  <br>
                     >> <span style="font-size:12.8px">Device
                    internal log has more information of this issue?<br>
                  </span></div>
                <span style="font-size:12.8px">Could you help me how it
                  possible to do? Which CLI commands should be used?<br>
                  <br>
                </span></div>
              <span style="font-size:12.8px">Thanks<br>
              </span>
              <div>
                <div>
                  <div>
                    <div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">2015-12-01 19:56
                          GMT+03:00 Agustín Bertamoni <span dir="ltr"><<a
                              class="moz-txt-link-abbreviated"
                              href="mailto:abertamoni@stechs.com.ar"><a class="moz-txt-link-abbreviated" href="mailto:abertamoni@stechs.com.ar">abertamoni@stechs.com.ar</a></a>></span>:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0px 0px 0px
                            0.8ex;border-left:1px solid
                            rgb(204,204,204);padding-left:1ex">
                            <div dir="ltr">Ivan
                              <div>Seems to be device related issue, we
                                are testing GenieACS with <span
                                  style="font-size:12.8px">HG8245H and
                                  works ok. </span></div>
                              <div><span style="font-size:12.8px">Few questions:

                                  -always fails in GetParameterValues?
                                  with the sames attributes?, Device
                                  internal log has more information of
                                  this issue? (via web interface can
                                  access to tr69 logs)</span></div>
                              <div><span style="font-size:12.8px">I hope
                                  I've helped </span></div>
                              <div>
                                <div class="gmail_extra">BR<br
                                    clear="all">
                                  <div>
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div dir="ltr"><font
                                              style="background-color:rgb(255,255,255)"
                                              size="2" color="#999999">STECHS

                                              - Ing. Agustin Bertamoni<br>
                                              Móvil: (+54911) 62183226 </font></div>
                                          <div dir="ltr"><font
                                              style="background-color:rgb(255,255,255)"
                                              size="2" color="#999999">Skype:

                                              abertamoni-stechs<br>
                                              Av. Boyacá 372 Piso 4º
                                              Oficina 401 (C1406BHF)<br>
                                              Buenos Aires, Argentina</font></div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <div class="gmail_quote">
                                    <div>
                                      <div>On Tue, Dec 1, 2015 at 9:00
                                        AM, Ivan Revyakin <span
                                          dir="ltr"><<a
                                            class="moz-txt-link-abbreviated"
href="mailto:ivan@revyakin.net"><a class="moz-txt-link-abbreviated" href="mailto:ivan@revyakin.net">ivan@revyakin.net</a></a>></span> wrote:<br>
                                      </div>
                                    </div>
                                    <blockquote class="gmail_quote"
                                      style="margin:0px 0px 0px
                                      0.8ex;border-left:1px solid
                                      rgb(204,204,204);padding-left:1ex">
                                      <div>
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div>
                                                <div>
                                                  <div>Hello.<br>
                                                    <br>
                                                  </div>
                                                  I have two devices:<br>
                                                  <ul>
                                                    <li>Huawei HG8245<b>H</b></li>
                                                    <li>Huawei HG8245</li>
                                                  </ul>
                                                  HG8245<b>H</b> works
                                                  good with GenieACS,
                                                  but HG8245 does not.
                                                  HG8245 returns 9002
                                                  Code (Fault Code) in
                                                  the one of replays.<br>
                                                </div>
                                              </div>
                                              Capture files (*.pcap) for
                                              these two devices are
                                              here: <a
                                                class="moz-txt-link-freetext"
href="https://yadi.sk/d/tfrCoLIakschm"><a class="moz-txt-link-freetext" href="https://yadi.sk/d/tfrCoLIakschm">https://yadi.sk/d/tfrCoLIakschm</a></a><br>
                                              <ul>
                                                <li>In
                                                  "HG8245_fault.pcap"
                                                  file Fault Code can be
                                                  found in packet #339.</li>
                                                <li>"HG8245H_Ok.pcap"
                                                  file is good with no
                                                  errors.</li>
                                              </ul>
                                              Can anyone help me why
                                              HG8245 returns Fault?<br>
                                              <br>
                                              <br>
                                            </div>
                                            The version of HG8245 is
                                            V1R006C01S201<br>
                                            <div><span title="as of 2
                                                minutes ago">The version
                                                of HG8245<b>H</b> is
                                                V3R013C10S108<br>
                                              </span><span title="as of
                                                2 minutes ago">The
                                                version of </span>GenieACS

                                              is 1.0 (git clone <a
                                                class="moz-txt-link-freetext"
href="https://github.com/zaidka/genieacs.git"><a class="moz-txt-link-freetext" href="https://github.com/zaidka/genieacs.git">https://github.com/zaidka/genieacs.git</a></a>
                                              --branch v1.0)<br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
  </body>
</html>