The addNode command incorporates a WebSphere Application Server profile into a cell. For more information about where to run this command, see the Using command line tools article. 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 node agent server is automatically started as part of the addNode command unless you specify the -noagent option. If you recycle the system that hosts an application server node, and did not set up the node agent to act as an operating system daemon, issue a startNode command to start the node agent before starting any application servers. The following items are new in V6:
Syntax
The command syntax is as follows:
addNode dmgr_host [dmgr_port] [-profileName profilename] [-conntype type] [-includeapps] [-startingport portnumber] [-portprops qualified_filename] [-nodeagentshortname name] [-nodegroupname name] [-includebuses name] [-coregroupname name] [-noagent] [-statusport port] [-quiet] [-nowait] [-logfile filename] [-replacelog] [-trace] [-username uid] [-password pwd] [-help]
The dmgr_host argument is required. All of the other arguments are optional. The default port number is 8879 for the default Simple Object Access Protocol (SOAP) port of the deployment manager. SOAP is the default Java Management Extensions (JMX) connector type for the command. If you have multiple deployment manager profiles, the SOAP port may be different than 8879. Use the administrative console to view the ports used for the deployment manager or use the Display WAS Instance (dspwasinst) command to view the ports.
Parameters
The following options are available for the addNode command:
The applications will be mapped to the server that you federated using the addNode command.
When the addNode command operation completes, the applications will run on that server when the server is started. Since these applications are part of the network deployment cell, you can map them to other servers and
clusters in the cell using the administrative console. See the Mapping modules to servers article for more information.
By default, during application installation, application binaries are extracted in the profile_root/installedApps/cellName directory, where profile_root is the fully-qualified path of the directory that contains your profile. The default value for profile_root is /QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/profileName or /QIBM/UserData/WebSphere/AppServer/V6/ND/profiles/profileName. After the addNode command, the cell name of the configuration on the node that you added changes from the base cell name to the deployment manager cell name. The application binaries are located where they were before the addNode command ran, for example, profile_root/installedApps/old_cellName. If the application was installed by explicitly specifying the location for binaries as the following example:
${PROFILE_ROOT}/${CELL}where the variable ${CELL}, specifies the current cell name, then when the addNode command runs, the binaries are moved to the following directory:
${PROFILE_ROOT}/currentCellName
Federating the node to a cell using the addNode command does not merge any cell level configuration, including virtual host information. If the virtual host and aliases for the new cell do not match WebSphere Application Server, you cannot access the applications running on the servers. You have to manually add all the virtual host and host aliases to the new cell, using the administrative console running on the deployment manager.
SOAP_CONNECTOR_ADDRESS=3000 BOOTSTRAP_ADDRESS=3001
Usage scenario
The following examples demonstrate correct syntax:
addNode mydmgr 11383 -profileName mynode (adds profile mynode to the Network Deployment cell managed by profile mydmgr, which listens on SOAP port 11383) addNode testhost 8879 (adds an Application Server to the deployment manager) addNode deploymgr 8879 -trace (produces the addNode.log file) addNode host25 8879 -nowait (does not wait for a node agent process)where 8879 is the default port.
Related reference
Port number settings in WebSphere Application Server versions
removeNode command