Forum Discussion

eesun_276598's avatar
Mar 02, 2017

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 {

 

10 Replies

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

    show cm device-group
    
    • eesun_276598's avatar
      eesun_276598
      Icon for Cirrus rankCirrus

      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

       

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

    show cm device-group
    
    • eesun_276598's avatar
      eesun_276598
      Icon for Cirrus rankCirrus

      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

       

    • eesun_276598's avatar
      eesun_276598
      Icon for Cirrus rankCirrus

      "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

       

  • Red_19's avatar
    Red_19
    Icon for Nimbostratus rankNimbostratus

    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 Syncfailover

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