Les,
Try: net stop "IBMWAS6Service - RVCAT052881DNode01" as opposed to
'IBMWAS6Service - IBMWAS6Service - RVCAT052881DNode01'
The wasservice utility is used to register the WebSphere server as a windows
service. Once it's registered, it can then be stopped and started using the
windows net stop/start.
Try running this:
wasservice -add RVCAT052881DNode01 -serverName
YOURWASSERVERNAME -profilePath YOURWASPROFILEPATH -startArgs "-user
YOURWASUSERNAME -password YOURWASPASSWORD" -stopArgs "-user
YOURWASUSERNAME -password YOURWASPASSWORD" -encodeParams
e.g.
D:\WebSphere6\AppServer\bin\wasservice.exe -add
RVCAT052881DNode01 -serverName server1 -profilePath
D:\WebSphere6\AppServer\profiles\default -startArgs "-user
wasadmin -password S0meD1ff1cultPa55w0rd" -stopArgs "-user
wasadmin -password S0meD1ff1cultPa55w0rd" -encodeParams
Then:
net stop "IBMWAS6Service - RVCAT052881DNode01"
and
net start "IBMWAS6Service - RVCAT052881DNode01"
Note: Make sure that the java process for this server is not already running
before running the net start.
The options for wasservice are below:
WASService.exe -add "service_name"
-serverName server
-profilePath server_profile_directory
[-wasHome app_server_root]
[-configRoot configuration_repository_directory]
[-startArgs additional_start_arguments]
[-stopArgs additional_stop_arguments]
[-userid user_id -password password]
[-logFile service_log_file]
[-logRoot server_log_directory]
[-restart true | -restart false]
[-startType automatic | manual | disabled]
Note the items in []'s are optional if the service has already been
registered.
Also, the -userid & -password listed as arguments for the wasservice utility
are for the Windows Service user account, not the WebSphere account.
Please see this link for more details.
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/topic/com.ibm.websphere.base.doc/info/aes/ae/rins_wasservice.html?resultof=%22%77%61%73%73%65%72%76%69%63%65%22%20%22%77%61%73%73%65%72%76%69%63%22%20
Hope this helps,
Charly.
Post by LesPost by Charly OzLes,
You could use the <WAS_HOME>\bin\wasservice utility to add "-username
user -password pass" to the start and stop options.
Make sure you use the encodeParams option as well so that these details
aren't stored in clear text in the registry.
http://www-306.ibm.com/software/webservers/appserv/was/library/) for
"wasservice" for more details.
wasservice.exe -stop "IBMWAS6Service - IBMWAS6Service -
Could not open service 'IBMWAS6Service - IBMWAS6Service -
RVCAT052881DNode01'
reason: The specified service does not exist as an installed
service.
If I leave the -stop off the command it does say it is starting the
service. It seems that if I put any parameter between the wassservice
and the service name it doesn't work.