lssasfabric
使用 lssasfabric 命令可查看哪些容器对节点可见以及这些容器的顺序。
语法
>>- lssasfabric -- --+-----------------------------------+-- ---> '- -filtervalue -- attribute_value -' >--+----------+-- --+-----------------------+-- ----------------> '- -nohdr -' '- -delim -- delimiter -' >--+-----------------+-- -------------------------------------->< '- -filtervalue? -'
参数
- -filtervalue attribute=value
- (可选)指定一个或多个过滤器的列表。仅显示值与过滤器属性值匹配的对象。
注: 某些过滤器允许您在输入命令时使用通配符。以下规则适用于通配符的使用:
- 通配符字符是星号 (*)。
- 命令最多可包含一个通配符。
- 使用通配符时,将过滤器条目用双引号 ("") 括起:lssasfabric -filtervalue status
- -nohdr
- (可选)缺省情况下,将在简明样式视图中显示每个数据列的标题,在详细样式视图中显示每个数据项的标题。-nohdr 参数用于禁止显示这些标题。注: 如果没有要显示的数据,那么不会显示标题。
- -delim delimiter
- (可选)缺省情况下,简明视图中的所有数据列都以空格分隔。每列的宽度设置为每个数据项可能的最大宽度。在详细视图中,每个数据项各占一行,如果显示标题,将用空格来分隔数据与标题。-delim 参数会覆盖此行为。-delim 参数的有效输入为一个单字节字符。如果在命令行中输入 -delim :,那么在简明视图中将用冒号字符 (:) 分隔所有数据项;例如,不会出现列间距。在详细视图中,数据与标题间以指定的定界符分隔。
- -filtervalue?
- (可选)显示 -filtervalue 参数的有效过滤器属性:
- enclosure_id
- canister_id
- canister_port_id
- control_enclosure_id
- node_canister_id
- node_canister_port_id
- position
- IO_group_id
- IO_group_name
- node_id
- node_name
描述
使用该命令可查看哪些容器对节点可见以及这些容器的顺序。表 1 描述了可能的输出。属性 | 描述 |
---|---|
enclosure_id | 线束所进入机柜的标识。 |
canister_id | 线束所进入机柜中的容器。 |
canister_port_id | 线束所进入的容器端口。 |
control_enclosure_id | 线束所来自机柜的标识。 |
node_canister_id | 线束所来自容器的标识。 |
node_canister_port_id | 线束所来自的节点容器端口。这应该与链标识相同。 |
position | 线束或链中的位置。 |
IO_group_id | 线束所属于的 I/O 组。这应该与机柜 IO 组相同。 |
IO_group_name | 线束所属于的 I/O 组。这应该与机柜 IO 组相同。 |
node_id | 线束所来自节点的标识。这是与 node_canister 相同的物理对象。 |
node_name | 线束所来自节点的名称。 这是与 node_canister 相同的物理对象。 |
具有三个机柜的调用示例
机柜 1 是控制机柜,机柜 2 位于链 1(节点容器端口 1)上,使用容器端口 1 作为其接口,机柜 3 位于链 2(节点容器端口 2)上,使用容器端口 2 作为其接口。
lssasfabric
注: 在本指南中,以下输出被拆分为两部分。这样做是为了便于说明;您运行此命令时,输出不会显示为两部分。
以下是所生成输出的第一部分:
enclosure_id canister_id canister_port_id control_enclosure_id node_canister_id
1 1 1 1 1
1 2 1 1 2
2 1 1 1 1
2 2 1 1 2
3 1 2 1 1
3 2 2 1 2
以下是所生成输出的第二部分:
node_canister_port_id position IO_group_id IO_group_name node_id node_name
2 0 0 io_grp0 1 node1
2 0 0 io_grp0 2 node2
1 1 0 io_grp0 1 node1
1 1 0 io_grp0 2 node2
2 1 0 io_grp0 1 node1
2 1 0 io_grp0 2 node2
具有两个机柜的调用示例
该示例显示了将此命令用于一对正确连线到一组节点的扩展机柜时的输出。
lssasfabric
生成的输出:
enclosure_id canister_id canister_port_id control_enclosure_id node_canister_id node_canister_port_id position IO_group_id IO_group_name node_id node_name
1 1 1 1 1 0 io_grp0 1 node1
2 1 1 2 1 0 io_grp0 1 node1
1 2 1 1 1 0 io_grp0 2 node2
2 2 1 2 1 0 io_grp0 2 node2
[edit]