Skip to main content
Rosalyn
Staff
Staff
March 24, 2025

Technical Tip: How to configure CLI traceroute action with email output when SD-WAN member out of SLA

  • March 24, 2025
  • 0 replies
  • 597 views

 

Description

This article describes how to configure CLI traceroute action and email, when an SDWAN member is out of SLA, using the automation stitch feature.

 

  1. Current SLA health configuration:


12.jpg

 

  1. SD-WAN member config:

 

SG (members) # show

config members

    edit 1

        set interface "port4"

        set zone "WAN"

        set gateway 10.47.31.254

    next

    edit 2

        set interface "port1"

        set zone "WAN"

        set gateway 10.47.15.254

    next

end

 

  1. When port4 SLA fail, there is an event:


date=2025-03-22 time=08:31:20 eventtime=1742603480462245688 tz="+0800" logid="0113022923" type="event" subtype="sdwan" level="notice" vd="root" logdesc="SDWAN status" eventtype="Health Check" healthcheck="wan_health_check" slatargetid=1 member="1" msg="Member status changed. Member out-of-sla."

Scope FortiGate.
Solution

Create the trigger based on the SDWAN event log: Go to Security Fabric -> Automation select Trigger, and Create New Miscellaneous: FortiOS Event Log.


The trigger event is based on logid 22923:

 

121.jpg

 

Here are the 2 triggers with filters:


122.jpg


123.jpg

 

If there is no VDOM enabled on FortiGate, the filter vd: root is not required.

 

After that, create the action:
The first action is under the CLI command to execute the traceroute:


124.jpg

 

If there is no VDOM enabled on FortiGate,'config vdom' and 'edit root' are not required.

Second action is to email the output to recipients:


125.jpg

Email body change to %%results%%. Repeat the same actions for another SD-WAN member port1.

Create a stitch to add the trigger and action together.


126.jpg
127.jpg
The trigger count will show how many times it is being executed.

 

An email of the output will be sent to the recipient:

 

128.jpg

Related documents

Automation stitches

Technical Tip: Use FortiGate automation stitches for alert emails
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.