<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-cite-prefix">El 27/07/16 a las 00:33, Dan Morphis
escribió:<br>
</div>
<blockquote
cite="mid:CAHwrMLezhzppVB3jdCzZh6y0mzyaTJ=oyd6n5LE=0kBHy0t2Sw@mail.gmail.com"
type="cite">
<div dir="ltr"><span
style="color:rgb(70,60,0);font-family:"Lucida Sans
Unicode","Lucida
Grande",Arial,sans-serif;font-size:13px;line-height:16px">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 moz-do-not-send="true"
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 class="HOEnZb">
<div class="h5"><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 moz-do-not-send="true"
href="mailto:Users@lists.genieacs.com"
target="_blank">Users@lists.genieacs.com</a><br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a>
<a class="moz-txt-link-freetext" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>