lsenclosureslot
使用 lsenclosureslot 指令,檢視機箱內每個磁碟機槽的相關資訊。
語法
>>-lsenclosureslot--+--------------------------------+----------> '- -filtervalue--attribute_value-' >--+----------------+--+--------------------+--+---------+------> '- -filtervalue?-' '- -delim--delimiter-' '- -nohdr-' >--+-----------------------------------+----------------------->< '-+-----------------+--enclosure_id-' '- -slot--slot_id-'
參數
- -filtervalue attribute=value
- (選用)指定一或多個過濾器的清單。只會顯示其值符合過濾器屬性值的物件。註: 某些過濾器容許您在輸入指令時使用萬用字元。使用萬用字元時,會套用下列規則:
- 萬用字元是星號 (*)。
- 指令最多可包含一個萬用字元。
- 使用萬用字元時,請用雙引號 ("") 括住過濾項目:
lsenclosureslot -filtervalue "enclosure_id>2"
- -filtervalue?
- (選用)顯示 -filtervalue 參數的有效過濾器屬性:
- drive_id
- drive_present
- enclosure_id
- port_1_status
- port_2_status
- slot_id
- -delim delimiter
- (選用)依預設,簡要視圖中的所有資料直欄都以空格區隔。每個直欄的寬度都會設為各資料項目的最大寬度。在詳細視圖中,每個資料項目本身都有一列,如果顯示標頭,會用空格來區隔資料與標頭。-delim 參數會置換此行為。-delim 參數的有效輸入為一個單位元組字元。如果您在指令行輸入 -delim :,則會用冒號字元 (:) 來區隔簡要視圖中的所有資料項目;例如,直欄不會出現間距。在詳細視圖中,會用指定的定界字元來區隔資料與其標頭。
- -nohdr
- (選用)依預設,會在簡要樣式視圖中顯示每個資料直欄的標題,以及在詳細樣式視圖中顯示每個資料項目的標題。這個參數會暫停顯示這些標題。
- -slotslot_id
- (選用)指定要顯示資訊的插槽(這提供該機箱插槽的詳細視圖)。只有在指定機箱時,這個參數才有效。此值必須是 1 - 92 範圍內的數字。
註:
如果對不存在於指定機箱上的機槽來要求機槽資訊,則會顯示空白值。
- enclosure_id
- (選用)列出該機箱的插槽。無論是否使用 -slot,都必須指定。
說明
這個指令會顯示機箱中每個磁碟機槽的相關資訊,例如,磁碟機是否存在以及 這個磁碟機的埠狀態。表 1 顯示可能的輸出:| 屬性 | 說明 |
|---|---|
| enclosure_id | 含有磁碟機槽之機箱的身分。 |
| slot_id | 識別它是在機箱中的哪一個磁碟機槽。 |
| port_1_status | 機箱插槽埠 1 的狀態。如果有多個原因而略過該埠,只會顯示一個原因。以下依優先順序列出:
|
| port_2_status | 機箱插槽埠 2 的狀態。如果有多個原因而略過該埠,只會顯示一個原因。以下依優先順序列出:
|
| fault_LED | 組合式錯誤與識別發光二極體 (LED) 的狀態:
|
| powered | 指出插槽是否開啟電源。值為 yes 或 no。 |
| drive_present | 指出插槽中是否有磁碟機。磁碟機可以是運作中、停用或已關閉電源。值為 yes(存在)或 no(空的)。 |
| drive_id | 插槽中的磁碟機 ID;空白表示沒有磁碟機,或是有磁碟機,但磁碟機離線且未受管理。 |
| error_sequence_number | 指出此物件最高優先順序錯誤的錯誤日誌號碼。此值通常是空白。不過,如果發生問題(例如,狀態為欠佳),則會包含該錯誤的序號。 |
顯示機箱 5 中插槽 2 的詳細呼叫範例
lsenclosureslot -delim : -slot 2 5
結果輸出:
enclosure_id:5
slot_id:2
port_1_status:online
port_2_status:online
fault_LED:off
powered:yes
drive_present:yes
drive_id:105
error_sequence_number:
詳細的呼叫範例
lsenclosureslot -delim :
結果輸出:
enclosure_id:slot_id:port_1_status:port_2_status:drive_present:drive_id:error_sequence_number
1:1:online:online:yes:22:
1:2:online:online:yes:23:
1:3:online:online:yes:19:
1:4:online:online:yes:7:
1:5:online:online:yes:10:
1:6:online:online:yes:18:
1:7:online:online:yes:20:
1:8:online:online:yes:16:
1:9:online:online:yes:12:
1:10:online:online:yes:11:
1:11:online:online:yes:21:
1:12:online:online:yes:9:
1:13:online:online:yes:14:
1:14:online:online:yes:5:
1:15:online:online:yes:15:
1:16:online:online:yes:13:
1:17:online:online:yes:6:
1:18:online:online:yes:17:
1:19:online:online:yes:4:
1:20:online:online:yes:1:
1:21:online:online:yes:8:
1:22:online:online:yes:0:
1:23:online:online:yes:3:
1:24:online:online:yes:2:
