10-19-2018 10:16 AM
Hi, i'm able to get the data out of the hivemanager via the API.
I noticed that the upTime of the accesspoints are empty
Am I doing something wrong here?
$VAR1 = {
‘error’ => undef,
‘data’ => {
‘upTime’ => undef,
‘dns’ => ‘****’,
‘subnetMask’ => ‘255.255.255.0’,
‘locationId’ => 8589939959,
‘macAddress’ => ‘D854A25C4EC0’,
‘deviceId’ => 8589939779,
‘mode’ => ‘PORTAL’,
‘ip’ => ‘*****’,
‘activeClients’ => 1,
‘model’ => ‘AP_230’,
‘serialId’ => ‘*****’,
‘deviceTemplate’ => ‘AP230’,
‘mgmtStatus’ => ‘MANAGED’,
‘latitude’ => undef,
‘configType’ => ‘DHCP_CLIENT_WITHOUT_FALLBACK’,
‘alarmEvents’ => [],
‘policy’ => ‘****’,
‘ntp’ => ‘0.aerohive.pool.ntp.org’,
‘locations’ => [],
‘longitude’ => undef,
‘lastUpdated’ => ‘2018-10-17T10:53:35.983Z’,
‘osVersion’ => ‘8.2.2.0’,
‘connected’ => bless( do{(my $o = 1)}, ‘JSON::PP::Boolean’ ),
‘simulatedDevice’ => bless( do{(my $o = 0)}, ‘JSON::PP::Boolean’ ),
‘cpuUsage’ => 10,
‘hostName’ => ‘*****’,
‘defaultGateway’ => ‘0.0.0.0’,
‘memUsage’ => 57,
‘ownerId’ => 2
}
10-26-2018 11:29 AM
Any update about this?
10-22-2018 09:11 PM
Uptime optional? How do I know if the AP is rebooted?
What do you mean by:
The documentation I'm referencing that tells me this is an optional response can be found here: https://developer.aerohive.com/docs/api-documentation
I have both urls mentioned in earlier posts from that section
10-22-2018 03:27 PM
Thanks very much for that information. It looks like for this end point uptime is an optional return, and currently we aren't set up to return uptime. So I think your set up is correct at this point, but we aren't going to be returning uptime as it's optional.
The documentation I'm referencing that tells me this is an optional response can be found here: https://developer.aerohive.com/docs/api-documentation
(Under the section "Monitoring-devices: Device Monitoring Endpoints" in the Model section for this enpoint)
10-22-2018 09:00 AM
https://cloud-ie.aerohive.com/xapi/v1/monitor/devices/8589939779?ownerId=******
This is the right one
10-22-2018 07:25 AM
https://cloud-ie.aerohive.com/xapi/v1/monitor/devices?ownerId=******