上一主题: server list

下一主题: server net_discover


server list 输出

本主题包含命令输出规范。

非批量输出

带有下列标题的表:
   名称
   状态
   已分配/空闲 CPU
   已分配/空闲内存 (MB)
   已分配/空闲带宽 (Mbps)
   角色
非批量输出(使用 --map)
server name : role val, state val(enabled/disabled), val cpu, val MB mem, val Mbps bw
srv list -m
server srv1 : role primary, state up(enabled), 0.05/7.85 cpu, 128/30983 MB mem, 100/1900 Mbps bw
_sys.controller: running, 0.10 cpu, 768.00 MB, 0.00 Mbps
app1.main.LUX5: running, 0.05 cpu, 128.00 MB, 100.00 Mbps
server srv2 : role secondary, state up(enabled), 0.00/8.00 cpu, 0/31880 MB mem, 0/2000 Mbps bw
批量输出
server name: role = val, state = val, enabled = val, cpu_alloc = val,
                    cpu_free = val,  mem_alloc = val, mem_free = val,
                    bw_alloc = val, bw_free = val, reboot_required = val
   {(如果指定了 -map)
   component name : state = val, cpu = val , mem = val, bw = val
   …
   } 
以及一列在服务器上运行的应用组件:
      name : val CPU, val MB, val Mbps 
如果在命令行上指定了 --batch,此命令的输出如下:
      server name : role=val, state= val , enabled=val, cpu_alloc=val, cpu_free=val, mem_alloc=val, mem_free=val, bw_alloc=val
bw_free=val
            {
            component name : state=val, cpu=val, mem=val, mem_hypervisor=val, bw=val
            } 
如果在命令行上指定了 --verbose,除了为每个服务器显示信息之外,此命令的输出与 server info 命令相同。