Restarting WebSphere applications using the wsadmin
tool feels much faster than through the WebSphere Integrated Solutions Console.
If you've already invoked wsadmin
to update a configuration then this is especially true. No navigating through menus to find the right item, just a "simple" command line and the application quickly restarts.
Here's how...
Invoke wsadmin
:
cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
./wsadmin.sh -lang jython -user icadmin -password PASSWORD_HERE
If you can't remember the name of your applications, list the applications installed.
AdminApp.list()
This returns a somewhat unattractive string:
'Activities\nBlogs\nCommon\nCommunities\nConnectionsProxy\nDefaultApplication\nDogear\nEditLiveForConnections\nExtensions\nFileNetEngine\nFiles\nForums\nHelp\nHomepage\nMetrics\nMobile\nMobile Administration\nModeration\nNews\nProfiles\nPushNotification\nSearch\nWebSphereOauth20SP\nWidgetContainer\nWikis\nnavigator\noEmbed'
It's better formatted:
Activities
Blogs
Common
Communities
ConnectionsProxy
DefaultApplication
Dogear
EditLiveForConnections
Extensions
FileNetEngine
Files
Forums
Help
Homepage
Metrics
Mobile
Mobile Administration
Moderation
News
Profiles
PushNotification
Search
WebSphereOauth20SP
WidgetContainer
Wikis
navigator
oEmbed
Aside
If you've recently changed any configurations, you may want to update the IBM Connections configuration and synchronise nodes at this point:execfile("connectionsConfig.py")
LCConfigService.checkOutConfig("/tmp","connectionsCell01")
LCConfigService.updateConfig("versionStamp","")
LCConfigService.checkInConfig("/tmp","connectionsCell01")
synchAllNodes()
Choose one of the applications, for example Communities, then stop and start the application:
appManager=AdminControl.queryNames("cell=connectionsCell01,node=connectionsNode01,type=ApplicationManager,process=IC_server1,*")
AdminControl.invoke(appManager, "stopApplication", "Communities")
AdminControl.invoke(appManager, "startApplication", "Communities")
This is pretty quick. Often no more than 30 seconds.