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 說明可能的輸出。
表 1. lssasfabric 輸出
屬性 說明
enclosure_id 指出絞線的目標機箱身分。
canister_id 指出絞纜的目標機箱中的機匣。
canister_port_id 指出絞纜的目標機匣埠。
control_enclosure_id 指出絞纜的來源機箱身分。
node_canister_id 指出絞纜的來源機匣身分。
node_canister_port_id 指出絞纜的來源節點機匣埠。這必須與鏈 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]