DougBreaux 270007SMYJ Visits (4719)
I got tired of updating a dozen applications at once, across development, test, and production systems, from the WebSphere admin GUI.
So, here's a very simple wsadmin script, updateApp.py, based on Upda
wsadmin -f updateApp.py appName filePath [nosync]
Where the optional "nosync" parameter tells the script not to sync out the changes after update and save. In case you want to do more than one, then sync them all at the end.
WARNING: if you have more than one application installed, be very careful that you match the application name with the correct file.
Here's another script, updateAppList.py, that I admit I haven't tested yet, that should allow you to edit a list of apps/ears to update, then update them all at once.
UPDATE: BTW, thanks to @rag
Update: the above only obtains the heap size if a custom value has been explicitly configured. From this other post, here's a mechanism which will obtain the maximum heap size otherwise (note there doesn't appear to be an attribute to obtain the minimum heap size):
I sometimes need to set a custom JVM Property for one or more Application Servers and dislike the tedium of setting them one-at-a-time through the console.
Here's a Jyth
wsadmin -f addJvmProperty.