Changing listener address ports using wsadmin
 Technote (troubleshooting)
 
Problem(Abstract)
How to change the listener address ports for each node using the wsadmin command. This can be done using the included example Jacl script.
 
Resolving the problem
Using wsadmin and the a sample script below, you can change the following values in the serverindex.xml file:
  • ORB_LISTENER_ADDRESS
  • CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS
  • CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS
  • SAS_SSL_SERVERAUTH_LISTENER_ADDRESS

This Jacl script retrieves a list of all references to serverindex and modifies only the endPointNm port:

set endPointNm "CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS"
set serverNm server1
set nodeName Father
set serverEntries [$AdminConfig getid
/Node:$nodeName/ServerIndex:/ServerEntry:/]
foreach serverE $serverEntries {
   puts $serverE
   set sName [$AdminConfig showAttribute $serverE serverName]
   puts $sName
   if {$sName == $serverNm}{
      set nameEndPoints [lindex [$AdminConfig showAttribute
      $serverE specialEndpoints] 0]
      foreach nep $nameEndPoints {
         set temp [catch {$AdminConfig showAttribute $nep
         endPointName} epName]
         puts $epName
         puts ""
         if {$epName == $endPointNm} {
            set endPoint [$AdminConfig showAttribute $nep
            endPoint]
            puts "Modifying $endPoint"
            $AdminConfig modify $endPoint {{port 12345}}
            $AdminConfig save
         }
      }
   }
}
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1172947
IBM Group: Software Group
Modified date: Jun 25, 2004