Get "Current WAN Time in Use" via API

AirVantage M2M Cloud APIs usage: build your server application or integrate into your ERP

Get "Current WAN Time in Use" via API

Postby weitblick » Tue Jun 20, 2017 12:48 pm

Hi,

is it possible to "Synchronize System" and get the "Current WAN Time in Use" value (AV -> Monitor -> Systems -> [NAME] -> Configuration -> Status -> Cellular -> Monitor) via API?

In addition: I created an example project of how to use AirVantage API with PowerShell 5 on GitHub (https://github.com/blooodorange/airvant ... powershell) - maybe it would be an idea if someone from Sierra could include it on the API examples page (https://doc.airvantage.net/av/howto/cloud/api_examples/).

Thanks & br,
Martin
weitblick
 
Posts: 3
Joined: Sat Jun 17, 2017 2:12 am
Has thanked: 1 time
Have thanks: 0 time

Re: Get "Current WAN Time in Use" via API

Postby rjacolin » Tue Jun 20, 2017 1:20 pm

Hi Martin,

Synchronize system will read a list of hard-coded data from the device and the "Current WAN Time in Use" data is not in this list.

To read this data, you have to:
* define a report: https://source.sierrawireless.com/airva ... teAReport/
* read the data in the report from the device: https://source.sierrawireless.com/airva ... InAReport/

About your Power Shell script, it will be a pleasure to add it in the library page.

Regards,
Robert

For this post the author rjacolin
has been thanked by :
weitblick (Fri Jun 23, 2017 8:26 am)
rjacolin
 
Posts: 51
Joined: Tue Jun 19, 2012 6:29 am
Location: Toulouse
Has thanked: 0 time
Have thanks: 17 times

Re: Get "Current WAN Time in Use" via API

Postby weitblick » Tue Jun 20, 2017 2:26 pm

Hi Robert,

thanks a lot - I'll give it a try...

Regards,
Martin
weitblick
 
Posts: 3
Joined: Sat Jun 17, 2017 2:12 am
Has thanked: 1 time
Have thanks: 0 time

Re: Get "Current WAN Time in Use" via API

Postby weitblick » Fri Jun 23, 2017 8:25 am

Hi Robert,

Update:
My goal is to compare "Current WAN Time in Use" and "Device Uptime" - with the provided information I was able to do that - Many thanks. :D

I also updated the sample script on GitHub.

Br,
Martin
weitblick
 
Posts: 3
Joined: Sat Jun 17, 2017 2:12 am
Has thanked: 1 time
Have thanks: 0 time

Re: Get "Current WAN Time in Use" via API

Postby rjacolin » Fri Jun 23, 2017 9:38 am

Hi Martin,

your example has been added in the API & examples page.

Regards,
Robert
rjacolin
 
Posts: 51
Joined: Tue Jun 19, 2012 6:29 am
Location: Toulouse
Has thanked: 0 time
Have thanks: 17 times


Return to AirVantage Enterprise Platform

Who is online

Users browsing this forum: No registered users and 1 guest