Sync F5 via command line

Hi, It is easy to Sync via GUI. I want to sync via CLI, but I am not sure how to use the command:

“run /cm config-sync to-group <sync_group>” How to know what is this sync_group? I use the below command to find what is sync_group. I got three as below. So which one of the three is sync_group? Thank you

tmsh show running-config | grep device-group

cm device-group device_group_1 {

cm device-group device_trust_group {

cm device-group gtm {

You can use the following command to display the device groups:

show cm device-group

You can use the following command to display the device groups:

show cm device-group

Thank you so much for your reply. If we want to sync, do we need to sync all of group? After I used your command, it show several group in the F5: HA, device_trust_group and gtm. Do I need to sync all of them separately?

but via GUI, we do not need to think about all of these group when wanting to sync

Thank you so much for your reply. If we want to sync, do we need to sync all of group? After I used your command, it show several group in the F5: HA, device_trust_group and gtm. Do I need to sync all of them separately?

but via GUI, we do not need to think about all of these group when wanting to sync

The sync-group here is

device_group_1

“device_group_1” does not work after using it. here is error message:

01070734:3: Configuration error: Device group (device_group_1) not found in device group sync

“device_group_1” is not listed in that group.

These below three are listed in the group and can work with the command "run /cm config-sync to-group "

HA

device_trust_group

gtm

So, do I use all of three or one of them? Thank you

I always do “list cm device-group” will get the group whose type is "sync-failover and will run the sync command. In your case I’m guess your group is “HA”

run cm config-sync to-group HA

run /cm config-sync to-group Syncfailover

Syncfailover

is the name of Device trust group[GUI -->Device Management ›› Overview >> Device Group].

Yes, so the device group is ‘HA’