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

how to remove ha configuration from the CLI

Hi Team,

 

I just wanted to know how to remove ha configuration from the CLI however I tried to remove configuration from the using the below command but unfortunately couldn't remove it.

config system ha
unset set group-id 10
unset set group-name HA_cluster
unset set mode a-p
unset set password admin@54321
unset set priority 200
unset set hbdev port3 0
unset set session-pickup enable
unset set override enable
unset set override-wait-time 5
end

 

While removing the ha configuration I am getting an error code - command parse error before 'set'.

I thought that I should raise this issue with a Fortinet community member. Please help me  how to remove ha configuration from the CLI.

 

Regards,

Umesh

4 REPLIES 4
jintrah_FTNT
Staff
Staff

Hi Umesh,

 

You can set the mode to standalone first from a-p.

 

Best regards,

Jin

vsahu
Staff
Staff

You can use the below command:

 

config system ha
set mode standalone
unset group-name
unset password
unset hbdev
unset override
unset monitor
unset group-id
unset priority
unset session-pickup
end

When you change HA mode from "set mode a-p" to "set mode standalone" you would lose only some config inside of "config system ha", like hddev interface and monitoring interface, etc, but nothing else. 

so to remove it completely use the above mentioned command

Regards,

Vsahu

Regards,
Vishal
petergrove
New Contributor

To remove the high availability (HA) configuration from the command line interface (CLI), you need to use the correct commands. Instead of using "unset set," just use "unset" before each configuration you want to remove. So, your commands should look like this:

config system ha
unset group-id
unset group-name
unset mode
unset password
unset priority
unset hbdev port3
unset session-pickup
unset override
unset override-wait-time
end

This should help you remove the HA configuration without encountering the error you mentioned. If you still face issues, you can ask for assistance from the Fortinet community.

mpeddalla
Staff
Staff

Hello @Umesh  ,

 

Thank you for contacting the Fortinet Forum portal.

You can check the below article steps

 https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-break-a-HA-cluster-and-use-one-of-t...

 

Best regards,

Manasa.

 

If you feel the above steps helped resolve the issue, mark the reply as solved so that other customers can get it easily while searching for similar scenarios.

Labels
Top Kudoed Authors