<div dir="ltr"><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px">_lastInform is a date time value that contains the last time the CPE communicated with the ACS :)</span><br><div><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px"><br></span></div><div><span style="color:rgb(31,73,125);font-family:Calibri,sans-serif;font-size:14.6667px">-dan</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 27, 2016 at 2:59 AM, Sergio <span dir="ltr"><<a href="mailto:sergio.fernandez@electronicamartinez.com" target="_blank">sergio.fernandez@electronicamartinez.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Thank you a lot, Dan<br>
      <br>
      That works... But the problem now is that we are asking to NAT'ed
      devices, so they always answer with a 202 Device is Offline. So I
      think the only way is to compare the _lastInform key. <br>
    </p>
    <p>Could you put an example of using that key? I can't find it on
      the API guide in github. I can upload there it if you explain it.<br>
      <br>
      Thank you!!<br>
    </p>
    <br>
    <div>El 27/07/16 a las 00:33, Dan Morphis
      escribió:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr"><span>The
          way I determine if a CPE is online is to do a
          getParameterValues on </span><font color="#463c00" face="Lucida Sans Unicode, Lucida Grande, Arial, sans-serif"><span style="line-height:16px">InternetGatewayDevice.ManagementServer.PeriodicInformInterval
            with connection_request in the URI. If the GenieACS API
            returns a 200, then I know the CPE is online.</span></font><br>
        <div><font color="#463c00" face="Lucida Sans Unicode, Lucida
            Grande, Arial, sans-serif"><span style="line-height:16px"><br>
            </span></font></div>
        <div><font color="#463c00" face="Lucida Sans Unicode, Lucida
            Grande, Arial, sans-serif"><span style="line-height:16px">The
              last inform value can be pulled from the api, the key
              is _lastInform.</span></font></div>
        <div><font color="#463c00" face="Lucida Sans Unicode, Lucida
            Grande, Arial, sans-serif"><span style="line-height:16px"><br>
            </span></font></div>
        <div><font color="#463c00" face="Lucida Sans Unicode, Lucida
            Grande, Arial, sans-serif"><span style="line-height:16px">-dan</span></font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jul 26, 2016 at 2:30 PM, Sergio
          <span dir="ltr"><<a href="mailto:sergio.fernandez@electronicamartinez.com" target="_blank">sergio.fernandez@electronicamartinez.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've
            thought about it now... And I don't know how to perform the
            last option...<br>
            <br>
            How could I query to GenieACS to know when has occurred the
            last inform? I thought I knew it but I've found I've got no
            idea to query that!<br>
            <br>
            Thank you,<br>
            <br>
            Sergio F.<br>
            <br>
            <br>
            El 27/07/16 a las 00:21, Sergio escribió:
            <div>
              <div><br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hello!<br>
                  <br>
                  I wanted to know if there's anything to know if a
                  device is on or off. Maybe a parameter or some
                  internal way to do it.<br>
                  <br>
                  I ask this because we have tried to query a device
                  while connected and while disconnected, answering
                  GenieACS the same for some parameters of the CPE's
                  status.<br>
                  <br>
                  It's obvious that querying how much time since the
                  last inform will work, but that's our last option.<br>
                  <br>
                  Thank you!<br>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
                  <a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
                </blockquote>
                <br>
                _______________________________________________<br>
                Users mailing list<br>
                <a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
                <a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a>
<a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>