Skip to main content

developerWorks >  Tivoli  >  Forums  >  Maximo  >  developerWorks

Restarting Maximo from Windows Service - NodeAgent    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 5 - Pages: 1 - Last Post: Nov 5, 2009 2:57 PM Last Post By: smart_boy
Swiz

Posts: 45
Registered: Apr 23, 2008 10:40:58 AM
Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 04, 2009 12:24:21 PM
 
Click to report abuse...   Click to reply to this thread Reply
I have a need to automate Maximo restarts by using the "net stop" and "net start" commands. The effect I was expecting was that my Maximo app instances would actually restart, however what I am seeing is that the Maximo instances do not behave that way when the commands above are used. My Maximo applications are not restarted.

Specifically I am using this command {net stop "IBMWAS6Service - NodeAgent"}.

Has anyone automated a procedure like the one I am describing, if so would you mind sharing your experiences.
matt_f

Posts: 4
Registered: Nov 19, 2008 01:56:39 PM
Re: Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 04, 2009 04:59:13 PM   in response to: Swiz in response to: Swiz's post
 
Click to report abuse...   Click to reply to this thread Reply
The following batch files in the WAS profile directory will stop and start the nodes:

C:\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\bin\stopNode.bat
C:\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\bin\startNode.bat

The "WebSphere Application Server V6 System Management and Configuration Handbook", page 230, has additional information on these commands.
JP Ciccardini

Posts: 5
Registered: Oct 26, 2009 09:38:31 AM
Re: Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 05, 2009 06:53:17 AM   in response to: Swiz in response to: Swiz's post
 
Click to report abuse...   Click to reply to this thread Reply
See here what I have used to start Node and MxServer as NT Services, hope this helps - JP

PS: Note that your WAS home variable may be different on your machine

1) Node

WASService -add NodeAgent -serverName nodeagent -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\ctgAppSrv01" -wasHome "C:\Program Files\IBM\WebSphere\AppServer\profiles" -logRoot "C:\Program Files\IBM\WebSphere\AppServer\logs\managerprofiles\ctgAppSrv01" -logFile "C:\Program Files\IBM\WebSphere\AppServer\logs\managerprofiles\ctgAppSrv01\startNodeAgent.log" -restart true

2) MxServer

WASService -add MXServer -serverName MXServer -profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\ctgAppSrv01" -wasHome "C:\Program Files\IBM\WebSphere\AppServer\profiles" -logRoot "C:\Program Files\IBM\WebSphere\AppServer\logs\managerprofiles\ctgAppSrv01" -logFile "C:\Program Files\IBM\WebSphere\AppServer\logs\managerprofiles\ctgAppSrv01\startServer.log" -restart true

Swiz

Posts: 45
Registered: Apr 23, 2008 10:40:58 AM
Re: Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 05, 2009 12:02:11 PM   in response to: JP Ciccardini in response to: JP Ciccardini's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks Matt and JP.
Swiz

Posts: 45
Registered: Apr 23, 2008 10:40:58 AM
Re: Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 05, 2009 01:13:32 PM   in response to: matt_f in response to: matt_f's post
 
Click to report abuse...   Click to reply to this thread Reply
Matt, this works exactly how I needed, thanks for the info!
smart_boy

Posts: 18
Registered: Aug 23, 2006 03:02:15 PM
Re: Restarting Maximo from Windows Service - NodeAgent
Posted: Nov 05, 2009 02:57:41 PM   in response to: Swiz in response to: Swiz's post
 
Click to report abuse...   Click to reply to this thread Reply
you can also use this one

C:\ibm\WebSphere\AppServer\bin\startNode.bat
C:\ibm\WebSphere\AppServer\bin\stopNode.bat

Point your RSS reader here for a feed of the latest messages in all forums