Creating or editing a configuration file

Use the procedures in this section to create a new OpenSwitch configuration file or edit an existing one.

StepsSetting up the OpenSwitch configuration file

  1. To create a new OpenSwitch configuration file, go to %OPENSWITCH%\config in Windows or $OPENSWITCH/config in UNIX and copy the sample.cfg file by entering the following, where OpenSwitch_ServerName is the name of your server configuration file:

    • On UNIX:

      cp sample.cfg OpenSwitch_ServerName.cfg
      
    • On Windows:

      copy sample.cfg OpenSwitch_ServerName.cfg
      

    Use a text editor to set the values in the configuration file you just created. Use the information in the tables in “Manually editing configuration options” for the definitions of the values to provide.

    NoteYou can also run the standalone configuration GUI to set the configuration parameters. See Chapter 3, “Configuring OpenSwitch” in the OpenSwitch Installation Guide.

  2. Save the file and close the text editor.

  3. Go to $OPENSWITCH on UNIX or %OPENSWITCH% on Windows and create a logs directory:

  4. Start OpenSwitch. You cannot start OpenSwitch until you have configured the product.

StepsEditing an existing OpenSwitch configuration file

  1. Stop OpenSwitch if it is running.

  2. Go to go to %OPENSWITCH%\config on Windows or $OPENSWITCH/config on UNIX.

  3. In a text editor, open the OpenSwitch configuration file which has the .cfg file name extension; for example, OpenSwitch_ServerName.cfg.

  4. Modify the files as necessary using the remainder of this chapter for reference.

  5. Save the updated file and close the text editor.

  6. Restart OpenSwitch.