Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
PepeBravo
New Contributor

API access to get "get system ha status"

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

1 REPLY 1
ozkanaltas
Valued Contributor III

Hello @PepeBravo ,

 

You can use these commands for HA monitoring purposes. 

 

There is no API call directly equal to "get sys ha status" command. 

 

image.png

If you have found a solution, please like and accept it to make it easily accessible to others.
NSE 4-5-6-7 OT Sec - ENT FW
If you have found a solution, please like and accept it to make it easily accessible to others.NSE 4-5-6-7 OT Sec - ENT FW
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors