Another way, without having to make it call back, is to make this query to the
nbi
:7557/devices?query={"summary.serialNumber":"deviceid"}&projection=_lastInform,InternetGatewayDevice.ManagementServer.PeriodicInformInterval
And then see if the _lastinform is less seconds ago than the
PeriodicInformInterval
If it is more, then it is late calling in and could be considered down / off
line.
Hope that helps
Yak
From: Users [mailto:[email protected]] On Behalf Of Dan Morphis
Sent: 26 July 2016 23:34
To: Community support for GenieACS users <[email protected]>
Subject: Re: Parameter in order to know if it's up or down
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
<[email protected]<mailto:[email protected]>>
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
[email protected]<mailto:[email protected]>
http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.genieacs.com/mailman/listinfo/users
--
Steve Hawkes
Systems Developer
Zen Internet
Main Switchboard: 01706 902000
Web: zen.co.uk
Winner of 'Services Company of the Year' at the UK IT Industry Awards
This message is private and confidential. If you have received this message in
error, please notify us and remove it from your system.
Zen Internet Limited may monitor email traffic data to manage billing, to
handle customer enquiries and for the prevention and detection of fraud. We may
also monitor the content of emails sent to and/or from Zen Internet Limited for
the purposes of security, staff training and to monitor quality of service.
Zen Internet Limited is registered in England and Wales, Sandbrook Park,
Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users