Hello,
I'm trying to use Forti API to get the same result that using the CLI command "get system session status". I think is the command that provides more useful information related to HA .
With FortiOS API I only have /system/ha-statistics and /system/ha-checksums
With FortiManager, I've been able to run a CLI script with "get system session status", but checking the task I can only get the Progress report but not the "View Script Execution History".
I fear I must use the "expect" tool to get the result of that command , I've also heard something related to websockets to run any cli command but I'm not sure is a good idea.
Any idea about how to run any CLI command using the Forti API?
Thank you very much for helping.
Jose Luis
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hello @PepeBravo ,
You can use these commands for HA monitoring purposes.
There is no API call directly equal to "get sys ha status" command.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1662 | |
1077 | |
752 | |
446 | |
220 |
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 2024 Fortinet, Inc. All Rights Reserved.