List utilization metrics for the managed system and partitions. This command is available only in an Integrated Virtualization Manager environment.
To list utilization metrics:
lslparutil {-r sys | pool | lpar } [ --startyear Year ] [ --startmonth Month ] [ --startday Day ] [ --starthour Hour ] [ --startminute Minute ] [ --endyear Year ] [ --endmonth Month ] [ --endday Day ] [ --endhour Hour ] [ --endminute Minute ] [ -n NumberOfEvents ] [ --filter "FilterData" ] [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]
To list utilization configuration attributes:
lslparutil -r config [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]
The lslparutil command lists utilization metrics for the managed system and partitions. The sample rate at which these metrics are gathered can be changed, or disabled. The information gathered from this command allows for the determination of processor utilization on a system and partition level over a given period of time.
| -r ResourceType | The type of resources to list:
|
| --startyear Year | Starting year filter (default 1970) |
| --startmonth Month | Starting month filter (default 1) January is 1. December is 12 |
| --startday Day | Starting day filter (default 1) |
| --starthour Hour | Starting hour filter (default 0) |
| --startminute Minute | Starting minute filter (default 0) |
| --endyear Year | Ending year filter (default now) |
| --endmonth Month | Ending month filter (default now) |
| --endday Day | Ending day filter (default now) |
| --endhour Hour | Ending hour filter (default now) |
| --endminute Minute | Ending minute filter (default now) |
| --n NumberOfEvents | Starting from the most recent event, the maximum number of samples to return. |
| -m ManagedSystem | The name of the managed system. This attribute is optional because there is only one system to manage. The name may either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss, where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed system. |
| --filter FilterData | The filters to apply to the resources to be listed.
Filters are used to select which resources of the specified resource type
are to be listed. If no filters are used, then all of the resources of the
specified resource type will be listed. For example, specific partitions can
be listed by using a filter to specify the names or IDs of the partitions
to list. Otherwise, if no filter is used, then all the partitions in the managed
system will be listed.
The filter data consists of filter name/value pairs, which are in comma separated value (CSV) format. The filter data must be enclosed in double quotes. The format of the filter data is as follows: "filter-name=value,filter-name=value,..." Note that certain filters accept a comma separated list of values, as follows: ""filter-name=value,value,...",..." When a list of values is specified, the filter name/value pair must be enclosed in double quotes. Depending on the shell being used, nested double quote characters may need to be preceded by an escape character, which is usually a '\' character. Unless otherwise indicated, multiple values can be specified for each filter. Valid filter names for -r lpar
|
| -F AttributeNames | A delimiter separated list of attribute names for the
desired attribute values to be displayed for each resource. If no attribute
names are specified, then values for all of the attributes for the resource
will be displayed.
When this option is specified, only attribute values will be displayed. No attribute names will be displayed. The attribute values displayed will be separated by the delimiter which was specified with this option. This option is useful when only attribute values are desired to be displayed, or when the values of only selected attributes are desired to be displayed. Attribute Names:
|
|
|
|
|
| --header | Display a header record, which is a delimiter separated list of attribute names for the attribute values that will be displayed. This header record will be the first record displayed. This option is only valid when used with the -F option. |
This command has a return code of zero on success.
This command is accessible by all users.
lslparutil -r pool -n 5
lslparutil -r pool --startyear 2005 --startmonth 6 --startday 26 --starthour 12 --startminute 8 \ --endyear 2005 --endmonth 6 --endday 26 --endhour 12 --endminute 13 -F time,total_pool_cycles, \ utilized_pool_cycles
06/26/2005 12:08:01,134841811733640,467081011935 06/26/2005 12:08:31,134854347365860,467116506907 06/26/2005 12:09:02,134866883128692,467152556956 06/26/2005 12:09:32,134879415157938,467188374373 06/26/2005 12:10:02,134891946956456,467223704573 06/26/2005 12:10:32,134904482088726,467258616569 06/26/2005 12:11:03,134917026289150,467295577359 06/26/2005 12:11:33,134929553859752,467333227651 06/26/2005 12:12:03,134942086330068,467368397739 06/26/2005 12:12:33,134954622214624,467403199531 06/26/2005 12:13:04,134967149091025,467439053292
Pool utilization = (utilized_pool_cycle / total_pool_cycles) * 100 Pool utilization = ((467439053292 - 467081011935) / (134967149091025 - 134841811733640)) * 100 Pool utilization = 0.29%
lslparutil -r lpar -F time,lpar_id,entitled_cycles,capped_cycles,uncapped_cycles --filter lpar_ids=1 -n 11
06/26/2005 12:08:01,1,13475439617080,353179654833,93964052971 06/26/2005 12:08:31,1,13476693184663,353213970760,93964052971 06/26/2005 12:09:02,1,13477946765207,353248812551,93964052971 06/26/2005 12:09:32,1,13479199972343,353283141535,93964052971 06/26/2005 12:10:02,1,13480453156357,353317211748,93964052971 06/26/2005 12:10:32,1,13481706673802,353350985013,93964052971 06/26/2005 12:11:03,1,13482961098044,353386674795,93964052971 06/26/2005 12:11:33,1,13484213859686,353423048854,93964052971 06/26/2005 12:12:03,1,13485467110700,353456792591,93964052971 06/26/2005 12:12:33,1,13486720703117,353490258336,93964052971 06/26/2005 12:13:04,1,13487973395246,353524992184,93964052971
Processor utilization = ((capped_cycles + uncapped_cycles) / entitled_cycles) * 100 Processor utilization = (((353524992184 - 353179654833) + (93964052971 - 93964052971)) / (13487973395246 - 13475439617080)) * 100 Processor utilization = 2.76%
The chlparutil and lssyscfg commands.