Create a server using scripting



Search Tips   |   Advanced Search



  1. Start wsadmin

  2. Execute...


    ### 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}}}}

    $AdminConfig save

    Using Jython:

    node = AdminConfig.getid('/Node:mynode/')

    AdminConfig.create('Server', node, [['name', 'myserv'], ['outputStreamRedirect', [['fileName', 'myfile.out']]]])

  3. In a network deployment environment only, synchronize the node.


See Also

AdminConfig object for scripted administration


See Also

Commands for the AdminConfig object