NSE4 · Question #514
Which of the following statement correct describes the use of the "diagnose sys ha reset- uptime" command?
The correct answer is A. To force an HA failover when the HA override setting is disabled.. The diagnose sys ha reset-uptime command is used to force a High Availability (HA) failover by resetting the uptime counter of the primary FortiGate, specifically when HA override is disabled.
Question
Which of the following statement correct describes the use of the "diagnose sys ha reset- uptime" command?
Options
- ATo force an HA failover when the HA override setting is disabled.
- BTo force an HA failover when the HA override setting is enabled.
- CTo clear the HA counters.
- DTo restart a FortiGate unit that is part of an HA cluster.
How the community answered
(46 responses)- A91% (42)
- B4% (2)
- C2% (1)
- D2% (1)
Why each option
The `diagnose sys ha reset-uptime` command is used to force a High Availability (HA) failover by resetting the uptime counter of the primary FortiGate, specifically when HA override is disabled.
When HA override is disabled, the FortiGate with the longest uptime typically becomes the primary. Resetting the primary's uptime counter with this command makes a standby unit (with a now relatively longer uptime) assume the primary role, thus forcing a failover.
If HA override is enabled, the FortiGate with the highest configured priority (and optionally monitor interfaces up) will always remain the primary, regardless of its uptime, so resetting uptime would not force a failover.
This command specifically resets the uptime counter used in HA failover calculations, not general HA counters which typically include other metrics like session counts or synchronization status.
This command is related to HA failover logic; to restart a FortiGate unit, the `execute reboot` command is used.
Concept tested: FortiGate HA failover control
Source: https://docs.fortinet.com/document/fortigate/7.4.0/fortios-cli-reference/192241/diagnose-sys-ha-reset-uptime
Topics
Community Discussion
No community discussion yet for this question.