Fortinet white logo
Fortinet white logo

CLI Reference

config switch-controller custom-command

config 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 command {var-string}
        set description {string}
    next
end

config switch-controller custom-command

Parameter

Description

Type

Size

Default

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

command-name

Command name called by the FortiGate switch controller in the execute command.

string

Maximum length: 35

description

Description.

string

Maximum length: 35

config switch-controller custom-command

config 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 command {var-string}
        set description {string}
    next
end

config switch-controller custom-command

Parameter

Description

Type

Size

Default

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

command-name

Command name called by the FortiGate switch controller in the execute command.

string

Maximum length: 35

description

Description.

string

Maximum length: 35