WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  WAS Services

    Posted 11/17/11 07:19 AM
    Hi All,

    I have created new cluster setup in windows.

    In services, Dmgr service only added. I want to add server service. Because when i

    logoff remote server session server is gone to un available state.

    At the time of installation i have choosen cell profile type. In AppSer01 profile i have

    created one cluster member.

    How can i add AppSrv01 profile service in windows.

    Please help me.  

    Thanks,
    Chinna.


  • 2.  WAS Services

    Posted 11/17/11 08:16 AM
    Morning Chinna.

    To register the AppSrv01 service as a Windows service, you will need to use the included WASService.exe located in the \bin directory.  Additional information can be found here:  publib.boulder.ibm.com/infocenter/wasinf...

    As a word of caution, if you have enabled administrative security (and from past posts I believe you have,)  you need to specify a username and password that ultimately has credentials to stop the service.  Below you can see and example:

    WASService.exe
    -add MyServiceName
    -serverName hostName_AppSrvr01
    -profilePath D:\IBM\WebSpherebit.0\ND\profiles\AppSrv01\
    -wasHome D:\IBM\WebSpherebit.0\ND\
    -logRoot D:\IBM\WebSpherebit.0\ND\profiles\AppSrv01\logs\hostName\AppSrvr01\
    -stopArgs "-username FOO -password BAR"
    -startType automatic


    The above registeres the WAS service as "IBM  WebSphere Application Server v7.0 - MyServiceName" in the Component Services viewer and sets the start type to be Automatic.  You may want to consider setting this to "Delayed Start" depending on your OS depending on the start time of the NodeAgent (from personal experience running on windows.)  The stopArgs are what I called out in the first paragraph.  If you don't include these then the service will likely not stop when you issue the stop server command since it calls the Windows Service to stop the websphere JVM - and you don't have the credentials defined.  The rest are normal path arguments.

    Good luck and please let us know if it works out for you.

    Erik  



  • 3.  WAS Services

    Posted 11/18/11 02:20 AM
    Hi Erik,

    Thanks for your help.

    C:\Program Files\IBM\WebSphere\AppServer\bin>


    WASService.exe -add "Applicationserver server1"
    -serverName "server1"
    -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01"
    -wasHome "C:\Program Files\IBM\WebSphere\AppServer"
    -logRoot "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\server1"
    -stopArgs "-userid acbd -password India123"
    -startType automatic

    What you given it should work, but in my environment WAS is installed on default installation location. Its not accepting spaces between "progaram files"  i given double quotes for path.

    Service added sucessfully.

    I want to know one thing. Please clarify.  Now i have added WAS server service in winows, after restarting server/ reboot server, this service will start. But i didn't added node agent service. If node agent service not added, it will start server automatically after server  reboot. I need to add node agent service also.


    Please help me.


    Thanks,
    Chinna



  • 4.  WAS Services

    Posted 11/18/11 07:58 AM
    Chinna,
    You were correct in that you needed to add the double quotes around the entire path if your path contains spaces, or to use the windows short path. 

    The steps of registering the service via WASService.exe are specific to the JVM you specified in the paramters.  Thus, the nodeagent service wouldn't automatically be registered as a windows service when registering the application server. 

    Once you update the paramaters, you can rerun the WASService.exe an register the nodeagent service.  The server name is litterally "nodeagent" if that helps you out.  the rest should be straight forward for you at this point.

    Good luck.

    Erik  


  • 5.  WAS Services

    Posted 12/07/11 03:51 PM

    Chinna


    Since you are running on a windows system like I am take a look at the following which has been a life saver for us.


    www-01.ibm.com/support/docview.wss?uid=s...