Fortinet white logo
Fortinet white logo

Administration Guide

Creating custom commands

Creating custom commands

When per-device management is enabled, FortiSwitch custom commands can be created and edited in the Custom Commands tab. Once created, the custom command can be added to one or more managed FortiSwitch. Once selected, use the Install Wizard to deploy the changes to FortiGate.

To create a custom command:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select the Custom Commands tab.
  2. In the content pane, click Create New in the toolbar. The Create New Custom Command window opens.
  3. Enter the following information, then click OK to create the new custom command.
    NameType a name for the custom command template.
    DescriptionOptionally, type a description.

    Command

    Enter the CLI commands.

    You can now add the custom command to one or more managed FortiSwitch device.

To add custom commands to a single FortiSwitch:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select a FortiGate, then edit a managed FortiSwitch.
  2. In the Edit Manged FortiSwitch pane, select Create New under Custom Command Entry.
  3. Enter a name for the command entry and select your previously configured custom command. Click OK, and save your changes to the managed FortiSwitch.

    You can now install the custom command using the Install Wizard. See Installing changes to managed switches.
To assign or unassign custom commands on multiple FortiSwitches:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select a FortiGate.
  2. Select multiple FortiSwitch devices in the table.
  3. Right-click and select Assign/Unassign Custom Commands from the context menu.
  4. Assign custom commands:
    1. Select the Assign tab.
    2. In the Custom Commands field, select one or more commands to assign to the selected devices.
    3. Click OK.
      Assigning custom commands to multiple devices in the GUI
  5. Unassign custom commands:
    1. Select the Unassign tab.
    1. In the Custom Commands field, select which commands to unassign from the selected devices.
    1. Click OK.
      Unassigning custom commands to multiple devices in the GUI
  6. You can now install the changes using the Install Wizard. See Installing changes to managed switches.

Creating custom commands

Creating custom commands

When per-device management is enabled, FortiSwitch custom commands can be created and edited in the Custom Commands tab. Once created, the custom command can be added to one or more managed FortiSwitch. Once selected, use the Install Wizard to deploy the changes to FortiGate.

To create a custom command:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select the Custom Commands tab.
  2. In the content pane, click Create New in the toolbar. The Create New Custom Command window opens.
  3. Enter the following information, then click OK to create the new custom command.
    NameType a name for the custom command template.
    DescriptionOptionally, type a description.

    Command

    Enter the CLI commands.

    You can now add the custom command to one or more managed FortiSwitch device.

To add custom commands to a single FortiSwitch:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select a FortiGate, then edit a managed FortiSwitch.
  2. In the Edit Manged FortiSwitch pane, select Create New under Custom Command Entry.
  3. Enter a name for the command entry and select your previously configured custom command. Click OK, and save your changes to the managed FortiSwitch.

    You can now install the custom command using the Install Wizard. See Installing changes to managed switches.
To assign or unassign custom commands on multiple FortiSwitches:
  1. Go to FortiSwitch Manager > Managed FortiSwitches and select a FortiGate.
  2. Select multiple FortiSwitch devices in the table.
  3. Right-click and select Assign/Unassign Custom Commands from the context menu.
  4. Assign custom commands:
    1. Select the Assign tab.
    2. In the Custom Commands field, select one or more commands to assign to the selected devices.
    3. Click OK.
      Assigning custom commands to multiple devices in the GUI
  5. Unassign custom commands:
    1. Select the Unassign tab.
    1. In the Custom Commands field, select which commands to unassign from the selected devices.
    1. Click OK.
      Unassigning custom commands to multiple devices in the GUI
  6. You can now install the changes using the Install Wizard. See Installing changes to managed switches.