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”.
Starting
OpenSwitch from the Start menu
Select Start | Programs | OpenSwitch | OpenSwitch.
Starting OpenSwitch from a command prompt
Open a Command Prompt window, and go to the %SYBASE% directory. Enter:
.\SYBASE.bat
In the Command Prompt window, enter:
cd %SYBASE%\OpenSwitch-15_1\bin
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
See 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.
Starting OpenSwitch as a Windows service
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.
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.
Open the Registry Editor. Select Start | Run,
enter regedit
in the Open text
field, then click OK.
In the Registry Editor window, go to HKEY_LOCAL_MACHINE | SYSTEM | CurrentControlSet | Services and click the OpenSwitch server name).
Add a new key by selecting Edit | New | Key.
Enter Parameters
as the Key
name.
Click Parameters and add a new string value by selecting
Edit | New | String Value. Enter Application
as
the new String value.
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.
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.
srvany.exe is installed on Windows
Enterprise Edition operating systems as part of the Resource Kit.
If srvany.exe is not on your machine, go to Microsoft Web site.
Exit the Registry Editor by going to Registry | Exit.
Select Control Panel | Services. Click OpenSwitch OpenSwitch_ServerName, then click Startup.
In the “Log On As” section, select the box near “Allow Service to Interact with Desktop,” and click OK.
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.
Removing OpenSwitch as a service
Shut down OpenSwitch if it is running, and go to %OPENSWITCH%\bin.
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.