Starting OpenSwitch

OpenSwitch starts automatically after you install and configure the product. If you chose not to configure OpenSwitch during installation, go to “Configuring OpenSwitch using the GUI tool”.

StepsStarting OpenSwitch from the Start menu

  1. Select Start | Programs | OpenSwitch | OpenSwitch.

StepsStarting OpenSwitch from a command prompt

  1. Open a Command Prompt window, and go to the %SYBASE% directory. Enter:

    .\SYBASE.bat
    
  2. In the Command Prompt window, enter:

    cd %SYBASE%\OpenSwitch-15_1\bin
    
  3. Enter the following, where -c is the name of the OpenSwitch configuration file to use during start-up:

    start OpenSwitch.bat -c ..\config\OpenSwitch_ServerName.cfg
    

NoteSee Chapter 4, “Starting and Stopping OpenSwitch and RCMs,” in the OpenSwitch Administration Guide for information about using encrypted user names and passwords and a list of command line options that let you adjust the program’s behavior.

StepsStarting OpenSwitch as a Windows service

  1. Go to %OPENSWITCH%\bin and use a text editor to set the OPENSWITCH and SYBASE_OCS environment variables in the OpenSwitch.bat file. Save the file and close the text editor.

  2. From %OPENSWITCH%\bin, open a Command Prompt window and enter:

    .\OpenSwitch.bat -c Path of OpenSwitch Config file -R install
    

    This installs OpenSwitch as a service.

  3. Open the Registry Editor. Select Start | Run, enter regedit in the Open text field, then click OK.

  4. In the Registry Editor window, go to HKEY_LOCAL_MACHINE | SYSTEM | CurrentControlSet | Services and click the OpenSwitch server name).

    1. Add a new key by selecting Edit | New | Key. Enter Parameters as the Key name.

    2. Click Parameters and add a new string value by selecting Edit | New | String Value. Enter Application as the new String value.

    3. Double-click Application. The Edit String dialog box appears. In Value Data field, enter:

      OpenSwitch install directory\bin\OpenSwitch.bat 
           -c OpenSwitch install directory\config\OpenSwitch_ServerName.cfg
           -l OpenSwitch install directory\bin\OpenSwitch_ServerName.log
      

      where:

      • -c – is the OpenSwitch Config file location

      • -1 – is the OpenSwitch log file location.

      • OpenSwitch_ServerName.cfg – is an example of the OpenSwitch configuration file name. You should replace with the actual file name of your OpenSwitch configuration file.

      Click OK.

    4. In the left pane of the Registry Editor window, click your service name. In the right pane of the Registry Editor, double-click the “ImagePath” string and delete the string that is in the Edit String dialog box.

      Enter the full path to the srvany.exe file. For example:

      C:\Program Files\Resource Kit\srvany.exe
      

      Click OK.

    5. Exit the Registry Editor by going to Registry | Exit.

  5. Select Control Panel | Services. Click OpenSwitch OpenSwitch_ServerName, then click Startup.

  6. In the “Log On As” section, select the box near “Allow Service to Interact with Desktop,” and click OK.

  7. Click Start to bring OpenSwitch up as a service.

    By default, Startup Type is Manual. Change this to Automatic to start OpenSwitch as a service automatically the next time the Windows machine is restarted.

StepsRemoving OpenSwitch as a service

  1. Shut down OpenSwitch if it is running, and go to %OPENSWITCH%\bin.

  2. At a command prompt, enter the following on one line, where path is the path of the OpenSwitch Config file:

    .\OpenSwitch.bat -c path -R remove
    

    This stops the service and removes it from the Registry.