Script:
Owner:
Subdir:
Blog ID: 75809171
Group ID: User ID:

Top Point Earners Today

    Online Community Coordinator
    Wellesley Information Services
    Points: 240
    ColdFusion/WebSphere Admininstrator
    AES/PHEAA
    Points: 160
 
Select Forum or Category:
Post Reply
Stop and Start Script
4 months ago  ::  Jan 24, 2012 - 5:44PM #1
Ravi
Websphere Administrator
Department of public instruction,NC
Posts: 20
Hi Guys,

Can Some One Provide me Script for Stopping And Starting All JVMs in a Single Node.

Currently we have 5 nodes each having 14 JVMs all in one Cluster.

WebSphere 6.1 On AIX.

Thanks
Ravi
0 (0 Ratings)
4 months ago  ::  Jan 24, 2012 - 7:08PM #2
Joseph
WebSphere Platform Technology Consultant
Consulting Ltd
Posts: 130
you can use jython scripting. Check the documentation about how to start/stop cluster using jython here: publib.boulder.ibm.com/infocenter/wasinf...

Also check this blog, he is one of the blooger on GWC also. The following link has a script to stop the cluster: websphere-automation.blogspot.com/2011/0...
0 (0 Ratings)
4 months ago  ::  Jan 25, 2012 - 3:15PM #3
Ravi
Websphere Administrator
Department of public instruction,NC
Posts: 20
Hi Joseph,

Thanks For the Links. But its all about Cluster Level.

But i am looking for Node Level.

Thanks
Ravi
0 (0 Ratings)
4 months ago  ::  Jan 25, 2012 - 3:43PM #4
Erik
Senior Middleware Administrator
Unspecified
Posts: 121
Ravi,
Just curious by what's the reason for wanting to terminate all java processes on a node?


Joseph's suggested direction of leveraging a jython at the cluster level is well advised.  If you terminate all java processes on the node then you would terminate the nodeagent process as well making remote adminsitration impossible. 

Can you elaborate for us and perhaps a member could offer a better option or direction to achieve the same end goal.

Erik
0 (0 Ratings)
4 months ago  ::  Jan 31, 2012 - 7:33PM #5
md
Sr. Programmer Analyst
Verizon Wireless
Posts: 10
This may not be the most ideal solution, but you can always write a simple shell script for each node to shut down all the JVMs on that node.  In the script you'd just run the stopServer.sh script for each JVM.
0 (0 Ratings)
4 months ago  ::  Jan 31, 2012 - 7:55PM #6
md
Sr. Programmer Analyst
Verizon Wireless
Posts: 10
If you want to do it using wsadmin scripting, I think this should work.  No promises though, I haven't tested it.

node_name = 'TestNode'
server_namess = [AdminConfig.showAttribute(id, 'name') for id in AdminConfig.list('Server', AdminConfig.getid('/Node:%s/' % node_name)).split('\n')]

for server_name in server_names:
    AdminControl.stopServer(server_name, node_name)
0 (0 Ratings)
Post Reply
    Viewing this thread :: 0 registered and 1 guest
    No registered users viewing

Tag Cloud

Leader Spotlight

    Loading...