SurfStat
Neither this project nor its author is associated in any way with ViaSat.
This library provides easy access modem status data provided by ViaSat's SurfBeam® 2 satellite modems' CGI api.
Get It
SurfStat is available as a NuGet package: https://www.nuget.org/packages/SurfStat/.
PM> Install-Package SurfStat
Sample Usage
Get the modem status asynchronously.
var stat = new SurfStatFetcher();
var modemStatus = await stat.GetModemStatusAsync();
if (modemStatus != null)
{
Console.WriteLine("The modem's external IP address is {0}", status.IPAddress);
}Get the TRIA status synchronously.
var stat = new SurfStatFetcher();
var triaStatus = stat.GetTriaStatusAsync().Result;
if (triaStatus != null)
{
Console.WriteLine("The TRIA's temperature is {0}C", status.Temperature);
}Modem Status
The Modem/IFL Cable Status page is populated with data obtained from requests to /index.cgi?page=modemStatusData. The response body is a ## delimited list of values.
| Index | Description | Sample |
|---|---|---|
| 0 | IP Address | 0.0.0.0 |
| 1 | MAC Address | 00:00:00:00:00:00 |
| 2 | Software Version | UT_1.5.2.2.3 |
| 3 | Hardware Version | UT_7 P3_V1 |
| 4 | Status | Scanning, Online |
| 5 | Transmitted Packets | 6,946,245 |
| 6 | Transmitted Bytes | 1,668,108,099 |
| 7 | Received Packets | 9,226,449 |
| 8 | Received Bytes | 9,460,216,018 |
| 9 | Online time | 000:00:15:16 |
| 10 | Loss of Sync Count | 1 |
| 11 | Rx SNR (dB) | 5.1 |
| 12 | Rx SNR % | 28% |
| 13 | Serial Number | 000000000000 |
| 14 | Rx Power (dBm) | -45.2 |
| 15 | Rx Power % | 45% |
| 16 | Cable Resistance (Ohms) | 1.5 |
| 17 | Cable Resistance % | 6% |
| 18 | ODU Telemetry status | Active |
| 19 | Cable Attenuation | 9.6 |
| 20 | Cable Attenuation % | 80% |
| 21 | IFL Type | Single |
| 22 | Part Number | 0000000000 |
| 23 | Status Image Url | images/Modem_Status_005_Scanning.png |
| 24 | Satellite Status Url | /images/Satellite_Status_Purple.png |
| 25 | ?? | 0 |
| 26 | Status HTML | <p style="color:green">Connected</p> |
| 27 | Health HTML | <p style="color:green">Good</p> |
| 28 | ?? | 0.00% |
| 29 | ?? | 0.00% |
| 30 | Last Page Load Duration | 28.92s |
| 31 | ?? | 197 |
| 32 | ?? | 5000000 |
TRIA Status Value Breakdown
The TRIA Status page is populated with data obtained from requests to /index.cgi?page=triaStatusData. The response body is a ## delimited list of values.
| Index | Description | Sample |
|---|---|---|
| 0 | ? | images/green_check_small_002.png |
| 1 | ? | images/green_check_small_002.png |
| 2 | ? | images/green_check_small_002.png |
| 3 | ? | images/green_check_small_002.png |
| 4 | ? | Reduced power |
| 5 | ? | Right |
| 6 | ? | WIN |
| 7 | Tx IF Power (dBm) | -23.4 |
| 8 | ? | images/green_check_small_002.png |
| 9 | ? | SINGLE |
| 10 | Temperature (C) | 20 |
| 11 | ? | images/green_check_small_002.png |
| 12 | ? | images/green_check_small_002.png |
| 13 | ? | images/green_check_small_002.png |
| 14 | ? | 1.5 |
| 15 | ? | 2648 |
| 16 | TRIA Serial Number | 0000000000 |
| 17 | Tx RF Power | 35.7 |
| 18 | ? | images/green_check_small_002.png |
| 19 | ? | 11 |
| 20 | ? | images/green_check_small_002.png |
| 21 | ? | 11 |
| 22 | ? | 2 |
| 23 | ? | 33 |
| 24 | ? | 13.05 |
| 25 | Tx IF Power % | 47% |
| 26 | Tx RF Power % | 83% |
| 27 | ? | No |
| 28 | ? | No |
| 29 | Satellite Status Image | /images/Satellite_Status_Purple.png |