lsenclosurestats

使用 lsenclosurestats 指令,顯示所有機箱統計資料的最新值(平均值)。它也可以針對可用統計資料的任何子集來顯示那些值的歷程。

語法

讀取語法圖表略過語法圖表
>>- -- lsenclosurestats -- --+----------+-- -------------------->
                             '- -nohdr -'      

>--+-----------------+-- --------------------------------------->
   '- -filtervalue? -'      

>--+---------------------------------+-- ----------------------->
   '- -filtervalue --attribute=value-'      

>--+-----------------------+-- --------------------------------->
   '- -delim -- delimiter -'      

>--+-------------------------------------------+---------------><
   '-+----------------------+-- --enclosure_id-'   
     '- -history stat_list -'                      

參數

-history stat_list
(選用)產生機箱統計資料值的歷程。
-nohdr
(選用)依預設,會在簡要樣式視圖中顯示每個資料直欄的標題,以及在詳細樣式視圖中顯示每個資料項目的標題。-nohdr 參數會暫停顯示這些標題。
註: 如果沒有要顯示的資料,就不會顯示標題。
-filtervalue attribute=value
(選用)指定一或多個過濾器的清單。只會顯示其值符合過濾器屬性值的物件。
註: 當您輸入指令時,某些過濾器可使用萬用字元。使用萬用字元時,會套用下列規則:
  • 萬用字元是星號 (*)。
  • 指令最多可包含一個萬用字元。
  • 當使用萬用字元時,請用雙引號 ("") 括住過濾項目:
    lsenclosurestats -filtervalue "enclosure_id>2"
-filtervalue?
(選用)顯示 -filtervalue 參數的有效過濾器屬性:
  • enclosure_id
  • stat_name
-delim delimiter
(選用)依預設,簡要視圖中的所有資料直欄都以空格區隔。每個直欄的寬度都會設為各資料項目的最大寬度。在詳細視圖中,每個資料項目本身都有一列,如果顯示標頭,會用空格來區隔資料與標頭。 -delim 參數會置換這個行為。-delim 參數的有效輸入為一個單位元組字元。如果您在指令行輸入 -delim :,則會用冒號字元 (:) 來區隔簡要視圖中的所有資料項目;例如,直欄不會出現間距。在詳細視圖中,會用指定的定界字元來區隔資料與其標頭。
enclosure_id
(選用)指出唯一的機箱 ID(1 至 99 之間的數字)。

說明

記住: 這個指令無法用於不支援環境統計資料的產品。

如果您指定 -history stat_list,也必須指定 enclosure_id。支援使用過濾,來顯示簡要視圖,但不顯示詳細視圖。

可要求多項統計歷程。 限制是簡要視圖中所發佈的現行不同統計名稱數目上限。 簡要視圖會定義輸出順序。

如果是詳細視圖,機箱電源平均需要過 30 秒後才能提供立即電源。
註: 平均值僅適用於所移入的範例
如果指定 -history,輸出中不會計算機箱電源的平均值。
下列是不支援環境統計資料之產品的呼叫範例 - 會顯示訊息:
lsenclosurestats
以下是結果輸出:
CMMVC6051E 已選取不支援的動作。
表 1 顯示基座特定機箱內容的相關資訊,並顯示支援環境統計資料之產品的可能輸出。
表 1. lsenclosurestats 輸出
屬性 說明
enclosure_id 指出機箱 ID;可以是 1 到 264 之間的數值字元。
sample_time 指出樣本出現的時間。
stat_name 指出統計欄位的名稱。
stat_current 指出統計欄位的現行值。
stat_peak 指出統計欄位的尖峰值。最後 5 分鐘用於樣本。
stat_peak_time 指出出現尖峰的時間。
stat_value 指出統計資料的值。
記住: 使用簡要視圖時,支援過濾 enclosure_idstat_name 欄位。

呼叫範例

lsenclosurestats

產生的輸出:

enclosure_id stat_name stat_current stat_peak stat_peak_time
1            power_w   2200         2500      120402103212
1            temp_c    35           36        120402103212
1            temp_f    95           97        120402103212
2            power_w   2300         2600      120402102917
2            temp_c    36           37        120402102917
2            temp_f    97           98        120402102917
4            power_w   2100         2400      120402103202
4            temp_c    33           35        120402103202
4            temp_f    93           95        120402103202

呼叫範例

lsenclosurestats -history power_w 1

產生的輸出:

enclosure_id sample_time  stat_name stat_value
1            120402105137 power_w   2282
1            120402105142 power_w   2290
1            120402105147 power_w   2281
1            120402105152 power_w   2290
1            120402105157 power_w   2281
1            120402105202 power_w   2289
1            120402105207 power_w   2282
1            120402105212 power_w   2289
1            120402105217 power_w   2281
1            120402105222 power_w   2289
1            120402105227 power_w   2281
1            120402105232 power_w   2290
1            120402105237 power_w   2282
1            120402105242 power_w   2289
1            120402105247 power_w   2282
1            120402105252 power_w   2289
1            120402105257 power_w   2282
1            120402105302 power_w   2289
1            120402105307 power_w   2282
1            120402105312 power_w   2289
1            120402105317 power_w   2282
1            120402105322 power_w   2287
1            120402105327 power_w   2281
1            120402105332 power_w   2290
1            120402105337 power_w   2281
1            120402105342 power_w   2289
1            120402105347 power_w   2282
1            120402105352 power_w   2289
1            120402105357 power_w   2281
1            120402105402 power_w   2289
1            120402105407 power_w   2281
1            120402105412 power_w   2289
1            120402105417 power_w   2282
1            120402105422 power_w   2289
1            120402105427 power_w   2282
1            120402105432 power_w   2289
1            120402105437 power_w   2281
1            120402105442 power_w   2290
1            120402105447 power_w   2281
1            120402105452 power_w   2290
1            120402105457 power_w   2282
1            120402105502 power_w   2287
1            120402105507 power_w   2281
1            120402105512 power_w   2290
1            120402105517 power_w   2281
1            120402105522 power_w   2289
1            120402105527 power_w   2282
1            120402105532 power_w   2290
1            120402105537 power_w   2281
1            120402105542 power_w   2290
1            120402105547 power_w   2281
1            120402105552 power_w   2290
1            120402105557 power_w   2281
1            120402105602 power_w   2289
1            120402105607 power_w   2282
1            120402105612 power_w   2289
1            120402105617 power_w   2281
1            120402105622 power_w   2289
1            120402105627 power_w   2281
1            120402105632 power_w   2290

下表提供適用於對 stat_name 屬性所顯示之值的可能值。

表 2. Stat_name 欄位值
說明
power_w 顯示耗電量(瓦特)。
temp_c 顯示環境溫度(攝氏)。
temp_f 顯示環境溫度(華氏)。