Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos XG API check WAN

Hi!

I am trying to check the connection status of an XG210 (SFOS 18.0.1 MR-1-Build396).

The firewall itself has multiple WANs configured.
I am trying to check if WAN is reachable via API-Get Requests.

via (Powershell example):

https://$($ip):$($port)/webconsole/APIController?reqxml=<Request><Login><Username>$($user)</Username><Password>$($pass)</Password></Login><Get><Interface></Interface></Get></Request>

From the response i can filter out the WAN-Interfaces via:

$interfaces = $xml.Response.Interface | ? {$_.NetworkZone -eq "WAN"} | % {$_ | Select GatewayName,Status}

... i can get the Interfaces and their respective status (connected/disconnected) for each WAN-Interface.

The Problem is: It only shows the link state of the respective interface towards WAN, BUT - it is only an Uplink check, which in my case is not enough because this only checks uplink towards the next attached device and not the reachability of WAN itself.

Is there a way to get the data like in the "WAN link manager" exposed via API-call?

Thanks a lot in advance!



This thread was automatically locked due to age.