lsportsas
請利用 lsportsas 指令來顯示叢集系統中所有 SAS 埠的狀態。
語法
參數
- -filtervalue attribute=value
- (選用)指定一或多個過濾器的清單。只會傳回其值符合過濾器屬性值的物件。如果指定容量,也必須包括單位。
- -filtervalue?
- (選用)顯示有效的過濾器屬性。 lsportsas 指令的有效過濾器屬性如下:
- node_id
- status
- attachment
- type
- -nohdr
- (選用)依預設,會在簡要樣式視圖中顯示每個資料直欄的標題,以及在詳細樣式視圖中顯示每個資料項目的標題。這個參數會暫停顯示這些標題。
註: 如果沒有要顯示的資料,就不會顯示標題。
- -delim delimiter
- (選用)依預設,簡要視圖中的所有資料直欄都以空格區隔。每個直欄的寬度都會設為各資料項目的最大容許寬度。在詳細視圖中,每個資料項目本身都有一列,如果顯示標頭,會用空格來區隔資料與標頭。如果您在指令行輸入 -delim :,則會用冒號字元 (:) 來區隔簡要視圖中的所有資料項目;例如,直欄不會出現間距。在詳細視圖中,會用指定的定界字元來區隔資料與其標頭。
說明
這個指令會顯示系統埠狀態的相關資訊。
這個指令輸出會依分區所定義,顯示所有可用的路徑,與使用方式無關。 這表示指令輸出包含因埠遮罩而未使用的路徑。
這份表格提供可以顯示為輸出視圖資料的屬性值。
| 屬性 | 說明 |
|---|---|
| id | 指出在所顯示的資訊中的行號(數值字串)。 |
| port_id | 指出埠的 ID。 |
| port_speed | 指出 I/O 埠的速度(以 XGb 為單位)。這是 SAS 埠最快的本端鏈結速度。如果埠不在作用中,則值是前次已知的埠速度,如果埠未使用且從未在作用中,則值為 N/A。 |
| node_id | 指出包含此埠的節點 ID(數值字串)。 |
| node_name | 指出包含此埠的節點名稱(英數字串)。 |
| WWPN | 指出 I/O 埠的全球埠名稱 (WWPN)(16 個字元的十六進位字串)。 |
| status | 指出埠的狀態(數值字串)。值可以是:
|
| switch_WWPN | 如果連接到交換器,則指出交換器埠的 WWPN(16 個字元的十六進位字串),否則為空白。如果埠已離線,則會顯示前次已知的值。 |
| attachment | 指出埠已連接到哪個項目。可能的值如下:
|
| type | 指出如何配置這個埠。這個欄位也會顯示可連接至 SAS 埠的裝置。可能的值如下:
|
| adapter_location | 顯示包含 SAS 埠的配接卡的位置(範圍 0 - 6 內的任何數字)。 |
| adapter_port_id | 顯示配接卡中 SAS 埠的位置(範圍 1 - 4 內的任何數字)。 |
呼叫範例
lsportsas結果輸出:
id port_id port_speed node_id node_name WWPN status switch_WWPN attachment type adapter_location adapter_port_id
0 1 3Gb 1 node1 500507680140004A offline enclosure enclosure 0 1
1 2 6Gb 1 node1 500507680150004A online 5001234567892000 switch host_controller 0 2
4 1 3Gb 2 node2 50050768014051E5 online host host_controller 0 3
5 2 3Gb 2 node2 50050768015051E5 offline_unconfigured none none 0 4 呼叫範例
lsportsas結果輸出:
id port_id port_speed node_id node_name WWPN status switch_WWPN attachment type adapter_location adapter_port_id
0 1 12Gb 1 node1 50050768056C009E online 500507680600B63F enclosure enclosure 0 0
1 2 12Gb 1 node1 50050768056C009F online 500507680600B64F enclosure enclosure 0 1
2 0 12Gb 1 node1 50050768056C009G online 500507680600B65F enclosure internal 0 2
4 1 12Gb 2 node2 50050768056C009I online 500507680600B66F enclosure enclosure 0 3
5 2 12Gb 2 node2 50050768056C009J online 500507680600B67F enclosure enclosure 0 4
6 0 12Gb 2 node2 50050768056C009K online 500507680600B68F enclosure internal 1 1