Parameter in order to know if it's up or down

Dan Morphis dan at milkcarton.com
Wed Jul 27 12:00:26 EDT 2016


_lastInform is a date time value that contains the last time the CPE
communicated with the ACS :)

-dan

On Wed, Jul 27, 2016 at 2:59 AM, Sergio <
sergio.fernandez at electronicamartinez.com> wrote:

> 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> 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
>>> http://lists.genieacs.com/mailman/listinfo/users
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.genieacs.comhttp://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/f22fd7c1/attachment.html>


More information about the Users mailing list