The startNode command reads the configuration file for the node
agent process and constructs a launch command. Depending on the options
that you specify, the startNode command creates a new Java virtual
machine (JVM) API to run the agent process, or writes the launch command data
to a file. For more information about where to run this command, see the Using command tools article.
If you are using the Windows platform and the you have the node agent running
as a Windows service, the startNode command will start the associated
Windows service and it will be responsible for starting the node agent.
Syntax
The command syntax is as follows:
startNode [options]
Parameters
The following options are available for
the startNode command:
- -nowait
- Tells the startNode command not to wait for successful initialization
of the node agent process.
- -quiet
- Suppresses the progress information that the startNode command
prints in normal mode.
- -logfile <fileName>
- Specifies the location of the log file to which information gets written.
- -profileName
- Defines the profile of the Application Server process in a multi-profile
installation. The -profileName option is not required for running in a single
profile environment. The default for this option is the default profile.
- -replacelog
- Replaces the log file instead of appending to the current log.
- -trace
- Generates trace information into a file for debugging purposes.
- -timeout <seconds>
- Specifies the waiting time before node agent initialization times out
and returns an error.
- -statusport <portNumber>
- Specifies that an administrator can set the port number for node agent
status callback.
- -script [<script fileName>] -background
- Generates a launch script with the startNode command instead of
launching the node agent process directly. The launch script name is an optional
argument. If you do not provide the launch script name, the default script
file name is start_<nodeName>, based on the name of the node.
The -background parameter is an optional parameter that specifies
that the generated script will run in the background when you execute it.
- -J-<java_option>
- Specifies options to pass through to the Java interpreter.
- -help
- Prints a usage statement.
- -?
- Prints a usage statement.
Usage scenario
The following examples demonstrate
correct syntax:
startNode
startNode -script (produces the start_node.bat or .sh file)
startNode -trace (produces the startnode.log file)