Setting port numbers to the serverindex.xml file using scripting

You can use the wsadmin tool 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.

About this task

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 your environment. Alternatively, you can use the scripts in the AdminServerManagement script library to configure various ports in your configuration.

Before modifying ports using scripting, you must launch the wsadmin tool.

Procedure

What to do next

Save the configuration changes.

Use the following command example to save your configuration changes:
AdminConfig.save()
Use the syncActiveNode or syncNode scripts in the AdminNodeManagement script library to propagate the configuration changes to node or nodes.
  • Use the syncActiveNodes script to propagate the changes to each node in the cell, as the following example demonstrates:
    AdminNodeManagement.syncActiveNodes()
  • Use the syncNode script to propagate the changes to a specific node, as the following example demonstrates:
    AdminNodeManagement.syncNode("myNode")
Task topic    

Terms and conditions for information centers | Feedback

Last updated: April 20, 2014 08:46 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=txml_portnumber
File name: txml_portnumber.html