2012년 1월 9일 월요일

[WebSphere] Using WASServiceCmd to create Windows services for WebSphere Application Servers

Using WASServiceCmd to create Windows services for WebSphere Application Servers


Problem(Abstract)

WASServiceCmd.exe is a front end for WASService.exe, which is shipped with WebSphere Application Server. WASService.exe is required in its default directory for adding, updating, and removing WebSphere Services in Windows.
See DeveloperWorks article for detailed information: (Link at the bottom of this document)

Symptom

Creating and removing a WebSphere service in Windows is confusing and error prone.

Cause

This application takes several parameters which can be confusing to the user along with several long path strings leaving opportunities to setup incorrectly.

Environment

Windows

Resolving the problem



  1. Place the WASServiceCmd.exe utility in the following directory:
    install_root​\bin​

  2. Launch the command from the command line.
  3. The WASServiceCmd utility prompts you to select specific options and settings from a list and then calls the WASService.exe command passing all selected parameters. This greatly reduces the time it takes to create a Windows service for WebSphere Application Server and reduces the opportunity for user errors.

Flash demonstration

Note:
This also creates an entry in the WASServiceCmd.log in the current directory which contains the actual WASService.exe command used to create the service.

Example of a log entry:

[Fri Aug 14 12:22:01 -0500 2009]  WASService.exe -add "Deployment Mgr01" -serverName "dmgr" ​
-profilePath "C:\Program Files​\​IBM​\​WebSphere​\​AppServer​\​profiles​\​Dmgr01"​  ​
-logRoot "C:\Program Files​\​IBM​\​WebSphere​\​AppServer​\​profiles​\​Dmgr01​\​logs​\​dmgr"​​
 -logFile "C:\Program Files​\​IBM​\​WebSphere​\​AppServer​\​profiles​\​Dmgr01​\​logs​\​dmgr​\​ WS​_​startdmgr.log"​ -encodeParams -stopArgs "-username vanno -password ****** " ​
-startType manual ​
-restart false​


WASServicecmd.zip

Notice:
Some browsers are having trouble downloading this file and getting docview.wss instead. Download this file, then rename the file with a ".zip" extension (for example, docview.zip or WASServiceCmd.zip). You can now access the utility. See DeveloperWorks article for more information:
The Support Authority: Take the confusion (and errors) out of creating Windows services for WebSphere Application Server


See TroubleShooting: WebSphere Application Server (Windows Services) problems for V6.0, V6.1 and V7.0 if you are still having a problem with Windows services.

댓글 없음:

댓글 쓰기