Fortinet black logo

CLI Reference

switch-controller custom-command

Configure the FortiGate switch controller to send custom commands to managed FortiSwitch devices.

  config switch-controller custom-command
      Description: Configure the FortiGate switch controller to send custom commands to managed FortiSwitch devices.
      edit <command-name>
          set description {string}
          set command {var-string}
      next
  end

config switch-controller custom-command

Parameter Name Description Type Size
description Description. string Maximum length: 35
command String of commands to send to FortiSwitch devices (For example (%0a = return key): config switch trunk %0a edit myTrunk %0a set members port1 port2 %0a end %0a). var-string Maximum length: 4095

Configure the FortiGate switch controller to send custom commands to managed FortiSwitch devices.

  config switch-controller custom-command
      Description: Configure the FortiGate switch controller to send custom commands to managed FortiSwitch devices.
      edit <command-name>
          set description {string}
          set command {var-string}
      next
  end

config switch-controller custom-command

Parameter Name Description Type Size
description Description. string Maximum length: 35
command String of commands to send to FortiSwitch devices (For example (%0a = return key): config switch trunk %0a edit myTrunk %0a set members port1 port2 %0a end %0a). var-string Maximum length: 4095