WAS v8.5 > Script the application serving environment (wsadmin) > Configure servers with scripting

Set port numbers to the serverindex.xml file using scripting

We can use wsadmin to modify the port numbers specified in the serverindex.xml file. The endpoints of the serverindex.xml file are part of different objects in the configuration.

There are multiple ways to complete this task. Complete the steps in this task to use the AdminConfig and AdminTask objects to configure ports in the environment. Alternatively, we can use the scripts in the AdminServerManagement script library to configure various ports in your configuration.

Before modifying ports using scripting, you must launch wsadmin.

Save the configuration changes.

Use the following command example to save your configuration changes:

Use the syncActiveNode or syncNode scripts in the AdminNodeManagement script library to propagate the configuration changes to node or nodes.


Related


Configure port settings
Use the wsadmin scripting AdminConfig object for scripted administration


Reference:

Ports settings
Server settings configuration scripts
Commands for the AdminConfig object using wsadmin.sh


+

Search Tips   |   Advanced Search