The "diagnose sys ha status" command in FortiGate is used to display the high availability (HA) status of the FortiGate unit in a high availability cluster. Here's what this command does and the information it provides:
-
HA Status: It provides an overview of the HA status of the FortiGate unit, indicating whether it is the primary unit or the secondary unit in the HA cluster.
-
HA Mode: It displays the HA mode configured for the cluster, such as active-passive or active-active.
-
HA Heartbeat: This section shows the heartbeat status between the primary and secondary units. A healthy heartbeat indicates proper communication between the cluster members.
-
HA Synchronization: It indicates the synchronization status of configuration and session information between the primary and secondary units. Synchronization ensures that both units have consistent configurations and session tables.
-
Failover Events: This section provides information about any failover events that have occurred, such as when the secondary unit takes over as the primary unit due to a failure or maintenance activity.
-
Cluster Configuration: It displays details about the HA cluster configuration, including cluster ID, cluster group ID, and virtual MAC address.
Here's an example output of the "diagnose sys ha status" command:
# diagnose sys ha status Cluster ID: 1234567890 Cluster Group ID: 1 Virtual MAC: 00:09:0f:09:00:00 Mode: Active-Passive Current virtual cluster members: 1: hostname1 (primary) - 10.0.0.1 2: hostname2 (secondary) - 10.0.0.2 Heartbeat Information: Status: Normal Last heartbeat sent: 10 seconds ago Last heartbeat received: 10 seconds ago Heartbeat errors: 0 Synchronization Information: Status: In Sync Last synchronization: 5 seconds ago Synchronization errors: 0 Failover Counters: Last failover: 2 days, 4 hours, 30 minutes ago Total failovers: 5
This output provides a comprehensive view of the HA status, including cluster configuration, heartbeat status, synchronization status, and failover events.Â