STSI can tell you if you are capped, but it can't tell you the weight.
Borrowing from the STSIUSE SAMPEXEC on MAINT 193:
/*************************************************************
* Logical-partition CPUs *
*************************************************************/
say 'STSI(2,2,2)........................................2.2.2.'
result = stsi(2,2,2)
address command 'PIPE',
'| var result',
'| specs',
'/LPAR Number: / 1 33.2 c2x nw write',
'/LCPUC: / 1 36.1 c2x nw write',
'/Total LCPU Count: / 1 37.2 c2d nw left write',
'/Conf. LCPU Count: / 1 39.2 c2d nw left write',
'/SB LCPU Count: / 1 41.2 c2d nw left write',
'/Resv. LCPU Count: / 1 43.2 c2d nw left write',
'/Logical-Partition Name: / 1 45.8 nw write',
'/Logical-Partition CAF: / 1 53.4 c2d nw left write',
'/Ded. LCPU Count: / 1 73.2 c2d nw left write',
'/Shr. LCPU Count: / 1 75.2 c2d nw left write',
'| cons'
lparchar=c2b(substr(result,36,1))
say 'LPAR characteristics:' lparchar
If substr(lparchar,1,1)=1 then say 'CPUs are dedicated'
If substr(lparchar,2,1)=1 then say 'CPUs are shared'
If substr(lparchar,3,1)=1 then say 'CPUs are limited'
On Wed, Mar 24, 2010 at 5:28 PM, Kris Buelens <[email protected]> wrote:
> No CP command as far as I know, STSI: I don't think so.
>
> But, performance monitors report this in their LPAR reports. If you've got
> Perfkit: PIPE VMC PERFSVM xxxx |.....
>
> Hence you could use a PIPE to listen to the monitor records and analyse it
> yourself. You must be prepared to unravel raw monitor records....
>
> 2010/3/24 Alain Benveniste <[email protected]>
>>
>> Is there a way to get the info if my VM lpar is capped or not and what is
>> weight ?
>>
>> Could be great to see these info with the indicate cmd...?
>>
>> This info is needed for us to avoid to run licenced products with more
>> power than we pay for
>> using them...not to be lawfull...
>>
>> Alain Benveniste
>
>
>
> --
> Kris Buelens,
> IBM Belgium, VM customer support
>
--
Bruce Hayden
z/VM and Linux on System z ATS
IBM, Endicott, NY