IBM Tivoli Composite Application Manager for Application Diagnostics, Version 7.1.0.1
Windows 2003 Server: manually configuring the Managing Server to run as a service
The Managing Server on Windows 2003 Server must be configured to run as a service. The Managing Server installer will automatically perform this configuration. However, if the Managing Server was installed before version 6.1.0.3, or if the Windows service setup is lost for any reason, you can configure it manually.
To manually configure the Managing Server to run as a service:
- Install Windows Server 2003 Resource Kit Tools from the following Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en- Create a service that starts the srvany.exe executable that belongs to Windows Server 2003 Resource Kit Tools. srvany.exe enables any executable to be run as a Windows service. The following syntax is to be used for service creation:
path\instsrv ServiceName path\srvany.exeThe paths for instsrv and srvany.exe are to be fully qualified and be of 8.3 style. For example:
C:\PROGRA~1\WINDOW~4\Tools\instsrv am_service C:\PROGRA~1\WINDOW~4\Tools\srvany.exe- Configure the created service using regedit:
- Click Start, and then click Run.
- Enter regedit, and click OK.
- Add a new subkey named Parameters in the following registry location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\newly_created_serviceFor example:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\am_service- Right-click the newly created service name, select New, and then select Key.
- In the console pane, for the name of the new key, type Parameters.
- To specify the target application, right-click the Parameters subkey, select New, and then select String Value. Type the name of the new entry as Application.
- Right-click Application and then select Modify.
- In the Edit String window, in Value Data, type the full path to the application to be run (the Korn-shell start-up file because the Managing Server starts on Windows in a Korn-shell environment), including the full application name and extension. For example:
C:\SFU\common\ksh.bat- Set the start parameters:
- Right-click the Parameters subkey, select New, and then select String Value.
- Type the name of the new entry as AppParameters.
- Right-click AppParameters and then select Modify.
- In the Edit String window, in Value Data, type the parameters for starting the Managing Server. For example:
-l /dev/fs/C/PROGRA~1/ibm/itcam/WEBSPH~1/MS/bin/am-start.shThe easiest way to get data for filling in the string values is to click Start -> Programs -> ITCAMfWS then right-click am-start.sh and select Properties. The value for the field target contains a space-separated string. Something like:C:\SFU\common\ksh.bat -l/dev/fs/C/PROGRA~1/ibm/itcam/WEBSPH~1/MS/bin/am-start.shThe first token is the Application (Korn-shell start-up file), and the next two tokens are AppParameters.When copying the tokens for AppParameters, the separating space must be left intact.
- The service properties must be set using the Services Microsoft Management Console (MMC) Snap-in:
- Click Start -> Control Panel -> Administrative Tools -> Services.
- In the details pane, right-click the added service and then select Properties.
- In the General tab, ensure that Startup Type is set to Automatic.
- In the Log on tab, select This account and click Browse to choose the account under which the Managing Server has to be run.
- Enter the password.
The account must have the privileges Log on as a service and Act as part of the Operating System.
- In the Recovery tab, First failure and Second failure can be set to Restart the service and Restart service after. Values can be increased if IBM DB2 services do not complete starting before they are accessed by the Managing Server.
- After configuration is completed, restart the Windows server.
If the Managing Server is started or stopped directly using the am-start.sh and am-stop.sh commands, the Windows service will not correctly show the started/stopped status of the Managing Server.
Parent topic:
Customization for the Managing Server on Windows