one of Web Instance

adeel

VIP Member
Hello there

I want to stop web instance from windows command prompt not from server manager.
Can anyone please tell me how to achieve that?
Screen shot is attached.

Thanks
 

Attachments

  • web.PNG
    web.PNG
    6.2 KB · Views: 8
Last edited:
Assuming you are using WebLogic, refer to Oracle Doc. 1294574.1, and specifically look at Question 7, which discusses creating a Windows service to manage a WLS instance. Once that's done, then it's just a matter of starting/stopping the Windows service, which you can script to run from a command prompt (or even as a scheduled task). One thing we found is that these services needed to be set to have a startup type of Automatic Delayed.
 
Thanks Don, we have Websphere and it is setup the way that if I restart windows services it will restart all the instance of web, so my option is only to restart one web instance and there must be a way to do it outside server manager as I can stop/restart each web instance within server manager.

Thanks
 
We do this with our Websphere 8.5 servers running on windows. It will create a windows batch file that you can put into the task scheduler etc. I wrote some instructions for our own guys based on the IBM manual and here they are (the key command is point 2)

Generate a batch file which can be run from a scheduled task
1. Navigate to C:\IBM\WebSphere\AppServer\bin
2. Type startserver <serverName> - script
Eg. startserver JDESERVER1_J2EE_PD –script Note this is case sensitive on the server name field
3. If successful you should see the messages below in your command prompt window.

C:\IBM\WebSphere\AppServer\bin> startserver JDESERVER1_J2EE_PD –script
ADMU0116I: Tool information is being logged in file
C:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\JDESERVER1_J2EE_PD\startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: JDESERVER1_J2EE_PD
ADMU3300I: Launch script for server created: start_JDESERVER1_J2EE_PD.bat

Note: To find the serverName, from the cmd line type serverstatus -all
 
Last edited:
Hi Kieran

I looked IBM document and it is way complicated. I follow your instruction and the .bat not created and find the log file when I do serverstatus - all

Also find the services which starts all the instances on the Non production box and I just need to know how I can just restart only DV instance. I can give you info from server manager if that helps?


************ Start Display Current Environment ************
Host Operating System is Windows Server 2008 R2, version 6.1 build 7601 Service Pack 1
Java version = JRE 1.6.0 IBM J9 2.4 Windows Server 2008 R2 amd64-64 jvmwa6460sr9-20110619_85080 (JIT enabled, AOT enabled)
J9VM - 20110619_085080
JIT - r9_20101028_17488ifx12
GC - 20101027_AA, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = E:\WebSphere\AppServer
user.install.root = E:\WebSphere\AppServer\profiles\Dmgr01
Java Home = E:\WebSphere\AppServer\java\jre
ws.ext.dirs = E:\\WebSphere\\AppServer\\java\\lib;E:\\WebSphere\\AppServer\\classes;E:\\WebSphere\\AppServer\\lib;E:\\WebSphere\\AppServer\\installedChannels;E:\\WebSphere\\AppServer\\lib\\ext;E:\\WebSphere\\AppServer\\web\\help;E:\\WebSphere\\AppServer\\deploytool\\itp\\plugins\\com.ibm.etools.ejbdeploy\\runtime
Classpath = E:\WebSphere\AppServer\profiles\Dmgr01\properties;E:\WebSphere\AppServer\properties;E:\WebSphere\AppServer\lib\startup.jar;E:\WebSphere\AppServer\lib\bootstrap.jar;E:\WebSphere\AppServer/lib/lmproxy.jar;E:\WebSphere\AppServer/lib/urlprotocols.jar;E:\WebSphere\AppServer\java\lib\tools.jar
Java Library path = E:\WebSphere\AppServer\java\jre\bin\default;E:\WebSphere\AppServer\java\jre\bin;C:\Windows\system32;C:\Windows;E:\WebSphere\AppServer\bin;E:\WebSphere\AppServer\java\bin;E:\WebSphere\AppServer\java\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;.
Current trace specification = *=info
************* End Display Current Environment *************
[10/12/15 9:13:05:879 EST] 00000000 ManagerAdmin I TRAS0017I: The startup trace state is *=info.
[10/12/15 9:13:06:098 EST] 00000000 AdminTool A ADMU0128I: Starting tool with the Dmgr01 profile
[10/12/15 9:13:06:098 EST] 00000000 AdminTool A ADMU0503I: Retrieving server status for all servers
[10/12/15 9:13:06:113 EST] 00000000 AdminTool A ADMU0505I: Servers found in configuration:
[10/12/15 9:13:06:113 EST] 00000000 AdminTool A ADMU0506I: Server name: dmgr
[10/12/15 9:13:06:144 EST] 00000000 ModelMgr I WSVR0801I: Initializing all server configuration models
[10/12/15 9:13:08:282 EST] 00000000 SSLConfig W CWPKI0041W: One or more key stores are using the default password.
[10/12/15 9:13:08:297 EST] 00000000 SSLConfigMana I CWPKI0027I: Disabling default hostname verification for HTTPS URL connections.
[10/12/15 9:13:08:469 EST] 00000000 AdminTool A ADMU0508I: The Deployment Manager "dmgr" is STARTED
************ Start Display Current Environment ************
Host Operating System is Windows Server 2008 R2, version 6.1 build 7601 Service Pack 1
Java version = JRE 1.6.0 IBM J9 2.4 Windows Server 2008 R2 amd64-64 jvmwa6460sr9-20110619_85080 (JIT enabled, AOT enabled)
J9VM - 20110619_085080
JIT - r9_20101028_17488ifx12
GC - 20101027_AA, Java Compiler = j9jit24, Java VM name = IBM J9 VM
was.install.root = E:\WebSphere\AppServer
user.install.root = E:\WebSphere\AppServer\profiles\Dmgr01
Java Home = E:\WebSphere\AppServer\java\jre
ws.ext.dirs = E:\\WebSphere\\AppServer\\java\\lib;E:\\WebSphere\\AppServer\\classes;E:\\WebSphere\\AppServer\\lib;E:\\WebSphere\\AppServer\\installedChannels;E:\\WebSphere\\AppServer\\lib\\ext;E:\\WebSphere\\AppServer\\web\\help;E:\\WebSphere\\AppServer\\deploytool\\itp\\plugins\\com.ibm.etools.ejbdeploy\\runtime
Classpath = E:\WebSphere\AppServer\profiles\Dmgr01\properties;E:\WebSphere\AppServer\properties;E:\WebSphere\AppServer\lib\startup.jar;E:\WebSphere\AppServer\lib\bootstrap.jar;E:\WebSphere\AppServer/lib/lmproxy.jar;E:\WebSphere\AppServer/lib/urlprotocols.jar;E:\WebSphere\AppServer\java\lib\tools.jar
Java Library path = E:\WebSphere\AppServer\java\jre\bin\default;E:\WebSphere\AppServer\java\jre\bin;C:\Windows\system32;C:\Windows;E:\WebSphere\AppServer\bin;E:\WebSphere\AppServer\java\bin;E:\WebSphere\AppServer\java\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;.
Current trace specification = *=info
************* End Display Current Environment *************
[10/12/15 15:00:59:134 EST] 00000000 ManagerAdmin I TRAS0017I: The startup trace state is *=info.
[10/12/15 15:00:59:196 EST] 00000000 AdminTool A ADMU0128I: Starting tool with the Dmgr01 profile
[10/12/15 15:00:59:196 EST] 00000000 AdminTool A ADMU0503I: Retrieving server status for all servers
[10/12/15 15:00:59:196 EST] 00000000 AdminTool A ADMU0505I: Servers found in configuration:
[10/12/15 15:00:59:212 EST] 00000000 AdminTool A ADMU0506I: Server name: dmgr
[10/12/15 15:00:59:228 EST] 00000000 ModelMgr I WSVR0801I: Initializing all server configuration models
[10/12/15 15:01:00:897 EST] 00000000 SSLConfig W CWPKI0041W: One or more key stores are using the default password.
[10/12/15 15:01:00:913 EST] 00000000 SSLConfigMana I CWPKI0027I: Disabling default hostname verification for HTTPS URL connections.
[10/12/15 15:01:01:069 EST] 00000000 AdminTool A ADMU0508I: The Deployment Manager "dmgr" is STARTED



Thanks
 

Attachments

  • windows services.jpg
    windows services.jpg
    3.4 KB · Views: 2
Last edited:
Yes, if you use the command I posted it will create a .bat for each instance, so you can stop and start then individually. We run all ours from Windows scheduler

serverstatus -all

shows you the running instances and the instance name
 
Back
Top