Link to home
Start Free TrialLog in
Avatar of milton393
milton393

asked on

How to code in Jacl to set JVM automatic restart to "false"

I'm just starting to learn Jacl; so I'm not quite get used to some concept yet. Here is my goal. By default, WebSphere sets each JVM automatic restart as "true". I want to develop a Jacl script to change that setting to "false".
You can see the setting under WAS console---> Application Server ---> (pick a server name) -----> Process Definition ----> Monitoring Policy ----> automatic restart (Checked).
I'm learning Jacl by using interactive mode for now. Here is what I have done:

wsadmin.sh -user xxxxx -password xxxxx
wsadmin> $AdminConfig list MonitoringPolicy
(cells/cell_xxx/nodes/node_yyy/servers/server_zzz:server.xml#MonitoringPolicy_1141073704002)
(cells/cell_xxx/nodes/node_222/servers/server_333:server.xml#MonitoringPolicy_1141073721587)
wsadmin>$AdminConfig show (cells/cell_xxx/nodes/node_yyy/servers/server_xxx:sever.xml#MonitoringPolicy_1141073704002)
{autoRestart true}
{maximumStartupAttempts 3}
{nodeRestartState STOPPED}
{pingInterval 60}
{pingTimeout 300}
wsadmin>

My question:
What may be the next few steps I should do in order to change the attribute, "autoRestart" to false?
Thanks for the tip....
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of milton393
milton393

ASKER

Thank you!
I did the hard way of discovering the answer to my own question before you pointed out the last URL which contains many helpful tips on Jacl scripts. It'll be useful for my next step in developing my skill set. Thanks again.