cancel
Showing results for 
Search instead for 
Did you mean: 

upTime empty in API

upTime empty in API

bjorn
New Contributor

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 REPLIES 10

bjorn
New Contributor

Any update about this?

bjorn
New Contributor

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

samantha_lynn
Esteemed Contributor III

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)

bjorn
New Contributor

https://cloud-ie.aerohive.com/xapi/v1/monitor/devices/8589939779?ownerId=******

This is the right one

bjorn
New Contributor

https://cloud-ie.aerohive.com/xapi/v1/monitor/devices?ownerId=******

GTM-P2G8KFN