Fortinet black logo

Online Help

Saving and naming for multi-context configuration file

Saving and naming for multi-context configuration file

If your Cisco device contains multiple contexts, please follow the steps below to prepare the input files of FortiConverter:

  1. Switch to the system execution space using the command:
  2. changeto system

    Then use the commands given previously to show the system configuration, and save it into a single file.

  3. Switch to each context using the command:
  4. changeto context <context-name>

    Save the configuration of each context into a single file separately. It is fine to skip the contexts you don’t want to convert.

  5. Open the system file and find the context definitions inside, and rename the context config file using the names after keyword config-url disk0:/.
  6. For example, in the screen shot below, the system file contains the definition of context "admin", "test_second" and "third". Then according to the definition, rename the config of the context "admin" as "admin.cfg", context "test_second" as "test_second.cfg", and context "third" as "third.cfg".

  7. Archive all the context config files into a ZIP file.
  8. Input the configs as below to do the conversion:

Saving and naming for multi-context configuration file

If your Cisco device contains multiple contexts, please follow the steps below to prepare the input files of FortiConverter:

  1. Switch to the system execution space using the command:
  2. changeto system

    Then use the commands given previously to show the system configuration, and save it into a single file.

  3. Switch to each context using the command:
  4. changeto context <context-name>

    Save the configuration of each context into a single file separately. It is fine to skip the contexts you don’t want to convert.

  5. Open the system file and find the context definitions inside, and rename the context config file using the names after keyword config-url disk0:/.
  6. For example, in the screen shot below, the system file contains the definition of context "admin", "test_second" and "third". Then according to the definition, rename the config of the context "admin" as "admin.cfg", context "test_second" as "test_second.cfg", and context "third" as "third.cfg".

  7. Archive all the context config files into a ZIP file.
  8. Input the configs as below to do the conversion: