{"id":332,"date":"2016-02-12T02:14:40","date_gmt":"2016-02-11T20:44:40","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=332"},"modified":"2016-02-12T02:14:40","modified_gmt":"2016-02-11T20:44:40","slug":"wasservicehelper-utility-in-was-v8","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/02\/12\/wasservicehelper-utility-in-was-v8\/","title":{"rendered":"WASServiceHelper utility in WAS v8.5"},"content":{"rendered":"<p><script src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\" async=\"\"><\/script>WASServiceHelper utility in WAS v8.5 can be used as a front end for WASService.exe command to add, update, or remove WebSphere Application Server services on a Windows operating system.<\/p>\n<p>Customers who use Application server on Windows machines ask me regularly on how to utilize Application server instances as Windows services. WASService.exe is one command that can be used to create windows services for application server instances.<\/p>\n<p>wasservicehelper.bat command is used to add, update, or remove WebSphere Application Server services on a Windows operating system. Both wasservicehelper.bat and WASService.exe commands reside under Application Server root directory. They don&#8217;t exist in Profile directory but they are available in Application server root directory. <\/p>\n<p>Using the WASService command to add or remove a WebSphere Application Server service on a Windows operating system can be confusing and error prone. The WASServiceHelper utility greatly reduces the time it takes to add, update, or remove a Windows service for WebSphere Application Server and reduces the opportunity for errors.<\/p>\n<p>WASServiceHelper utility includes the following options:<\/p>\n<ol>\n<li>Add a new or update an existing Windows service using the minimum required parameters<\/li>\n<li>Add a new or update an existing Windows service using all available parameters<\/li>\n<li>Remove a service<\/li>\n<li>Display the status of a service<\/li>\n<li>Enable WASService traces for problem determination\n<\/li>\n<\/ol>\n<p>I have done the same process on my system and below are the screenshots for reference.<\/p>\n<p>1.Invoke wasservicehelper.bat command from Websphere Application server root directory as below, (Make sure that we are running the command prompt as Administrator and NOT with a normal user rights. otherwise command gets failed)<\/p>\n<p>Select option 1 so that minimum set of parameters can be used to create a service.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-449 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice1.png\" alt=\"WASServiceHelper utility in WAS v8.5\" width=\"637\" height=\"357\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice1.png 637w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice1-300x168.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/p>\n<p>I already have one WAS server instance and this utility will recognizes for profiles invoked from Appserver directory. I select 3 here for AppSrv01 instance.<\/p>\n<p>2. Select instance name and here I have used server1. Provide Service name so that windows service can log an entry for the same. Restart Policy and Startup Type can be made Automatic as this is the main intention of making the servers started when windows starts. Provide User id and password of the server instance<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-450 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice2.png\" alt=\"WASServiceHelper utility in WAS v8.5\" width=\"639\" height=\"856\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice2.png 639w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice2-224x300.png 224w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p>3. Provide logon user details along with WAS profile user id and password. Check the Execute command and then provide Y to proceed for WAS Service creation. Once done it will create a WAS Server Instance Service in Windows Operating System Services.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-451\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice3.png\" alt=\"wasservice3\" width=\"1483\" height=\"468\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice3.png 1483w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice3-300x95.png 300w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice3-768x242.png 768w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice3-1024x323.png 1024w\" sizes=\"auto, (max-width: 1483px) 100vw, 1483px\" \/><\/p>\n<p>Once this command gets executed, we can view the service being created in Windows.<\/p>\n<p>Check the command again for the status of the service using below screenshot. (i initially stopped the service and then started it again to verify the commands)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-452\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice4.png\" alt=\"wasservice4\" width=\"627\" height=\"437\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice4.png 627w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/02\/wasservice4-300x209.png 300w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>WASServiceHelper utility Link from <span style=\"text-decoration: underline;\"><a href=\"http:\/\/www-01.ibm.com\/support\/knowledgecenter\/SSEQTP_8.5.5\/com.ibm.websphere.base.doc\/ae\/tins_wasservicecmd.html\" target=\"_blank\">IBM Knowledge Center<\/a><\/span> <\/p>\n<p>&nbsp;<\/p>\n<p>WASService command usage from <a href=\"http:\/\/www-01.ibm.com\/support\/knowledgecenter\/SSEQTP_8.5.5\/com.ibm.websphere.base.doc\/ae\/rins_wasservice.html\" target=\"_blank\"><span style=\"text-decoration: underline;\">IBM Knowledge Center<\/span><\/a><br \/>\n<script>\/\/ <![CDATA[\n(adsbygoogle = window.adsbygoogle || []).push({});\n\/\/ ]]><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WASServiceHelper utility in WAS v8.5 can be used as a front end for WASService.exe command to add, update, or remove WebSphere Application Server services on a Windows operating system. Customers who use Application server on Windows machines ask me regularly on how to utilize Application server instances as Windows services. WASService.exe is one command that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[116,117,115,114],"class_list":["post-332","post","type-post","status-publish","format-standard","hentry","category-websphere-application-server","tag-was-v8-5","tag-was-windows-service","tag-wasservice","tag-wasservicehelper"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":6,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":455,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/332\/revisions\/455"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}