startNode 命令
startNode 命令读取 Node Agent 进程的配置文件,并构造一个 launch 命令。
根据您指定的选项,startNode 命令创建新的 Java™ 虚拟机 (JVM) API 以运行代理程序进程,或将启动命令数据写入一个文件。
如果您正在使用 Windows 平台并且您将 Node Agent 作为 Windows 服务运行,那么 startNode 命令将启动关联的 Windows 服务并且它将负责启动 Node Agent。
startNode 命令读取 Node Agent 进程的配置文件以获取已添加到 WebSphere® Application Server Network Deployment
单元的概要文件并启动服务器。
您不必将用户名和密码与 startNode 命令配合使用,因为此命令虽然会启动服务器进程,但不会调用 MBean 方法。
要了解有关从何处运行此命令的更多信息,请参阅“使用命令行工具”。
语法
命令语法如下所示:
startNode [options]
参数
下列选项可用于 startNode 命令:
- -?
- 显示用法说明。
-curlib <product_library>
指定要用于底层“提交作业”(SBMJOB) CL 命令的当前库。
-cpyenvvar
通知 startNode 命令设置当前为 Node Agent 进程定义的环境变量。缺省情况是不设置当前定义的环境变量。
- -help
- 显示用法说明。
-inllibl <library_list>
指定要用于底层“提交作业”(SBMJOB) CL 命令的初始库列表。
-inlaspgrp <ASP_group>
指定底层“提交作业”(SBMJOB) CL 命令的初始 ASP 组。
-jobd <product_library/job_description>
指定底层“提交作业”(SBMJOB) CL 命令的作业描述。
-jobq <product_library/job_queue>
指定底层“提交作业”(SBMJOB) CL 命令的作业队列。
-logfile <fileName>
指定写入跟踪信息的日志文件的位置。缺省情况下,日志文件名为 startServer.log,并且是在 profile_root/logs 目录中创建的。
-nowait
指示 startNode 命令不要等待成功初始化已启动的 Node Agent 进程。
-outq <product_library/output_queue>
指定底层“提交作业”(SBMJOB) CL 命令的输出队列。
-profileName
在多概要文件安装中定义应用程序服务器进程的概要文件。在单概要文件环境中运行不需要 -profileName 选项。此选项的缺省值为缺省概要文件。
-quiet
禁止显示 startNode 命令以正常方式显示的进度信息。
-replacelog
替换日志文件,而不是附加到当前日志。
-sbs <product_library/subsystem_description>
指定要用于底层“提交作业”(SBMJOB) CL 命令的子系统。
-script [<script fileName>] -background
使用 startServer 命令生成启动脚本,而不是直接启动 Node Agent 进程。启动脚本名称是一个可选参数。如果您未提供启动脚本名称,缺省脚本文件名是
start_node_agent.sh
start_node_agent.bat
-statusport <portNumber>
一个可选参数,允许管理员设置 Node Agent 状态回调的端口号。该工具打开此端口并等待来自 Node Agent 的指示该 Node Agent 已启动的状态回调。如果未设置此参数,那么将自动分配一个未使用的端口。
- -trace
将跟踪信息生成日志文件以进行调试。
启用对启动 Node Agent 的本机进程代码的跟踪。跟踪输出将写至 was_jobname-jobuser-jobnum.log 文件,此文件位于 profile_root/logs 目录中。
- -timeout <seconds>
- 指定在节点初始化超时并返回一个错误之前的等待时间。
-usejobd
指定切换至 Run-As 用户标识时,将“提交作业”(SBMJOB) 进程中的作业描述用于 Node Agent。
注: 此命令不会影响当前作业描述的 USER 字段。
使用方案
以下示例说明了正确的语法:
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
startNode
startNode -script (produces the start_node.bat or .sh file)
startNode -trace (produces additional trace statements in the startnode.log file)
![[z/OS]](../images/ngzos.gif)
startNode
startNode -trace (produces additional trace statements in the startnode.log file)
![[IBM i]](../images/iseries.gif)
startNode (Starts the node agent process for the default profile.
The default profile must belong to a product cell.)
startNode -profileName mynode (Starts the node agent for the mynode profile
which belongs to a product cell.)
startNode -trace (produces trace files in the profile_root/logs directory)