Forum Discussion

InfraTeam's avatar
InfraTeam
Icon for Making Connections rankMaking Connections
21 days ago
Solved

Is there a way to monitor CATO IPSec degraded status

Hello, We recently enhanced our resilience on CATO side by switching from a single IPSec peering tunnel to a dual active/passive IPSec tunnel, enabling automatic failover in case of POP incident. H...
  • RobertG's avatar
    RobertG
    16 days ago

    Hi Corentin,

    Here is a slimmed down version of the query and variables required.

    query accountSnapshot ( $accountID:ID ) {
      accountSnapshot ( accountID:$accountID  ) {
        id 
        sites  {
          id
          connectivityStatusSiteSnapshot: connectivityStatus
          operationalStatusSiteSnapshot: operationalStatus
          lastConnected
          connectedSince
          popName
          infoSiteSnapshot: info  {
            name 
    
            ipsec  {
              isPrimary
              remoteIP
            }
    
          }
          degradedStatusSiteSnapshot: degradedStatus  {
            isDegraded 
            degradedDetails  {
              reason
              argsDegradedDetail: args  {
                __typename
                ... on DegradedStatusBasicDataArgs {
                  deviceName 
                  lastConnectedDate 
                }
                ... on DegradedStatusSocketArgs {
                  deviceName 
                  portID 
                  portName 
                  lastConnectedDate 
                }
                ... on DegradedStatusLastConnectedArgs {
                  lastConnectedDate 
                }
                ... on DegradedStatusMultiTunnelArgs {
                  deviceName 
                  tunnelID 
                  tunnelName 
                  lastConnectedDate 
                }
                }
    
            }
    
          }
        }
    
        timestamp 
      }  
    }
    {
        "accountID": "123456",
        "siteIDs": []
    }

    I hope this helps,

    Rob