{"id":4724,"date":"2015-05-07T12:44:26","date_gmt":"2015-05-07T04:44:26","guid":{"rendered":"http:\/\/rmohan.com\/?p=4724"},"modified":"2015-05-07T12:44:26","modified_gmt":"2015-05-07T04:44:26","slug":"creating-a-windows-service-for-the-node-agent","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4724","title":{"rendered":"Creating a Windows service for the node agent"},"content":{"rendered":"<div class=\"shortdesc\">In a network deployment configuration, you can create the node agent as a Windows service to make WebSphere\u00ae Application Server nodes easier to start and manage.<\/div>\n<div class=\"section context\">\n<div class=\"tasklabel\">\n<h2 class=\"sectiontitle tasklabel\">About this task<\/h2>\n<\/div>\n<div class=\"p\">Create the node agent as a Windows service so that the node agent starts automatically when the server is rebooted. An activated node agent communicates with the cell Deployment Manager to manage the set of servers on the node.<\/div>\n<div class=\"p\">If you do not create the node agent as a service, you must run the\u00a0<span class=\"keyword cmdname\">startNode<\/span>\u00a0command manually. For example:\u00a0<span class=\"ph filepath\"><span class=\"keyword\">&lt;was_home&gt;<\/span>\/profiles\/&lt;profile_name&gt;\/startNode.bat<\/span>.<\/div>\n<\/div>\n<div class=\"tasklabel\">\n<h2 class=\"sectiontitle tasklabel\">Procedure<\/h2>\n<\/div>\n<ol class=\"ol steps\">\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Open a command prompt window.<\/span><\/li>\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Change the directory to\u00a0<span class=\"ph filepath\"><span class=\"keyword\">&lt;was_home&gt;<\/span>\\bin<\/span>.\u00a0<\/span>For example: type\u00a0<kbd class=\"ph userinput\">cd c:\\Program Files\\IBM\\WebSphere\\AppServer\\bin<\/kbd><\/li>\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Type the following\u00a0<span class=\"keyword cmdname\">WASService<\/span>\u00a0command with the following parameters (case-sensitive, without the line breaks):<\/span>\n<pre class=\"pre codeblock\"><code>WASService <span class=\"keyword parmname parmname\">-add<\/span> &lt;profile_name&gt;_nodeagent <span class=\"keyword parmname parmname\">-serverName<\/span> nodeagent <span class=\"keyword parmname parmname\">-profilePath<\/span> \r\n\"<span class=\"keyword\">&lt;was_home&gt;<\/span>\\profiles\\&lt;profile_name&gt;\" <span class=\"keyword parmname parmname\">-wasHome<\/span> \r\n\"<span class=\"keyword\">&lt;was_home&gt;<\/span>\" <span class=\"keyword parmname parmname\">-logRoot<\/span> \r\n\"<span class=\"keyword\">&lt;was_home&gt;<\/span>\\profiles\\&lt;profile_name&gt;\\logs\\nodeagent\" <span class=\"keyword parmname parmname\">-logFile\u00a0<\/span>\r\n\"<span class=\"keyword\">&lt;was_home&gt;<\/span>\\profiles\\&lt;profile_name&gt;\\logs\\nodeagent\\startServer.log\" \r\n<span class=\"keyword parmname parmname\">-restart<\/span> true\r\n<span class=\"keyword parmname parmname\">-startType<\/span> automatic<\/code><\/pre>\n<div class=\"p\">Where<\/div>\n<div class=\"p\">\n<dl class=\"dl\">\n<dt class=\"dt dlterm\"><span class=\"keyword\">&lt;was_home&gt;<\/span><\/dt>\n<dd class=\"dd\">Specifies the directory where WebSphere Application Server is installed. For example:\u00a0<span class=\"ph filepath\">C:\\Program Files\\IBM\\WebSphere\\AppServer<\/span><\/dd>\n<dt class=\"dt dlterm\"><span class=\"ph filepath\">&lt;profile_name&gt;<\/span><\/dt>\n<dd class=\"dd\">Specifies the name of the custom node profile in Windows service. For example:\u00a0<kbd class=\"ph userinput\">Custom01<\/kbd>.<\/dd>\n<\/dl>\n<\/div>\n<p>Example (with sample values)<\/p>\n<div class=\"p\"><kbd class=\"ph userinput\">WASService\u00a0<span class=\"keyword parmname parmname\">-add<\/span>\u00a0Custom01_nodeagent\u00a0<span class=\"keyword parmname parmname\">-serverName<\/span>\u00a0nodeagent\u00a0<span class=\"keyword parmname parmname\">-profilePath<\/span>\u00a0\"c:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\Custom01\"\u00a0<span class=\"keyword parmname parmname\">-wasHome<\/span>\"c:\\Program Files\\IBM\\WebSphere\\AppServer\"\u00a0<span class=\"keyword parmname parmname\">-logRoot<\/span>\u00a0\"C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\Custom01\\logs\\nodeagent\"\u00a0<span class=\"keyword parmname parmname\">-logFile<\/span>\"C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\Custom01\\logs\\nodeagent\\startServer.log\"\u00a0<span class=\"keyword parmname parmname\">-restart<\/span>\u00a0true\u00a0<span class=\"keyword parmname parmname\">-startType<\/span>\u00a0automatic<\/kbd><\/div>\n<\/li>\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Press\u00a0<span class=\"ph uicontrol\">Enter<\/span>.<\/span>\u00a0For example: The last line of the screen is displayed.\n<pre class=\"pre screen\"><code>IBM WebSphere Application Server V7.0 - Custom01_nodeagent service successfully \r\nadded.<\/code><\/pre>\n<\/li>\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Close the command prompt.<\/span><\/li>\n<li class=\"li step stepexpand\"><span class=\"ph cmd\">Verify that the service is added to Windows services.<\/span>\n<ol class=\"ol substeps\" type=\"a\">\n<li class=\"li substep\"><span class=\"ph cmd\">Click\u00a0<span class=\"ph menucascade\"><span class=\"ph uicontrol\">Start<\/span>\u00a0&gt;\u00a0<span class=\"ph uicontrol\">Run<\/span><\/span>. Type\u00a0<kbd class=\"ph userinput\">services.msc<\/kbd>.<\/span><\/li>\n<li class=\"li substep\"><span class=\"ph cmd\">Verify that the node agent service is displayed. For example:<samp class=\"ph systemoutput\">IBM WebSphere Application Server v7.0 &#8211; Custom01_nodeagent<\/samp>.<\/span><\/li>\n<\/ol>\n<\/li>\n<li class=\"li step stepexpand\">Optional:\u00a0<span class=\"ph cmd\">If you have additional nodes, repeat this task for other nodes in your cluster. For example:\u00a0<var class=\"keyword varname\">Custom02<\/var>.<\/span><\/li>\n<\/ol>\n<div class=\"section result\">\n<div class=\"tasklabel\">\n<h2 class=\"sectiontitle tasklabel\">Results<\/h2>\n<\/div>\n<p>You added the node agent service to the list of Windows services.<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In a network deployment configuration, you can create the node agent as a Windows service to make WebSphere\u00ae Application Server nodes easier to start and manage. About this task Create the node agent as a Windows service so that the node agent starts automatically when the server is rebooted. An activated node agent communicates with [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4724"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4724"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4724\/revisions"}],"predecessor-version":[{"id":4725,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4724\/revisions\/4725"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}