Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

Administration Guide

Creating custom commands

When creating or editing a new FortiSwitch template, you can include custom commands in the template. After the template has been assigned to the FortiSwitch, use the Install Wizard to install the custom command entry to the FortiGate.

To create a custom command:
  1. Go to FortiSwitch Manager > FortiSwitch Templates.
  2. In the tree menu, select Custom Command.
  3. In the content pane, click Create New in the toolbar. The Create New Custom Command window opens.
    Below is an example custom command.
  4. Enter the following information, then click OK to create the new custom command.
    Name Type a name for the custom command template.
    Description Optionally, type a description.

    Command

    Enter the CLI commands.

    You can now add the custom command to a FortiSwitch template.

  5. Go to FortiSwitch Manager > FortiSwitch Templates > FortiSwitch Template, and edit an existing template or create a new one.
  6. In the Custom Command Entry table, click Create New.
    The Create New Custom Command Entry dialog appears.
  7. Enter a name for the command entry and select your previously configured custom command. Click OK, and save your changes to the FortiSwitch template.

    You can now install the custom command using the Install Wizard. See Installing changes to managed switches.

Creating custom commands

When creating or editing a new FortiSwitch template, you can include custom commands in the template. After the template has been assigned to the FortiSwitch, use the Install Wizard to install the custom command entry to the FortiGate.

To create a custom command:
  1. Go to FortiSwitch Manager > FortiSwitch Templates.
  2. In the tree menu, select Custom Command.
  3. In the content pane, click Create New in the toolbar. The Create New Custom Command window opens.
    Below is an example custom command.
  4. Enter the following information, then click OK to create the new custom command.
    Name Type a name for the custom command template.
    Description Optionally, type a description.

    Command

    Enter the CLI commands.

    You can now add the custom command to a FortiSwitch template.

  5. Go to FortiSwitch Manager > FortiSwitch Templates > FortiSwitch Template, and edit an existing template or create a new one.
  6. In the Custom Command Entry table, click Create New.
    The Create New Custom Command Entry dialog appears.
  7. Enter a name for the command entry and select your previously configured custom command. Click OK, and save your changes to the FortiSwitch template.

    You can now install the custom command using the Install Wizard. See Installing changes to managed switches.