Fortinet black logo

CLI Reference

switch-controller switch-group

switch-controller switch-group

In larger networks, the number of switches can be large. Different models and device purposes might exist. Furthermore, the topology might have "built-in" redundancy. Use this command to create a FortiSwitch group allowing you to perform an operation on the entire group instead of one switch at a time.

Grouping FortiSwitches allows you to restart all of the switches in the group instead of individually. For example, you can use the following command to restart all of the FortiSwitches in a group named my-sw-group:

execute switch-controller restart-swtp my-switch-group

config switch-controller switch-group
    edit {name}
    # Configure FortiSwitch switch groups.
        set name {string}   Switch group name. size[35]
        set description {string}   Optional switch group description. size[63]
        config members
            edit {name}
            # FortiSwitch members belonging to this switch group.
                set name {string}   Managed device ID. size[64] - datasource(s): switch-controller.managed-switch.switch-id
            next
    next
end

switch-controller switch-group

In larger networks, the number of switches can be large. Different models and device purposes might exist. Furthermore, the topology might have "built-in" redundancy. Use this command to create a FortiSwitch group allowing you to perform an operation on the entire group instead of one switch at a time.

Grouping FortiSwitches allows you to restart all of the switches in the group instead of individually. For example, you can use the following command to restart all of the FortiSwitches in a group named my-sw-group:

execute switch-controller restart-swtp my-switch-group

config switch-controller switch-group
    edit {name}
    # Configure FortiSwitch switch groups.
        set name {string}   Switch group name. size[35]
        set description {string}   Optional switch group description. size[63]
        config members
            edit {name}
            # FortiSwitch members belonging to this switch group.
                set name {string}   Managed device ID. size[64] - datasource(s): switch-controller.managed-switch.switch-id
            next
    next
end