C2B?

    20 +++ lparchar=c2b(substr(result,36,1))                       
DMSREX478E Error 43 running STSIX EXEC, line 20: Routine not found

 
Frank M. Ramaekers Jr.
 
 

-----Original Message-----
From: The IBM z/VM Operating System [mailto:ib...@listserv.uark.edu] On Behalf 
Of Bruce Hayden
Sent: Thursday, March 25, 2010 7:33 AM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: Capping info

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 <kris.buel...@gmail.com> 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 <a.benveni...@free.fr>
>>
>> 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

_____________________________________________________
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
privacy...@ailife.com.

Reply via email to