Bootstrap FreeKB - IBM WebSphere - Update web server plugin generation and propagation using wsadmin
IBM WebSphere - Update web server plugin generation and propagation using wsadmin

Updated:   |  IBM WebSphere articles

If you are not familiar with wsadmin.sh (Linux) / wsadmin.bat (Windows), check out our Getting Started article.

The following wsadmin command can be used to get the ID of a web server. This example uses the -c option (inline command) and the jython language.

~]$ /opt/WebSphere/AppServer/profiles/your_profile/bin/wsadmin.sh -c "print AdminConfig.getid('/Server:myWebServer')" -lang jython
'myWebServer(cells/your_cell/nodes/myNode/servers/myWebServer|server.xml#Server_123456789)'

 

Then the following wsadmin command can be used to get the ID of the web servers plugin properties (plugin-cfg.xml), using the web server ID returned by the prior command.

~]$ /opt/WebSphere/AppServer/profiles/your_profile/bin/wsadmin.sh -lang jython -c "print AdminConfig.list('PluginProperties', 'myWebServer(cells/your_cell/nodes/myNode/servers/myWebServer|server.xml#Server_123456789)')"
(cells/myCell/nodes/myNode/servers/myWebServer|server.xml#PluginProperties_1483544295379)

 

And then the following wsadmin command can be used to display the plugin properties for the web server, using the plugin properties ID returned by the prior command.

~]$ /opt/WebSphere/AppServer/profiles/your_profile/bin/wsadmin.sh -lang jython -c "print AdminConfig.showall('(cells/myCell/nodes/myNode/servers/myWebServer|server.xml#PluginProperties_1483544295379)')"
[ASDisableNagle false]
[AcceptAllContent true]
[AppServerPortPreference HOSTHEADER]
[ChunkedResponse false]
[ConfigFilename plugin-cfg.xml]
[ESIEnable true]
[ESIInvalidationMonitor false]
[ESIMaxCacheSize 1024]
[IISDisableNagle false]
[IISPluginPriority HIGH]
[IgnoreDNSFailures false]
[KeyRingFilename plugin-key.kdb]
[LogFilename /opt/WebSphere/Plugins/logs/myWebServer/http_plugin.log]
[LogLevel ERROR]
[PluginGeneration AUTOMATIC]
[PluginInstallRoot /opt/WebSphere/Plugins]
[PluginPropagation AUTOMATIC]
[RefreshInterval 60]
[RemoteConfigFilename /opt/WebSphere/Plugins/config/myWebServer/plugin-cfg.xml]
[RemoteKeyRingFilename /opt/WebSphere/Plugins/config/myWebServer/plugin-key.kdb]
[ResponseChunkSize 64]
[VHostMatchingCompat false]
[pluginServerClusterProperties [[CloneSeparatorChange false]
[LoadBalance ROUND_ROBIN]
[PostBufferSize 0]
[PostSizeLimit -1]
[RemoveSpecialHeaders true]
[RetryInterval 60]]]
[properties []]

 

And here is how you could update the plugin generation and propagation to MANUAL.

/opt/WebSphere/AppServer/profiles/your_profile/bin/wsadmin.sh -lang jython -c "print AdminConfig.modify('(cells/myCell/nodes/myNode/servers/myWebServer|server.xml#PluginProperties_1483544295379)', '[[PluginGeneration MANUAL]]')"

/opt/WebSphere/AppServer/profiles/your_profile/bin/wsadmin.sh -lang jython -c "print AdminConfig.modify('(cells/myCell/nodes/myNode/servers/myWebServer|server.xml#PluginProperties_1483544295379)', '[[PluginPropagation MANUAL]]')"

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 90ad12 in the box below so that we can be sure you are a human.