WLST Offline - Creating a Managed Server


This is a post in the "WLST Offline" series. This series of posts will be small tidbits of creating various objects in WLST Offline. Mostly this is useful for easily remembering how to do these things when creating your own WLST domain creation scripts in offline mode.

Creating Managed Server
Creating managed servers in the domain using WLST Offline is done by doing something similar to the following:

cd('/')

create(SERVERNAME, 'Server')
cd('Servers/'+SERVERNAME)
set('ListenAddress',HOST)
set('ListenPort',PORTNUMBER)
set('Machine', HOST)


In the above, please replace SERVERNAME, HOST and PORTNUMBER with proper values.