Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Configure servers with scripting


Set port numbers to serverindex.xml using scripting

We can use wsadmin.sh to modify the port numbers specified in serverindex.xml. 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, you can use the scripts in the AdminServerManagement script library to configure various ports in the configuration.

Before modifying ports using scripting, launch wsadmin.sh.


Procedure


What to do next

Save the configuration changes.

Save the configuration changes:

AdminConfig.save()

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


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


Related


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

+

Search Tips   |   Advanced Search