跳到主要内容

显示可用的 nodeshell 命令

可以使用 nodeshell 中的 CLI 帮助获取可用 nodeshell 命令的列表。

  1. 要访问 nodeshell,请在 clustershell 的系统提示符下输入以下命令:system node run -node {nodename|local}

    local 是用于访问集群的节点。
    system node run 命令有一个别名命令 run
  2. 在 nodeshell 中输入以下命令看查看可用 nodeshell 命令的列表: [commandname] help

    commandname 是要显示其可用性的命令的名称。如果未包含 commandname,则 CLI 将显示所有可用 nodeshell 命令。

    输入 exit 或键入 Ctrl-d 可返回到 clustershell CLI。

显示可用 nodeshell 命令的示例

以下示例访问名为 node2 的节点的 nodeshell 并显示 nodeshell 命令 environment 的信息:

cluster1::> <span className="ph">system node </span>run -node node2
Type 'exit' or 'Ctrl-D' to return to the CLI

node2> environment help
Usage: environment status |
[status] [shelf [<adapter>[.<shelf-number>]]] |
[status] [shelf_log] |
[status] [shelf_stats] |
[status] [shelf_power_status] |
[status] [chassis [all | list-sensors | Temperature | PSU 1 |
PSU 2 | Voltage | SYS FAN | NVRAM6-temperature-3 | NVRAM6-battery-3]]