Fortinet white logo
Fortinet white logo

FortiGate-7000F Handbook

Setting a FortiGate-7000F to always be the primary FortiGate-7000F

Setting a FortiGate-7000F to always be the primary FortiGate-7000F

You can use the following command from the CLI of a FortiGate-7000F in an HA configuration to cause the FortiGate-7000F that you are logged into to always operate as the primary FortiGate-7000F, effectively blocking HA failovers.

diagnose sys ha set-as-primary enable

If the FortiGate-7000F that you are logged into is already the primary, the cluster continues to operate normally. If you are logged into the backup FortiGate-7000F, a failover occurs and this FortiGate-7000F becomes the primary FortiGate-7000F.

Command syntax:

diagnose sys ha set-as-primary {disable | enable | status}

disable the default, HA failovers can occur.

enable the FortiGate-7000F that you are logged into becomes and remains the primary FortiGate in the HA cluster.

status view the set-as-primary status of the FortiGate-7000F that you have logged into.

This command is intended to be used during troubleshooting and not for normal operation. Because this is a diagnose command, the command is reset to disable when the FortiGate restarts.

After you have finished troubleshooting you can either restart the cluster to restore normal operation or enter the following command:

diagnose sys ha set-as-primary disable

This may cause an HA failover depending on your HA configuration. For example, if override is enabled the cluster may renegotiate to select a primary FortiGate-7000F.

Setting a FortiGate-7000F to always be the primary FortiGate-7000F

Setting a FortiGate-7000F to always be the primary FortiGate-7000F

You can use the following command from the CLI of a FortiGate-7000F in an HA configuration to cause the FortiGate-7000F that you are logged into to always operate as the primary FortiGate-7000F, effectively blocking HA failovers.

diagnose sys ha set-as-primary enable

If the FortiGate-7000F that you are logged into is already the primary, the cluster continues to operate normally. If you are logged into the backup FortiGate-7000F, a failover occurs and this FortiGate-7000F becomes the primary FortiGate-7000F.

Command syntax:

diagnose sys ha set-as-primary {disable | enable | status}

disable the default, HA failovers can occur.

enable the FortiGate-7000F that you are logged into becomes and remains the primary FortiGate in the HA cluster.

status view the set-as-primary status of the FortiGate-7000F that you have logged into.

This command is intended to be used during troubleshooting and not for normal operation. Because this is a diagnose command, the command is reset to disable when the FortiGate restarts.

After you have finished troubleshooting you can either restart the cluster to restore normal operation or enter the following command:

diagnose sys ha set-as-primary disable

This may cause an HA failover depending on your HA configuration. For example, if override is enabled the cluster may renegotiate to select a primary FortiGate-7000F.