+

Search Tips   |   Advanced Search

addNode.sh command

The addNode.sh command incorporates an application server installation into a cell. A nodeagent process is automatically started as part of the addNode.sh command unless we specify the -noagent option. Depending on the size and location of the new node you incorporate into the cell, this command can take a few minutes to complete. The addNode.sh command stops the running application server that it is incorporating into a cell.

Ports generated for the node agent are unique for all the profiles in the installation. For development purposes, we can create multiple profiles on the same installation and add them to one or more cells without concern for port conflicts. To specify the ports used by the nodeagent, specify ports in a file portsFile.txt, and specify that file using the -portprops option. The format of the file is key=value pairs, one on each line, with the key being the same as the port name in serverindex.xml. To use a number of sequential ports, consider the -startingport option. This means that port conflicts with other profiles are not detected.

Custom policy sets are not copied to the new cell after we run the addNode.sh command. Use the -includeapps option to ensure the environment starts with the same version of the application.

Start node agents before starting any application servers...


Syntax

addNode.sh dmgr_host [dmgr_port] 
                  [-conntype type] 
                  [-includeapps] 
                  [-includebuses] 
                  [-startingport portnumber] 
                  [-portprops qualified_filename] 
                  [-nodeagentshortname name] 
                  [-nodegroupname name] 
                  [-registerservice] 
                  [-serviceusername name] 
                  [-servicepassword password] 
                  [-coregroupname name] 
                  [-noagent] 
                  [-statusport 1231] 
                  [-quiet] 
                  [-nowait] 
                  [-logfile filename] 
                  [-replacelog] 
                  [-trace] 
                  [-username uid] 
                  [-password pwd] 
                  [-localusername localuid] 
                  [-localpassword localpwd] 
                  [-profileName profilename] 
                  [-excludesecuritydomains true | false] 
                  [-asExistingNode] [-help]

The dmgr_host argument is required. All the other arguments are optional. The default port number is 8879 for the default SOAP port of the deployment manager. SOAP is the default JMX connector type for the command. If we have multiple product installations or multiple profiles, the SOAP port might be different from 8879. Examine the deployment manager SystemOut.log file to see the current ports in use.


Parameters

The following options are available for the addNode.sh command:


Usage scenario

Add an application server to the deployment manager...

Produce the addNode.log file

Do not wait for a node agent process...

The value 8879 is the default port.

Add profile, mynode, to the cell managed by profile mydmgr, which listens on SOAP port 11383


Security considerations when adding an application server node to WAS ND cell

When adding a node to the cell, you automatically inherit both the user registry and the authentication mechanism of the cell.

For distributed security, all servers in the cell must use the same user registry and authentication mechanism. To recover from a user registry change, we must modify the applications so that the user and group-to-role mappings are correct for the new user registry. See the article on assigning users and groups to roles.

Another important consideration is the SSL public-key infrastructure. Before running the addNode.sh command with the deployment manager, verify that the addNode.sh command can communicate as an SSL client with the deployment manager. This communication requires that the addNode.sh truststore configured in the sas.client.props file contains the signer certificate of the deployment manager personal certificate, as found in the keystore and specified in the administrative console. The following issues require consideration when running the addNode.sh command with security:


Related:

  • Secure installation for client signer retrieval in SSL
  • Use command-line tools
  • Add, manage, and remove nodes
  • Recover or move nodes with the addNode.sh -asExistingNode command
  • Mapping modules to servers
  • Assigning users and groups to roles
  • Use HPEL to troubleshoot applications
  • addNode.sh command best practices
  • removeNode command
  • cleanupNode command