Create a server using scripting
Procedure
- Start wsadmin
- Execute...
Jacl:
### Obtain the configuration ID of the object and assign to the node variable
set node [$AdminConfig getid /Node:mynode/]### Create the server
$AdminConfig create Server $node {{name myserv} {outputStreamRedirect {{fileName myfile.out}}}}Using Jython:
node = AdminConfig.getid('/Node:mynode/')AdminConfig.create('Server', node, [['name', 'myserv'], ['outputStreamRedirect', [['fileName', 'myfile.out']]]])
- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object