Example: Use predefined port numbers


 

+

Search Tips   |   Advanced Search

 

The manageprofiles command recommends initial port values when you do not explicitly set port values. Use predefined port values instead.

The manageprofiles command recommends port values when the following options are not specified:

Ports are used based on which template file is used under...

APP_ROOT/profileTemplates/

Profile File path
Application Server default/actions/portsUpdate/portdef.props
Cell - appserver portion cell/dmgr/actions/portsUpdate/nodeportdef.props
Cell - dmgr portion cell/dmgr/actions/portsUpdate/portdef.props
Custom managed/actions/portsUpdate/portdef.props
Management profile with a dmgr server management/actions/portsUpdate/dmgr.portdef.props
Management profile with an administrative agent server management/actions/portsUpdate/adminagent.portdef.props
Management profile with a job manager server management/actions/portsUpdate/jmgr.portdef.props
Secure proxy secureproxy/actions/portsUpdate/portdef.props

The following example creates the default profile. For other types of profiles, substitute the file path with the file path of the profile to create.

  1. Copy...

    WAS_HOME/profileTemplates/default/actions/portsUpdate/portdef.props

    ...from the default profile template path and place a copy of the file in an arbitrary temporary directory such as:

    /tmp/ports

  2. In the new file, modify the port settings to specify the port values.

  3. Create the profile with the manageprofiles command.

    Use the modified port values. Specify the location of the modified portdef.props file on the -portsFile parameter. Specify the -validatePorts parameter to ensure that ports are not reserved or in use. Use the following example as a guide:

     manageprofiles.sh -create
                      -profileName Wow_Profile 
                      -profilePath $WP_PROFILE 
                      -templatePath APP_ROOT/profileTemplates/default 
                      -nodeName Wow_node 
                      -cellName Wow_cell
                      -hostName lorriemb 
                      -portsFile /tmp/ports/portdef.props
                      -validatePorts
    

Suppose that the portdef.props file has the following values:

WC_defaulthost=39082
WC_adminhost=39060
WC_defaulthost_secure=39443
WC_adminhost_secure=39043
BOOTSTRAP_ADDRESS=32809
SOAP_CONNECTOR_ADDRESS=38880
IPC_CONNECTOR_ADDRESS=39633
SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=39401
CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=39403
CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=39402
ORB_LISTENER_ADDRESS=39100
DCS_UNICAST_ADDRESS=39353
SIB_ENDPOINT_ADDRESS=37276
SIB_ENDPOINT_SECURE_ADDRESS=37286
SIB_MQ_ENDPOINT_ADDRESS=35558
SIB_MQ_ENDPOINT_SECURE_ADDRESS=35578
SIP_DEFAULTHOST=35060
SIP_DEFAULTHOST_SECURE=35061

After running the manageprofiles command to create the profile with the user defined port values, a success or fail result displays.

The manageprofiles command creates a copy of the current portdefs.props file in...

$WP_PROFILE/properties

Use only one of the three port values parameters

The three parameters are mutually exclusive.



Related information

manageprofiles