lsenclosurestats

Use the lsenclosurestats command to display the most recent values (averaged) of all enclosure statistics. It can also display a history of those values for any given subset of the available statistics.

Syntax

lsenclosurestats [ -nohdr ] [ -filtervalue? ] [ -filtervalue attribute=value ] [ -delim delimiter ] [ [ -history stat_list ] enclosure_id ]

Parameters

-history stat_list
(Optional) Produces a history of values for enclosure statistics.
-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If there is no data to be displayed, headings are not displayed.
-filtervalueattribute=value
(Optional) Specifies a list of one or more filters. Only objects with a value that matches the filter attribute value are displayed.
Note: Some filters allow the use of a wildcard when you enter the command. The following rules apply to the use of wildcards:
  • The wildcard character is the asterisk (*).
  • The command can contain a maximum of one wildcard.
  • When you use a wildcard, enclose the filter entry within double quotation marks (""):
    lsenclosurestats -filtervalue "enclosure_id>2"
-filtervalue?
(Optional) Displays the valid filter attributes for the -filtervalue parameter:
  • enclosure_id
  • stat_name
-delim delimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum possible width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a one-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
enclosure_id
(Optional) Indicates the unique enclosure identifier (a number between 1 and 99).

Description

Remember: This command cannot be used for products that do not support environmental statistics.

If you specify -history stat_list you must also specify enclosure_id. Filtering is supported for the concise view but not the detailed view.

Multiple statistical histories can be requested. The limit is the current maximum number of different statistical names published in the concise view. The concise view defines the output order.

For the detailed view, enclosure power is averaged over thirty seconds to provide immediate power.
Note: Averaging applies only to populated samples
Enclosure power is not averaged in the output if -history is specified.
This is an invocation example for products that do not support environmental statistics - a message is displayed:
lsenclosurestats
This is the resulting output:
CMMVC6051E An unsupported action was selected.
Table 1 displays information about chassis-specific enclosure properties and shows possible outputs for products that support environmental statistics.
Table 1. lsenclosurestats outputs
Attribute Description
enclosure_id Indicates the enclosure identifier; it can be a numeric character between 1 and 264.
sample_time Indicates the time during which the sample occurred.
stat_name Indicates the name of the statistical field.
stat_current Indicates the current value of the statistical field.
stat_peak Indicates the peak value of the statistic field. The last five minutes is used for samples.
stat_peak_time Indicates the time that the peak occurred.
stat_value Indicates the value of the statistic.
Remember: Filtering is supported on the enclosure_id and stat_name fields using the concise view.

An invocation example

lsenclosurestats

The resulting output:

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

An invocation example

lsenclosurestats -history power_w 1

The resulting output:

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

This table provides the possible values that are applicable to the values that are displayed for the stat_name attribute.

Table 2. Stat_name field values
Value Description
power_w Displays the power consumed in watts.
temp_c Displays the ambient temperature in Celsius.
temp_f Displays the ambient temperature in Fahrenheit.