WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

batch create of application server instance with explict range of all ports

  • 1.  batch create of application server instance with explict range of all ports

    Posted Tue July 20, 2010 02:49 PM

    Hi,


    i need frequently create application server instances with its own range of ports and so far could not find any valuable script/article/etc.


    what I do is:


    - create profile with dmgr/nodeagent/server with starting port, for example, 50200 and it will create nicely
    - add server
    - manually modify all ports range from whatever to 50300 - 50318
    - synchronize


    and so on.


    does anybody has script/know of a trick/etc



  • 2.  batch create of application server instance with explict range of all ports

    Posted Fri July 23, 2010 05:29 PM

    Hi,


    One option that you can try if you're on v7 is using PropertiesFileBasedConfiguration tasks of wsadmin to add to your processing.


    publib.boulder.ibm.com/infocenter/wasinf...


    After creating the server you can extract it's properties


    wsadmin>AdminTask.extractConfigProperties('-propertiesFileName ConfigProperties_server1.props -configData Server=server1 -filterMechanism NO_SUBTYPES')


    Edit the resulting file and find the section "Ports Section", modify the port values and then change them in the configuration via:


    wsadmin>AdminTask.applyConfigProperties('-propertiesFileName ConfigProperties_server1.props')


    I also looked at using server templates for creation but that doesn't allow you to specify the ports.


    Hope that helps