Parameter in order to know if it's up or down
Sergio
sergio.fernandez at electronicamartinez.com
Wed Jul 27 06:59:50 EDT 2016
Thank you a lot, Dan
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.
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.
Thank you!!
El 27/07/16 a las 00:33, Dan Morphis escribió:
> The way I determine if a CPE is online is to do a getParameterValues
> on InternetGatewayDevice.ManagementServer.PeriodicInformInterval with
> connection_request in the URI. If the GenieACS API returns a 200, then
> I know the CPE is online.
>
> The last inform value can be pulled from the api, the key is _lastInform.
>
> -dan
>
> On Tue, Jul 26, 2016 at 2:30 PM, Sergio
> <sergio.fernandez at electronicamartinez.com
> <mailto:sergio.fernandez at electronicamartinez.com>> wrote:
>
> I've thought about it now... And I don't know how to perform the
> last option...
>
> 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!
>
> Thank you,
>
> Sergio F.
>
>
> El 27/07/16 a las 00:21, Sergio escribió:
>
> Hello!
>
> 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.
>
> 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.
>
> It's obvious that querying how much time since the last inform
> will work, but that's our last option.
>
> Thank you!
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com <mailto:Users at lists.genieacs.com>
> http://lists.genieacs.com/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com <mailto: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/20160727/4502eb8f/attachment.html>
More information about the Users
mailing list