Creating an application server involves a configuration command. To do this task in the wscp V4.0 tool and the wsadmin V5.x tool, you must know the hierarchical name of the application server. The following examples demonstrate how to create an application server in WebSphere Application Server V4.0 and V5.x:
ApplicationServer create /Node:mynode/ApplicationServer:myserv/ -attribute {{Stdout myfile.out}}
Server objects are contained within nodes.
Using Jacl:
set node [$AdminConfig getid /Node:mynode/] $AdminConfig create Server $node {{name myserv} {outputStreamRedirect {{fileName myfile.out}}}} $AdminConfig save
where Stdout is the name of the V4.0 ApplicationServer attribute that is replaced by the fileName attribute, and embedded within the outputStreamRedirect attribute of the server.