IVM lslparutil command
Purpose
List utilization metrics for the managed system and partitions. This command is operable only in an Integrated Virtualization Manager environment.
Syntax
To list utilization metrics:
lslparutil {-r sys | pool | lpar | mempool} [--startyear Year] [--startmonth Month] [--startday Day] [--starthour Hour] [--startminute Minute] [--endyear Year] [--endmonth Month] [--endday Day] [--endhour Hour] [--endminute Minute] [-n NumberOfEvents] [-spread] [--filter "FilterData"] [-F "AttributeNames"] [--header] [-m ManagedSystem]
To list utilization configuration attributes:
lslparutil -r config [ -F "AttributeNames" ] [ --header ] [ -m ManagedSystem ]
Description
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.
Flags
Flag name | Description |
---|---|
-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. |
--spread | Used with -n to distribute displayed samples evenly over time. |
-m ManagedSystem | The name of the managed system. This attribute is optional because there is only one system to manage. The name might 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 quotation marks. The format of the filter data is as
follows:
Note
that certain filters accept a comma separated list of values, as follows:
When a list of values is specified, the filter name/value pair must be enclosed in double quotation marks. Depending on the shell being used, nested double quotation marks might 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. |
Exit Status
This command has a return code of 0 on success.
Security
This command is accessible by all users.
Examples
- To list the last five shared processing pool utilization metrics,
type:
lslparutil -r pool -n 5
- To calculate the shared processing pool utilization in percent
over a five-minute time period, type:
lslparutil -r pool --startyear 2006 --startmonth 10 --startday 4 --starthour 15 --startminute 23 --endyear 2006 --endmonth 10 --endday 4 --endhour 15 --endminute 28 -F time,total_pool_cycles,utilized_pool_cycles
10/04/2006 15:27:56,449504263518104,372389272879 10/04/2006 15:27:26,449442382657200,372195239995 10/04/2006 15:26:56,449382561908822,371998920942 10/04/2006 15:26:26,449320667371346,371797239591 10/04/2006 15:25:56,449258781703684,371592366752 10/04/2006 15:25:26,449196894951060,371394157970 10/04/2006 15:24:56,449135006535822,371192089089 10/04/2006 15:24:27,449075176369863,369243635687 10/04/2006 15:23:56,449013298087726,369040980263 10/04/2006 15:23:26,448951445376558,368850062933
Pool utilization = (utilized_pool_cycle / total_pool_cycles) * 100 Pool utilization = ((372389272879 - 368850062933) / (449504263518104 - 448951445376558)) * 100 Pool utilization = 0.64%
- To calculate the shared processing pool size
over a five-minute time period, type:
lslparutil -r pool --startyear 2006 --startmonth 10 --startday 4 --starthour 15 --startminute 23 --endyear 2006 --endmonth 10 --endday 4 --endhour 15 --endminute 28 -F time,time_cycles,total_pool_cycles
10/04/2006 15:27:56,112376065883848,449504263518104 10/04/2006 15:27:26,112360595668767,449442382657200 10/04/2006 15:26:56,112345640481652,449382561908822 10/04/2006 15:26:26,112330166847247,449320667371346 10/04/2006 15:25:56,112314695430447,449258781703684 10/04/2006 15:25:26,112299223741951,449196894951060 10/04/2006 15:24:56,112283751639775,449135006535822 10/04/2006 15:24:27,112268794096846,449075176369863 10/04/2006 15:23:56,112253324526335,449013298087726 10/04/2006 15:23:26,112237861348574,448951445376558
Pool size = total_pool_cycles / time_cycles Pool size = (449504263518104 - 448951445376558) / (112376065883848 - 112237861348574) Pool size = 4
- To calculate the processing utilization in percent for partition
1 over the last 11 samples, type:
lslparutil -r lpar -F time,lpar_id,entitled_cycles,capped_cycles,uncapped_cycles --filter lpar_ids=1 -n 11
06/26/2005 12:13:04,1,13487973395246,353524992184,93964052971 06/26/2005 12:12:33,1,13486720703117,353490258336,93964052971 06/26/2005 12:12:03,1,13485467110700,353456792591,93964052971 06/26/2005 12:11:33,1,13484213859686,353423048854,93964052971 06/26/2005 12:11:03,1,13482961098044,353386674795,93964052971 06/26/2005 12:10:32,1,13481706673802,353350985013,93964052971 06/26/2005 12:10:02,1,13480453156357,353317211748,93964052971 06/26/2005 12:09:32,1,13479199972343,353283141535,93964052971 06/26/2005 12:09:02,1,13477946765207,353248812551,93964052971 06/26/2005 12:08:31,1,13476693184663,353213970760,93964052971 06/26/2005 12:08:01,1,13475439617080,353179654833,93964052971
Processor utilization = ((capped_cycles + uncapped_cycles) / entitled_cycles) * 100 Processor utilization = (((353524992184 - 353179654833) + (93964052971 - 93964052971)) / (13487973395246 - 13475439617080)) * 100 Processor utilization = 2.76%
- To calculate the most recent number of utilized
processor units for partition 1, type:
lslparutil -r lpar -F time,time_cycles,capped_cycles,uncapped_cycles -n 2 \ --filter lpar_ids=1
10/06/2006 09:42:58,190122585897822,836322334068,1209599213218 10/06/2006 09:42:28,190107628555119,836215824328,1209507899652
Processor units used = (capped_cycles + uncapped_cycles) / time_cycles Processor units used = ((836322334068 - 836215824328) + (1209599213218 - 1209507899652)) / (190122585897822 - 190107628555119) Processor units used = 0.01
- To display 5 entries spread over the last day,
type:
lslparutil -r lpar --startyear 2005 --startmonth 6 --startday 25 \ --starthour 14 --startminute 20 --endyear 2005 --endmonth 6 \ --endday 26 --endhour 14 --endminute 20 -F time,lpar_id,entitled_cycles,\ capped_cycles,uncapped_cycles -n 5 --spread
06/26/2005 14:20:03,1,64074629124428,2634420796918,3335839807455 06/26/2005 08:20:03,1,63180190141506,2597103712238,3292339240560 06/26/2005 02:20:02,1,62285686629911,2559847748332,3249081303922 06/25/2005 20:20:01,1,61391161857754,2522594738730,3205850397796 06/25/2005 14:20:01,1,60496719757782,2485459490629,3162821474641
Note: This data is particularly useful for graphing utilization data. - To view the number of donated cycles, type:
lslparutil -r lpar -F donated_cycles
- To view the number of instructions performed
by the partition since the managed system was started, type:
lslparutil -r lpar -m sys1 --filters lpar_ids=8
time=10/15/201208:01:31,event_type=sample,resource_type=lpar, sys_time=10/15/2012 07:58:28,time_cycles=1725250577341441, lpar_name=vrml13lp01,lpar_id=8,curr_proc_mode=shared, curr_proc_units=0.5,curr_procs=1,curr_sharing_mode=cap, curr_uncap_weight=0,curr_shared_proc_pool_name=DefaultPool, curr_shared_proc_pool_id=0,curr_5250_cpw_percent=0.0, mem_mode=ded,curr_mem=1024,entitled_cycles=91213377426521, capped_cycles=18033053756266,uncapped_cycles=0, shared_cycles_while_active=0,idle_cycles=9845719193688, run_latch_instructions=0,run_latch_cycles=0, total_instructions=36087088158007, total_instructions_execution_time=977558962540439