xlpstat 命令

该主题描述 xlpstat 命令,该命令显示主机名列表的逻辑分区负载统计信息。

用途

显示主机名列表的逻辑分区负载统计信息。

此命令仅在 AIX® 上与分区负载管理器配合使用。

语法

xlpstat [-r] {-p policy_file | -f host_list} [interval] [count]

描述

显示一个或多个远程逻辑分区的负载统计信息。该命令将每隔一定的时间与远程系统联系一次,相隔秒数由 interval 参数指定,联系次数由 count 参数指定。如果省略了 interval 参数和 count 参数,则仅查询远程系统一次。如果仅省略了 count 参数,将每隔一定的秒数(由 interval 参数指定)查询远程系统一次,直到用户终止该命令。

此命令的调用者必须是 root 用户或分区负载管理器授权用户。

对于格式化输出,输出结果显示如下,它对应于输入文件中列示的每个主机:

                   CPU                      MEM
        ------------------------    ------------------
  STAT  TYP    CUR    PCT   LOAD     CUR    PCT  PGSTL  HOST

  up    D     4.00   50.15   0.65   1024  43.10      0  testlp1
  up    D     2.00   95.72   0.90   2048  97.48    250  testlp2
  up    D    10.00   98.31   1.03   5120  72.25      0  testlp3


STAT	Partition status. May be "up" or "down".
TYP	Partition type. May be "D" (dedicated) "S" (shared) or "U" (unknown).
      If the type is "U", the command was unable to query the partition type and
      there may be a connectivity or authentication problem.
CUR	The current amount of resource allocated to the partition.
PCT	Percent utilization for the resource
LOAD	CPU load average
PGSTL	Page steals per second
HOST	Managed host name

原始输出显示为一个包含列描述的标题,后跟多行数据,每个主机一行:

#host_name:group_name:status:cpu_type:cpu_ent:cpu_util:cpu_load:mem_ent:mem_util:mem_pgstl
testlp1.mydomain.com:group1:up:dedicated:4.00:45.05:0.38:1024:75.00:0
testlp2.mydomain.com:group1:up:dedicated:2.00:87.23:0.92:2048:92.21:123
testlp3.mydomain.com:group1:up:dedicated:10.00:95.17:1.01:5120:70.30:0

标志

-r 原始输出方式。以冒号分隔格式打印数据,每个主机一行。
-p policy_file 从给定的策略文件检索主机列表。
-f host_list 从给定的纯文本文件检索主机列表。此文件的每一行有一个主机名。

退出状态

此命令返回以下退出值:
1
内部错误。
3
无法打开输入文件。
5
策略文件无效。
7
用法错误。
9
未授权。

发送反馈 | 评价本页