Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Hudson-ci/Containers/IBM WebSphere/wsadminlib
< Hudson-ci | Containers | IBM WebSphere
Revision as of 05:41, 2 September 2011 by Duncan.r.mills.gmail.com (Talk | contribs) (New page: {{hudson|pageTitle=wsadminlib.py Script}} The following are the additions to the standard wsadminlib shipped by IBM <pre> ##################################################################...)
Hudson Continuous Integration Server | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug Day | |
Contribute | |
Browse Source |
![]() |
wsadminlib.py Script |
---|
The following are the additions to the standard wsadminlib shipped by IBM
################################################################################################################################### # # These additions are by Chris Graham - chrisgwarp@gmail.com # ################################################################################################################################### # Added by Chris Graham def setWebContainerDefaultVirtualHostName(nodename, servername, virtualHostName): """Set the default virtual host name for the web container.""" m = "setWebContainerDefaultVirtualHostName:" sop(m, "Entry. Setting Default Virtual Host Name %s" % (virtualHostName)) webcontainer_id = getWebContainer(nodename, servername) sop(m,"webcontainer_id=%s " % ( repr(webcontainer_id), )) result = AdminConfig.modify(webcontainer_id, [['defaultVirtualHostName', virtualHostName]]) sop(m,"Exit. result=%s" % ( repr(result), )) # Added by Chris Graham def getWebContainer(nodename, servername): server_id = getServerByNodeAndName( nodename, servername ) return AdminConfig.list('WebContainer', server_id) # Added by Chris Graham def deleteVirtualHost( virtualhostname ): """Delete a Virtual Host. Return true if the specified host alias already exists""" host_id = getVirtualHostByName( virtualhostname ) if host_id == None: return 0 # can't exist, no such virtual host AdminConfig.remove( host_id ) return 1