Description | This article describes the configuration of automation stitch to collect diagnostics commands and receive the output via E-mail. |
Scope | FortiGate v7.6.1 |
Solution |
In some situations, it is required to collect diagnostics commands at a certain period and receive the output via email. diagnose debug application update -1 To stop the debug processes in the end, press 'Ctrl+C' and enter 'diagnose debug disable'.
Note: This configuration is possible starting from v7.6.1
In this example, trigger: 'FortiGuard webfilter unreachable' has been used. A schedule trigger or any other trigger can be used.
config system automation-actionv
config system automation-action
config system automation-stitch
The E-mail received will be as follows:
*********************************** FortiGate# diagnose debug application update -1 Debug messages will be on for 24 minutes. FortiGate # diagnose debug enable upd_daemon[1911]-Received update request from pid=2698 upd_daemon[1911]-Received update request from pid=2699 upd_daemon[1730]-Found cached action=00000002 do_update[744]-Starting now UPDATE (final try)
The other part of the output is omitted.
In v7.0, v7.2, and v7.4 certain diagnostic commands may not function as expected with CLI scripts and result in no output.
7.0 administration-guide |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.