WLST Offline - Creating a machine

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 Machines
Creating machines in the domain using WLST Offline is done by doing something similar to the following:

cd('/')
create(MACHINENAME, 'Machine')
cd('/Machine/'+MACHINENAME)
create(MACHINENAME, 'NodeManager')
cd('NodeManager/'+MACHINENAME)
set('ListenAddress',HOST)
set('NMType', 'plain')

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